java.lang.Object
jpicedt.graphic.model.AbstractElement
jpicedt.graphic.model.TextEditable
- All Implemented Interfaces:
- Element, PicObjectConstants
- Direct Known Subclasses:
- PicPut, PicText
- public abstract class TextEditable
- extends AbstractElement
An abstract class for Element's that have a textual representation, and whose text can be graphically edited
- Since:
- jPicEdt 1.3.1
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants |
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED |
Methods inherited from class jpicedt.graphic.model.AbstractElement |
anchorPointsIterator, clone, fireChangedUpdate, getAttribute, getAttributeSet, getBoundingBox, getDrawing, getFirstPointIndex, getLastPointIndex, getName, getParent, getPoint, getPointX, getPointY, getView, removeView, scale, scale, setAttribute, setAttributeSet, setParent, setPoint, setViewFromFactory, toString, translate |
FIRST_PT
public static final int FIRST_PT
- See Also:
- Constant Field Values
P_ANCHOR
public static final int P_ANCHOR
- See Also:
- Constant Field Values
LAST_PT
public static final int LAST_PT
- See Also:
- Constant Field Values
textString
protected java.lang.String textString
- string argument
TextEditable
protected TextEditable(java.lang.String textString,
jpicedt.graphic.PicPoint anchorPoint,
PicAttributeSet set)
- Construct a new TextEditable with the given content and attribute set
- Since:
- jPicEdt 1.3.2
TextEditable
protected TextEditable(java.lang.String textString,
jpicedt.graphic.PicPoint anchorPoint)
- Construct a new TextEditable with the given content and a default attribute set
- Since:
- jPicEdt 1.3.2
TextEditable
protected TextEditable(TextEditable e)
- Construct a clone of the given TextEditable
- Since:
- jPicEdt 1.3.2
getText
public java.lang.String getText()
- Since:
- PicEdt 1.0
setText
public void setText(java.lang.String str)
- Set the string argument (e.g. of the \\makebox{} command)
- Since:
- jPicEdt 1.0
getBoundingBox
public java.awt.geom.Rectangle2D getBoundingBox()