Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.model
Class TextEditable  view TextEditable download TextEditable.java

java.lang.Object
  extended byjpicedt.graphic.model.AbstractElement
      extended byjpicedt.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

Nested Class Summary
 
Nested classes inherited from class jpicedt.graphic.model.AbstractElement
AbstractElement.DefaultPointIterator
 
Nested classes inherited from class jpicedt.graphic.model.Element
Element.PointIterator
 
Field Summary
static int FIRST_PT
           
static int LAST_PT
           
static int P_ANCHOR
           
protected  java.lang.String textString
          string argument
 
Fields inherited from class jpicedt.graphic.model.AbstractElement
attributeSet, parent, ptsX, ptsY, view
 
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
 
Constructor Summary
protected TextEditable(java.lang.String textString, jpicedt.graphic.PicPoint anchorPoint)
          Construct a new TextEditable with the given content and a default attribute set
protected TextEditable(java.lang.String textString, jpicedt.graphic.PicPoint anchorPoint, PicAttributeSet set)
          Construct a new TextEditable with the given content and attribute set
protected TextEditable(TextEditable e)
          Construct a clone of the given TextEditable
 
Method Summary
 java.awt.geom.Rectangle2D getBoundingBox()
           
 java.lang.String getText()
           
 void setText(java.lang.String str)
          Set the string argument (e.g.
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Constructor Detail

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
Method Detail

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()