Package visualizationElements
Klasse BarChartElement
java.lang.Object
visualizationElements.BarChartElement
Represents a bar within a bar chart.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungBarChartElement
(int value) Creates a new BarChartElement.BarChartElement
(int value, Color color) Creates a new BarChartElement. -
Methodenübersicht
-
Felddetails
-
color
-
value
private int value
-
-
Konstruktordetails
-
BarChartElement
Creates a new BarChartElement.- Parameter:
value
- Value (size) of the bar.color
- Coloring of the bar.
-
BarChartElement
public BarChartElement(int value) Creates a new BarChartElement.- Parameter:
value
- Value (size) of the bar.
-
-
Methodendetails
-
draw
Draws the BarChartElement- Parameter:
g
- The Graphics object to draw the element to the DrawArea.xpos
- Horizontal position where the barChartElement is drawn.yPos
- Vertical position where the barChartElement is drawn.width
- Width of the barChartElement.height
- Height of the barChartElement.
-
setValue
public void setValue(int value) - Parameter:
value
- the value to set
-
getValue
public int getValue()- Gibt zurück:
- the value
-
setColor
- Parameter:
color
- the color to set
-
getColor
- Gibt zurück:
- the color
-