Class DrawItem

java.lang.Object
   |
   +----Item
           |
           +----DrawItem

public class DrawItem
extends Item
Zusätzlich zu Item werden Informationen zu Darstellung verwaltet.


Constructor Index

 o DrawItem(int)
 o DrawItem(int, int, int, Color)

Method Index

 o getColor()
 o getX()
 o getY()
 o setColor(Color)
 o setXY(int, int)

Constructors

 o DrawItem
 public DrawItem(int k)
Parameters:
k - Item-Wert
 o DrawItem
 public DrawItem(int k,
                 int xx,
                 int yy,
                 Color cc)
Parameters:
k - Item-Wert
xx - x-Koordinate
yy - y-Koordinate
cc - Farbe

Methods

 o getX
 public int getX()
Returns:
x-Koordinate
 o getY
 public int getY()
Returns:
y-Koordinate
 o getColor
 public Color getColor()
Returns:
Farbe
 o setXY
 public void setXY(int xx,
                   int yy)
Parameters:
xx - neue x-Koordinate
yy - neue y-Koordinate
 o setColor
 public void setColor(Color cc)
Parameters:
cc - neue Farbe