|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drawables.Drawable
|
+--drawables.DrawableText
Class for drawable texts.
| Field Summary | |
static int |
BASELINE
vertikale Ausrichtung an der Basislinie. |
static int |
BOLD
fetter Text-Stil. |
static int |
BOLDITALIC
fett kursiver Text-Stil. |
static int |
CENTER
mittige horizontale Ausrichtung. |
static int |
CENTERLINE
mittige vertikale Ausrichtung. |
static int |
ITALIC
kursiver Text-Stil. |
static int |
LEFT
linksbündige horizontale Ausrichtung. |
static int |
MAXSIZE
maximale Textgröße in Punkt. |
static int |
MINSIZE
minimale Textgröße in Punkt. |
static int |
NORMAL
normaler Text-Stil. |
static int |
RIGHT
rechtsbündige horizontale Ausrichtung. |
static int |
TOPLINE
vertikale Ausrichtung am Oberrand. |
| 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 |
DrawableText()
Konstruktor. |
|
DrawableText(int px,
int py,
java.lang.String s)
Konstruktor. |
|
DrawableText(int x,
int y,
java.lang.String s,
java.lang.String presName,
int h,
int v)
Konstruktor. |
|
DrawableText(int x,
int y,
java.lang.String s,
java.lang.String presName,
int h,
int v,
int pMinScale,
int pMaxScale)
Konstruktor. |
| Method Summary | |
static java.lang.String |
correctString(java.lang.String input)
Korrigiert eingelesenen String. |
protected void |
drawProtected(java.awt.Graphics g,
int scale,
int mode,
int value)
Zeichnet den Text im Graphic Context g, vorausgesetzt der aktuelle Maßstab wird eingehalten. |
java.lang.String |
getOrigString()
Gibt originalen Text zurück. |
java.lang.String |
getString()
Gibt den Text in ANSI- bzw. |
boolean |
interacts(int px,
int py,
int scale)
Tests whether the primitive is selected by a given point or not. |
static boolean |
isUnicodeUsed()
Gibt zurück, ob die Ausgabe in Unicode oder ANSI erfolgen soll. |
EntryReadable |
read(EntryInput r)
Liest den Text vom Entry-Input ein. |
static java.awt.Font |
setFont(java.awt.Graphics g,
int style,
int size)
Setzt den gewünschten Font im Graphik-Kontext. |
void |
setText(java.lang.String text)
Sets the text attribute of the drawable text. |
static void |
setUnicode(boolean u)
Setzt, ob die Ausgabe in Unicode oder ANSI erfolgen soll. |
protected static java.lang.String |
toOutputString(java.lang.String in)
Konvertiert den Eingabe-String in Abhängigkeit vom akt. |
protected void |
writeProtected(EntryWriter out,
int type)
Writes the text. |
| 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, writeGML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NORMAL
public static final int BOLD
public static final int ITALIC
public static final int BOLDITALIC
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int TOPLINE
public static final int CENTERLINE
public static final int BASELINE
public static final int MINSIZE
public static final int MAXSIZE
| Constructor Detail |
protected DrawableText()
public DrawableText(int px,
int py,
java.lang.String s)
px - x-Positionpy - y-Positions - Text
public DrawableText(int x,
int y,
java.lang.String s,
java.lang.String presName,
int h,
int v)
s - TextpresName - Name des Darstellungsobjektsh - horizontale Ausrichtungv - vertikale Ausrichtung
public DrawableText(int x,
int y,
java.lang.String s,
java.lang.String presName,
int h,
int v,
int pMinScale,
int pMaxScale)
s - TextpresName - Name des Darstellungsobjektsh - horizontale Ausrichtungv - vertikale AusrichtungpMinScale - Mindest-Maßstab zum ZeichnenpMaxScale - Maximal-Maßstab zum Zeichnen| Method Detail |
public static java.lang.String correctString(java.lang.String input)
input - eingelesener String
protected void drawProtected(java.awt.Graphics g,
int scale,
int mode,
int value)
drawProtected in class Drawableg - aktueller Graphic Contextscale - aktueller Maßstabmode - aktueller Darstellungsmodusvalue - Darstellungswertpublic java.lang.String getOrigString()
public java.lang.String getString()
public boolean interacts(int px,
int py,
int scale)
Drawable
interacts in class Drawablepx - x-coordinate of the pointpy - y-coordinate of the pointscale - actuals scale
public static boolean isUnicodeUsed()
public EntryReadable read(EntryInput r)
r - Entry-Input
public static java.awt.Font setFont(java.awt.Graphics g,
int style,
int size)
g - Graphik-Kontextstyle - Stilsize - Größe in Punktpublic void setText(java.lang.String text)
text - new textpublic static void setUnicode(boolean u)
u - Unicode?protected static java.lang.String toOutputString(java.lang.String in)
in - Eingabe-String
protected void writeProtected(EntryWriter out,
int type)
writeProtected in class Drawableout - entry writertype - type of the output; meaning see read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||