drawables
Class DrawableCircle

java.lang.Object
  |
  +--drawables.Drawable
        |
        +--drawables.FilledDrawable
              |
              +--drawables.DrawableRectangle
                    |
                    +--drawables.DrawableCircle
All Implemented Interfaces:
EntryReadable, java.io.Serializable

public class DrawableCircle
extends DrawableRectangle

Drawable class for circles.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class drawables.FilledDrawable
filled
 
Fields inherited from class drawables.Drawable
AREALAYER, BITMAPLAYER, container, DEFMAXSCALE, DEFMINSCALE, layer, LINELAYER, maxScale, mbr, minScale, nextOfLayer, obj, POINTLAYER, pres, selected, TEXTLAYER
 
Constructor Summary
protected DrawableCircle()
          Konstruktor.
  DrawableCircle(int x, int y, int rad)
          Konstruktor für nicht gefüllte Kreise.
  DrawableCircle(int x, int y, int rad, boolean pFilled, java.lang.String presName)
          Konstruktor für Kreise.
  DrawableCircle(int x, int y, int rad, boolean pFilled, java.lang.String presName, int pMinScale, int pMaxScale)
          Konstruktor für Kreise.
 
Method Summary
protected  void drawProtected(java.awt.Graphics g, int scale, int mode, int value)
          Zeichnet den Kreis im Graphic Context g, vorausgesetzt der aktuelle Maßstab scale wird vom Kreis eingehalten.
 EntryReadable read(EntryInput r)
          Liest den Kreis vom Entry-Input ein.
protected  void writeProtected(EntryWriter out, int type)
          Writes the circle.
 
Methods inherited from class drawables.FilledDrawable
isFilled, setFilling
 
Methods inherited from class drawables.Drawable
computeDistance, computeDistanceTo, contains, draw, draw, draw, draw, getContainer, getId, getLayer, getMaxScale, getMBR, getMinScale, getNextOfLayer, getObject, getPresentation, getPresentation, getType, interacts, intersects, intersects, intersects, isContainedBy, isVisible, readCoord, readCoord, readDrawable, readDrawable, setContainer, setLayer, setMaxScale, setMBR, setMinScale, setNextOfLayer, setObject, setPresentation, setSelection, toString, write, writeCoord, writeCoord, writeGML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawableCircle

protected DrawableCircle()
Konstruktor.


DrawableCircle

public DrawableCircle(int x,
                      int y,
                      int rad)
Konstruktor für nicht gefüllte Kreise.

Parameters:
x - x-Koordinate des Mittelpunkts
y - y-Koordinate des Mittelpunkts
rad - Radius

DrawableCircle

public DrawableCircle(int x,
                      int y,
                      int rad,
                      boolean pFilled,
                      java.lang.String presName)
Konstruktor für Kreise.

Parameters:
x - x-Koordinate des Mittelpunkts
y - y-Koordinate des Mittelpunkts
rad - Radius
pFilled - gefüllt?
presName - Name des Darstellungsobjekts

DrawableCircle

public DrawableCircle(int x,
                      int y,
                      int rad,
                      boolean pFilled,
                      java.lang.String presName,
                      int pMinScale,
                      int pMaxScale)
Konstruktor für Kreise.

Parameters:
x - x-Koordinate des Mittelpunkts
y - y-Koordinate des Mittelpunkts
rad - Radius
pFilled - gefüllt?
presName - Name des Darstellungsobjekts
pMinScale - Mindest-Maßstab zum Zeichnen
pMaxScale - Maximal-Maßstab zum Zeichnen
Method Detail

drawProtected

protected void drawProtected(java.awt.Graphics g,
                             int scale,
                             int mode,
                             int value)
Zeichnet den Kreis im Graphic Context g, vorausgesetzt der aktuelle Maßstab scale wird vom Kreis eingehalten.

Overrides:
drawProtected in class DrawableRectangle
Parameters:
g - aktueller Graphic Context
scale - aktueller Maßstab
mode - aktueller Darstellungsmodus
value - Darstellungswert

read

public EntryReadable read(EntryInput r)
Liest den Kreis vom Entry-Input ein. Erster Eintrag "type".
type == 0: x,y,rad
type == 1: filled,presName
type == 2: minScale,maxScale

Specified by:
read in interface EntryReadable
Overrides:
read in class DrawableRectangle
Parameters:
r - Entry-Input
Returns:
this

writeProtected

protected void writeProtected(EntryWriter out,
                              int type)
Writes the circle.

Overrides:
writeProtected in class DrawableRectangle
Parameters:
out - entry writer
type - type of the output; meaning see read