@Deprecated
public abstract class OldTheme<S extends PuzzleInstance>
extends java.lang.Object
Constructor and Description |
---|
OldTheme()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
S game,
int width,
int height,
double scale)
Deprecated.
|
abstract void |
drawAnimation(java.awt.Graphics g,
S game)
Deprecated.
Defines how the OldTheme subclass should handle animation.
|
void |
drawBWVertex(java.awt.Graphics2D g,
S game,
Vertex v,
java.awt.Point where)
Deprecated.
|
void |
drawNormalVertex(java.awt.Graphics2D g,
S game,
Vertex v)
Deprecated.
Draws a vertex in its normal state using the overridden drawVertex method.
|
void |
drawSelectedVertex(java.awt.Graphics2D g,
S game,
Vertex v)
Deprecated.
Draws a vertex in its selected state using the overridden drawVertex method.
|
void |
drawTargetVertex(java.awt.Graphics2D g,
S game,
Vertex v)
Deprecated.
Draws a vertex in its targeted state using the overridden drawVertex method.
|
abstract void |
drawVertex(java.awt.Graphics2D g,
S game,
Vertex v)
Deprecated.
Dictates how a vertex should be drawn.
|
static int |
getAnimationFrame()
Deprecated.
|
abstract int[] |
getAnimationStage(Vertex v)
Deprecated.
Return a number or set of numbers that identifies what stage of drawing animation this vertex is at.
|
abstract int |
getBoundingHeight()
Deprecated.
Defines the height of the box used to determine the clickable area of a vertex.
|
abstract int |
getBoundingWidth()
Deprecated.
Defines the width of the box used to determine the clickable area of a vertex.
|
float |
getBrightnessFactor()
Deprecated.
Returns the brightness factor drawing target vertices using the default drawTargetVertex method.
|
abstract int |
getDrawingHeight()
Deprecated.
Defines the width of the drawable area of a vertex.
|
abstract int |
getDrawingWidth()
Deprecated.
Defines the width of the drawable area of a vertex.
|
abstract java.awt.Color |
getEdgeColor(S game,
Vertex a,
Vertex b)
Deprecated.
Defines the color used for drawing edges.
|
abstract int |
getNumberAnimatingFrames()
Deprecated.
|
static OldTheme<?> |
getTheme(java.lang.String theme_name)
Deprecated.
|
abstract java.lang.String |
getThemeName()
Deprecated.
|
abstract java.awt.Point |
getVertexCenter()
Deprecated.
Defines the intended center point, relative to the origin (0, 0), on the image created by drawVertex.
|
java.util.ArrayList<Vertex> |
getVerticesSortedByY(java.util.ArrayList<Vertex> vertsToSort)
Deprecated.
This method returns a list of all the vertices in the current graph.
|
boolean |
isAnimatingConfig()
Deprecated.
|
boolean |
isBlinkEdges()
Deprecated.
|
boolean |
isDrawCurvyEdges()
Deprecated.
|
void |
setAnimatingConfig(boolean animatingConfig)
Deprecated.
|
static void |
setAnimationFrame(int animationFrame)
Deprecated.
|
void |
setBlinkEdges(boolean blinkEdges)
Deprecated.
|
void |
setDrawCurvyEdges(boolean drawCurvyEdges)
Deprecated.
|
abstract void |
setupMoveAnimation(DoubleVertexEvent<?> event)
Deprecated.
Assumes the event is a
|
void |
tick()
Deprecated.
|
void |
tickIt()
Deprecated.
A convenience method to allow subclasses of OldTheme to override tick() while still retaining the basic animation
advancing functionality.
|
public static OldTheme<?> getTheme(java.lang.String theme_name)
public abstract java.lang.String getThemeName()
public abstract int getBoundingWidth()
public abstract int getBoundingHeight()
public abstract int getDrawingWidth()
public abstract int getDrawingHeight()
public abstract java.awt.Point getVertexCenter()
public abstract void setupMoveAnimation(DoubleVertexEvent<?> event)
event
- public abstract int getNumberAnimatingFrames()
public abstract void drawVertex(java.awt.Graphics2D g, S game, Vertex v)
g
- The graphics object to draw ongame
- The PuzzleInstance subclass containing game datav
- The vertex to be drawnpublic abstract java.awt.Color getEdgeColor(S game, Vertex a, Vertex b)
game
- The PuzzleInstance subclass containing game dataa
- The first vertex connected by an edgeb
- The second vertex connected by this edgepublic abstract void drawAnimation(java.awt.Graphics g, S game)
g
- game
- public abstract int[] getAnimationStage(Vertex v)
public void tickIt()
public void tick()
public void drawNormalVertex(java.awt.Graphics2D g, S game, Vertex v)
g
- The graphics object to draw ongame
- The PuzzleInstance subclass containing game datav
- The vertex to be drawnpublic void drawTargetVertex(java.awt.Graphics2D g, S game, Vertex v)
g
- The graphics object to draw ongame
- The PuzzleInstance subclass containing game datav
- The vertex to be drawnpublic void drawBWVertex(java.awt.Graphics2D g, S game, Vertex v, java.awt.Point where)
public void drawSelectedVertex(java.awt.Graphics2D g, S game, Vertex v)
g
- The graphics object to draw ongame
- The PuzzleInstance subclass containing game datav
- The vertex to be drawnpublic float getBrightnessFactor()
public void draw(java.awt.Graphics g, S game, int width, int height, double scale)
public java.util.ArrayList<Vertex> getVerticesSortedByY(java.util.ArrayList<Vertex> vertsToSort)
public boolean isDrawCurvyEdges()
public void setDrawCurvyEdges(boolean drawCurvyEdges)
public boolean isBlinkEdges()
public void setBlinkEdges(boolean blinkEdges)
public static int getAnimationFrame()
public static void setAnimationFrame(int animationFrame)
public boolean isAnimatingConfig()
public void setAnimatingConfig(boolean animatingConfig)