|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.graphic.model.AbstractElement
jpicedt.graphic.model.DefaultLeafElement
jpicedt.graphic.model.TextEditable
public abstract class TextEditable
An abstract class for Element's that have a textual representation, and [pending:removed as of 1.3.2] whose text can be graphically edited
Field Summary | |
---|---|
static int |
FIRST_PT
|
static int |
LAST_PT
|
static int |
P_ANCHOR
|
protected String |
textString
string argument |
Fields inherited from class jpicedt.graphic.model.DefaultLeafElement |
---|
nodeConnections, nodeName, pts |
Fields inherited from class jpicedt.graphic.model.AbstractElement |
---|
attributeSet, parent, view |
Constructor Summary | |
---|---|
protected |
TextEditable(String textString,
PicPoint anchorPoint)
Construct a new TextEditable with the given content and a default attribute set |
protected |
TextEditable(String textString,
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 | |
---|---|
String |
getText()
Return the string argument (e.g of the corresponding \\makebox{} command) |
void |
setAttribute(PicAttributeName name,
Object value)
Set the given attribute name to the given value for this AbstractElement |
void |
setText(String str)
Set the string argument (e.g. |
Methods inherited from class jpicedt.graphic.model.AbstractElement |
---|
anchorPointsIterator, getAttribute, getAttributeSet, getDrawing, getParent, getView, removeView, scale, setAttributeSet, setParent, setViewFromFactory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FIRST_PT
public static final int P_ANCHOR
public static final int LAST_PT
protected String textString
Constructor Detail |
---|
protected TextEditable(String textString, PicPoint anchorPoint, PicAttributeSet set)
protected TextEditable(String textString, PicPoint anchorPoint)
protected TextEditable(TextEditable e)
Method Detail |
---|
public void setAttribute(PicAttributeName name, Object value)
setAttribute
in interface Element
setAttribute
in class AbstractElement
public String getText()
public void setText(String str)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |