|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drawables.Drawable
|
+--drawables.FilledDrawable
|
+--drawables.DrawableSymbol
Class for drawable symbols.
| Field Summary | |
protected static DrawableText |
bufferedText
Read drawable text. |
static int |
CIRCLE
Circle. |
static int |
CIRCLEDOT
Circle with point. |
static int |
RING
Ring. |
static int |
SQUARE
Square. |
static int |
SQUAREDOT
Square with point. |
static int |
TRIANGLE
Triangle. |
static int |
UPDOWNARROW
Up or down arrow. |
protected int |
x
x-coordinate. |
protected int |
y
y-coordinate. |
| 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 |
DrawableSymbol()
Konstruktor. |
|
DrawableSymbol(int px,
int py,
java.lang.String presName)
Konstruktor für Symbol. |
|
DrawableSymbol(int x,
int y,
java.lang.String presName,
int pMinScale,
int pMaxScale)
Konstruktor für Symbol. |
| Method Summary | |
protected void |
drawProtected(java.awt.Graphics g,
int scale,
int mode,
int pvalue)
Zeichnet das Symbol im Graphic Context g, vorausgesetzt der aktuelle Maßstab wird eingehalten. |
int |
getX()
Gibt die x-Koordinate des Symbols zurück. |
int |
getY()
Gibt die y-Koordinate des Symbols zurück. |
boolean |
interacts(int px,
int py,
int scale)
Testet, ob das Symbol durch den übergebenen Punkt ausgewählt wird. |
void |
moveTo(int x,
int y)
Verschiebt Symbol auf die neue Position (x,y). |
EntryReadable |
read(EntryInput r)
Liest das Symbol vom Entry-Input ein. |
void |
writeGML(EntryWriter out)
Writes the primitive as GML tag. |
protected void |
writeProtected(EntryWriter out,
int type)
Writes the symbol. |
| 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, intersects, intersects, intersects, isContainedBy, isVisible, readCoord, readCoord, readDrawable, readDrawable, setContainer, setLayer, setMaxScale, setMBR, setMinScale, setNextOfLayer, setObject, setPresentation, setSelection, toString, write, writeCoord, writeCoord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SQUARE
public static final int CIRCLE
public static final int SQUAREDOT
public static final int CIRCLEDOT
public static final int RING
public static final int TRIANGLE
public static final int UPDOWNARROW
protected int x
protected int y
protected static DrawableText bufferedText
| Constructor Detail |
protected DrawableSymbol()
public DrawableSymbol(int px,
int py,
java.lang.String presName)
px - x-Koordinatepy - y-KoordinatepresName - Name des Darstellungsobjekts
public DrawableSymbol(int x,
int y,
java.lang.String presName,
int pMinScale,
int pMaxScale)
presName - Name des DarstellungsobjektspMinScale - Mindest-Maßstab zum ZeichnenpMaxScale - Maximal-Maßstab zum Zeichnen| Method Detail |
protected void drawProtected(java.awt.Graphics g,
int scale,
int mode,
int pvalue)
drawProtected in class Drawableg - aktueller Graphic Contextscale - aktueller Maßstabmode - aktueller Darstellungsmoduspvalue - presentation valuepublic int getX()
public int getY()
public boolean interacts(int px,
int py,
int scale)
interacts in class Drawablepx - x-Koordinate in Basis-Koordinatenpy - y-Koordinate in Basis-Koordinatenscale - akt. Maßstab
public void moveTo(int x,
int y)
x - neue x-Koordinatey - neue y-Koordinatepublic EntryReadable read(EntryInput r)
r - Entry-Input
public void writeGML(EntryWriter out)
writeGML in class Drawableout - entry writer
protected void writeProtected(EntryWriter out,
int type)
writeProtected in class Drawableout - entry writertype - type of the output (0-1); meaning see read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||