|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.graphics.objects.VisibleObject
com.cosylab.vdct.graphics.objects.TextBox
public class TextBox
Field Summary | |
---|---|
protected java.text.AttributedString |
attText
|
protected int[] |
breaks
|
protected java.lang.String |
description
|
protected double |
fontScale
|
protected java.awt.font.FontRenderContext |
frc
|
protected boolean |
htmlMode
|
protected javax.swing.JLabel |
label
|
protected java.awt.font.LineBreakMeasurer |
lineMeasurer
|
protected java.util.Hashtable |
map
|
protected java.text.AttributedCharacterIterator |
paragraph
|
protected int |
paragraphEnd
|
protected int |
paragraphStart
|
protected java.awt.Font |
rfont
|
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject |
---|
x, y, zoomImage |
Constructor Summary | |
---|---|
TextBox(java.lang.String parName,
Group parentGroup,
int posX,
int posY,
int posX2,
int posY2)
|
Method Summary | |
---|---|
void |
accept(Visitor visitor)
|
boolean |
checkMove(int dx,
int dy)
Insert the method's description here. |
Flexible |
copyToGroup(java.lang.Object dsId,
java.lang.String group)
Returns the copied instance or null if the object cannot be copied. |
void |
destroy()
Insert the method's description here. |
protected void |
draw(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
void |
drawDashedBorder(java.awt.Graphics g,
boolean hilited)
|
protected void |
drawMultiLineText(java.awt.Graphics g,
float drawPosX,
float drawPosY,
float formatWidth)
|
static boolean |
getCurrentBorder()
|
java.lang.String |
getDescription()
Insert the method's description here. |
Vertex |
getEndVertex()
|
java.lang.String |
getFlexibleName()
Insert the method's description here. |
java.lang.String |
getHashID()
Insert the method's description here. |
java.util.Vector |
getItems()
Insert the method's description here. |
java.lang.String |
getName()
|
Vertex |
getStartVertex()
|
int |
getX()
Insert the method's description here. |
int |
getY()
Insert the method's description here. |
VisibleObject |
hiliteComponentsCheck(int x,
int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12) |
VisibleObject |
intersects(int px,
int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20) |
boolean |
isBorder()
Returns the border. |
boolean |
move(int dx,
int dy)
Insert the method's description here. |
boolean |
moveToGroup(java.lang.Object dsId,
java.lang.String group)
Insert the method's description here. |
boolean |
rename(java.lang.Object dsId,
java.lang.String newName)
Insert the method's description here. |
void |
revalidatePosition()
Insert the method's description here. |
void |
setBorder(boolean parBorder)
|
void |
setColor(java.awt.Color color)
Insert the method's description here. |
void |
setDescription(java.lang.String description)
Insert the method's description here. |
void |
setFont(java.awt.Font parFont)
Insert the method's description here. |
void |
showChangeTextDialog()
|
void |
snapToGrid()
Snap to grid. |
protected void |
validate()
Insert the method's description here. |
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject |
---|
forceValidation, getColor, getDsId, getFont, getHeight, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, setDestroyed, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, unconditionalValidation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cosylab.vdct.graphics.popup.Popupable |
---|
getLabel |
Field Detail |
---|
protected java.lang.String description
protected javax.swing.JLabel label
protected boolean htmlMode
protected java.util.Hashtable map
protected java.text.AttributedString attText
protected java.text.AttributedCharacterIterator paragraph
protected int paragraphStart
protected int paragraphEnd
protected java.awt.font.LineBreakMeasurer lineMeasurer
protected int[] breaks
protected java.awt.font.FontRenderContext frc
protected double fontScale
protected java.awt.Font rfont
Constructor Detail |
---|
public TextBox(java.lang.String parName, Group parentGroup, int posX, int posY, int posX2, int posY2)
Method Detail |
---|
public void showChangeTextDialog()
protected void drawMultiLineText(java.awt.Graphics g, float drawPosX, float drawPosY, float formatWidth)
public void setColor(java.awt.Color color)
VisibleObject
setColor
in class VisibleObject
color
- java.awt.Colorpublic void setFont(java.awt.Font parFont)
VisibleObject
setFont
in class VisibleObject
parFont
- java.awt.Fontpublic void accept(Visitor visitor)
accept
in interface Visitable
visitor
- com.cosylab.vdct.graphics.objects.Visitorpublic boolean checkMove(int dx, int dy)
Movable
checkMove
in interface Movable
dx
- intdy
- int
public Flexible copyToGroup(java.lang.Object dsId, java.lang.String group)
Flexible
copyToGroup
in interface Flexible
group
- java.lang.Stringpublic void destroy()
VisibleObject
destroy
in class VisibleObject
protected void draw(java.awt.Graphics g, boolean hilited)
VisibleObject
draw
in class VisibleObject
g
- java.awt.Graphicshilited
- booleanpublic void drawDashedBorder(java.awt.Graphics g, boolean hilited)
public static boolean getCurrentBorder()
public Vertex getEndVertex()
public java.lang.String getFlexibleName()
Flexible
getFlexibleName
in interface Flexible
public java.lang.String getHashID()
VisibleObject
getHashID
in class VisibleObject
public java.util.Vector getItems()
Popupable
getItems
in interface Popupable
public java.lang.String getName()
getName
in interface BorderObject
public Vertex getStartVertex()
public boolean move(int dx, int dy)
Movable
move
in interface Movable
dx
- intdy
- int
public boolean moveToGroup(java.lang.Object dsId, java.lang.String group)
Flexible
moveToGroup
in interface Flexible
group
- java.lang.Stringpublic boolean rename(java.lang.Object dsId, java.lang.String newName)
Flexible
rename
in interface Flexible
newName
- java.lang.Stringpublic void revalidatePosition()
VisibleObject
revalidatePosition
in class VisibleObject
public void setBorder(boolean parBorder)
protected void validate()
VisibleObject
validate
in class VisibleObject
public java.lang.String getDescription()
Descriptable
getDescription
in interface Descriptable
Descriptable.getDescription()
public void setDescription(java.lang.String description)
Descriptable
setDescription
in interface Descriptable
description
- java.lang.StringDescriptable.setDescription(String)
public VisibleObject hiliteComponentsCheck(int x, int y)
x
- inty
- int
public VisibleObject intersects(int px, int py)
intersects
in class VisibleObject
px
- intpy
- int
public boolean isBorder()
public int getX()
VisibleObject
getX
in class VisibleObject
public int getY()
VisibleObject
getY
in class VisibleObject
public void snapToGrid()
VisibleObject
snapToGrid
in class VisibleObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |