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, setupMoveAnimationdraw, drawBWVertex, drawNormalVertex, drawSelectedVertex, drawTargetVertex, getAnimationFrame, getBrightnessFactor, getTheme, getVerticesSortedByY, isAnimatingConfig, isBlinkEdges, isDrawCurvyEdges, setAnimatingConfig, setAnimationFrame, setBlinkEdges, setDrawCurvyEdges, tick, tickItpublic static final int WIDTH
public int getBoundingWidth()
NewThemegetBoundingWidth in class WeightedTheme<SSShortestPathInstance>public java.awt.Color getEdgeColor(SSShortestPathInstance game, Vertex a, Vertex b)
NewThemegetEdgeColor 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)
NewThemedrawVertex in class NewTheme<SSShortestPathInstance>g - The graphics object to draw ongame - The PuzzleInstance subclass containing game datav - The vertex to be drawn