public class SSShortestPathTheme extends WeightedTheme<SSShortestPathInstance>
Modifier and Type | Field and Description |
---|---|
static int |
WIDTH |
MY_COLOR, WEIGHTED_HEIGHT, WEIGHTED_THEME, WEIGHTED_WIDTH
Constructor and Description |
---|
SSShortestPathTheme() |
Modifier and Type | Method and Description |
---|---|
void |
drawVertex(java.awt.Graphics2D g,
SSShortestPathInstance game,
Vertex v)
Dictates how a vertex should be drawn.
|
int |
getBoundingWidth()
Defines the width of the box used to determine the clickable area of a vertex.
|
java.awt.Color |
getEdgeColor(SSShortestPathInstance game,
Vertex a,
Vertex b)
Defines the color used for drawing edges.
|
drawAnimation, drawVertex, getAnimationStage, getBoundingHeight, getDrawingHeight, getDrawingWidth, getNumberAnimatingFrames, getThemeName, getVertexCenter, setupMoveAnimation
draw, drawBWVertex, drawNormalVertex, drawSelectedVertex, drawTargetVertex, getAnimationFrame, getBrightnessFactor, getTheme, getVerticesSortedByY, isAnimatingConfig, isBlinkEdges, isDrawCurvyEdges, setAnimatingConfig, setAnimationFrame, setBlinkEdges, setDrawCurvyEdges, tick, tickIt
public static final int WIDTH
public int getBoundingWidth()
NewTheme
getBoundingWidth
in class WeightedTheme<SSShortestPathInstance>
public java.awt.Color getEdgeColor(SSShortestPathInstance game, Vertex a, Vertex b)
NewTheme
getEdgeColor
in class WeightedTheme<SSShortestPathInstance>
game
- The PuzzleInstance subclass containing game dataa
- The first vertex connected by an edgeb
- The second vertex connected by this edgepublic void drawVertex(java.awt.Graphics2D g, SSShortestPathInstance game, Vertex v)
NewTheme
drawVertex
in class NewTheme<SSShortestPathInstance>
g
- The graphics object to draw ongame
- The PuzzleInstance subclass containing game datav
- The vertex to be drawn