Class ScreenElement

java.lang.Object
  extended byScreenElement
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
 
Method Summary
 java.awt.Color getColor()
           
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
abstract  void paint(java.awt.Graphics2D g2)
           
 void setColor(java.awt.Color color)
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 void setXY(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenElement

public ScreenElement(int x,
                     int y,
                     int width,
                     int height,
                     java.awt.Color color)
Creates a new instance of ScreenElement

Method Detail

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)