|
|
|||||||||
| 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.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 PicPoint |
ptAnchor
anchor point |
protected String |
textString
string argument |
| Fields inherited from class jpicedt.graphic.model.AbstractElement |
|---|
attributeSet, name, 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 | ||
|---|---|---|
PicPoint |
getCtrlPt(int numPoint,
PicPoint dest)
Return the user-controlled point having the given index. |
|
CtrlPtSubset |
getCtrlPtSubset(ConvexZoneGroup csg,
BitSet czExtension)
Renvoie un la partie des points de contrôle qui satisfont à l'un des deux critères suivants: ceux compris dans l'ensemble de zones convexes csg, et
ceux en relation avec les points de contrôle satisfaisant au première critère selon une relation
définies par czExtension
|
|
int |
getFirstPointIndex()
Returns the index of the first user-controlled point that can be retrieved by getCtrlPt(). |
|
int |
getLastPointIndex()
Returns the index of the last user-controlled point that can be retrieved by getCtrlPt(). |
|
String |
getText()
Return the string argument (e.g of the corresponding \\makebox{} command) |
|
String |
getText(boolean mode)
Return the string argument (e.g of the corresponding \\makebox{} command) |
|
|
setAttribute(PicAttributeName<T> name,
T value)
Set the given attribute name to the given value for this AbstractElement |
|
void |
setText(String str)
Set the string argument (e.g. of the \\makebox{} command) |
|
| Methods inherited from class jpicedt.graphic.model.AbstractElement |
|---|
anchorPointsIterator, clone, createActions, createShape, fireChangedUpdate, getAttribute, getAttributeSet, getDefaultName, getDrawing, getName, getParent, getView, pullOutOfGroup, removeView, replaceBy, scale, scale, scale, setAttributeSet, setCtrlPt, setName, setParent, setViewFromFactory, shear, syncArrowGeometry, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jpicedt.graphic.model.Element |
|---|
getBoundingBox, mirror, rotate, scale, setCtrlPt, shear, translate |
| Field Detail |
|---|
public static final int FIRST_PT
public static final int P_ANCHOR
public static final int LAST_PT
protected PicPoint ptAnchor
protected String textString
| Constructor Detail |
|---|
protected TextEditable(String textString,
PicPoint anchorPoint,
PicAttributeSet set)
TextEditable with the given content and attribute set
protected TextEditable(String textString,
PicPoint anchorPoint)
TextEditable with the given content and a default attribute set
protected TextEditable(TextEditable e)
TextEditable
| Method Detail |
|---|
public <T> void setAttribute(PicAttributeName<T> name,
T value)
setAttribute in interface ElementsetAttribute in class AbstractElementpublic int getFirstPointIndex()
getCtrlPt().
This default implementation returns 0.
public int getLastPointIndex()
getCtrlPt().
This default implementation returns the number of specification points minus one.
public PicPoint getCtrlPt(int numPoint,
PicPoint dest)
ElementsetPoint method.
numPoint - the point index, should be greater or equal to the value returned by
getFirstPointIndex, and lower or equal to getLastPointIndex.
index ;
if dest is null, concrete implementation of this method should
allocate a new PicPoint and return it,
otherwise directly modify dest and return it as well for convenience.public String getText(boolean mode)
mode - the textmodepublic String getText()
public void setText(String str)
public CtrlPtSubset getCtrlPtSubset(ConvexZoneGroup csg,
BitSet czExtension)
Elementcsg, et
czExtension
getCtrlPtSubset in interface ElementgetCtrlPtSubset in class AbstractElementcsg - l'ensemble de zones convexes dont on teste qu'il contient le point d'ancrage du texte.czExtension - ignoré
null si le point d'ancrage du texte n'est pas dans l'ensemble de zones convexes
csg, un CtrlPtSubsetPlain de this sinon.jpicedt.graphic.model
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||