Package visualizationElements
Klasse Vertex
java.lang.Object
visualizationElements.Vertex
Represents a vertex of a graph to visualize.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungVertex
(int xpos, int ypos) Creates a new black Vertex without marking.Creates a new Vertex without marking.Creates a new black Vertex.Creates a new Vertex. -
Methodenübersicht
-
Felddetails
-
DEFAULT_MARKING
- Siehe auch:
-
DEFAULT_COLOR
-
VERTEX_DIAMETER
private final int VERTEX_DIAMETER- Siehe auch:
-
xpos
private int xpos -
ypos
private int ypos -
marking
-
color
-
-
Konstruktordetails
-
Vertex
Creates a new Vertex.- Parameter:
xpos
- X-Position of the vertex.ypos
- Y-Position of the vertex.marking
- The marking of the vertex.color
- Color the vertex is showed.
-
Vertex
Creates a new Vertex without marking.- Parameter:
xpos
- X-Position of the vertex.ypos
- Y-Position of the vertex.color
- Color the vertex is showed.
-
Vertex
Creates a new black Vertex.- Parameter:
xpos
- X-Position of the vertex.ypos
- Y-Position of the vertex.marking
- The marking of the vertex.
-
Vertex
public Vertex(int xpos, int ypos) Creates a new black Vertex without marking.- Parameter:
xpos
- X-Position of the vertex.ypos
- Y-Position of the vertex.
-
-
Methodendetails
-
setYpos
public void setYpos(int ypos) - Parameter:
ypos
- the y position to set
-
getYpos
public int getYpos()- Gibt zurück:
- the y position
-
setXpos
public void setXpos(int xpos) - Parameter:
xpos
- the x position to set
-
getXpos
public int getXpos()- Gibt zurück:
- the x position
-
setColor
- Parameter:
color
- the color to set
-
getColor
- Gibt zurück:
- the color
-
setMarking
- Parameter:
marking
-
-
getMarking
- Gibt zurück:
- the marking
-
getVertexDiameter
public int getVertexDiameter()- Gibt zurück:
- the vERTEX_DIAMETER
-
draw
Draws the vertex.- Parameter:
g
- Graphics object to draw to the DrawArea
-