Class DrawItem
java.lang.Object
|
+----Item
|
+----DrawItem
- public class DrawItem
- extends Item
Zusätzlich zu Item werden Informationen zu Darstellung verwaltet.
-
DrawItem(int)
-
-
DrawItem(int, int, int, Color)
-
-
getColor()
-
-
getX()
-
-
getY()
-
-
setColor(Color)
-
-
setXY(int, int)
-
DrawItem
public DrawItem(int k)
- Parameters:
- k - Item-Wert
DrawItem
public DrawItem(int k,
int xx,
int yy,
Color cc)
- Parameters:
- k - Item-Wert
- xx - x-Koordinate
- yy - y-Koordinate
- cc - Farbe
getX
public int getX()
- Returns:
- x-Koordinate
getY
public int getY()
- Returns:
- y-Koordinate
getColor
public Color getColor()
- Returns:
- Farbe
setXY
public void setXY(int xx,
int yy)
- Parameters:
- xx - neue x-Koordinate
- yy - neue y-Koordinate
setColor
public void setColor(Color cc)
- Parameters:
- cc - neue Farbe