Class ScreenElement
java.lang.Object
ScreenElement
- Direct Known Subclasses:
- Kasse, Kunde
- public abstract class ScreenElement
- extends java.lang.Object
dient als Basisklasse fźr alle Elemente, die am Bildschirm angezeigt werden kšnnen und
Bildschirmkoordinaten benštigen.
|
Constructor Summary |
ScreenElement(int x,
int y,
int width,
int height,
java.awt.Color color)
Creates a new instance of ScreenElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenElement
public ScreenElement(int x,
int y,
int width,
int height,
java.awt.Color color)
- Creates a new instance of ScreenElement
getColor
public java.awt.Color getColor()
getHeight
public int getHeight()
getWidth
public int getWidth()
getX
public int getX()
getY
public int getY()
paint
public abstract void paint(java.awt.Graphics2D g2)
setColor
public void setColor(java.awt.Color color)
setHeight
public void setHeight(int height)
setWidth
public void setWidth(int width)
setXY
public void setXY(int x,
int y)