|
|
||||||||||
| 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.BranchElement
jpicedt.graphic.model.PicGroup
A concrete implementation of BranchElement that is suited for building groups of elements. It allows easy global resize/translate transformation by providing 8 control points that can be used by mouse operation.
| Nested Class Summary | |
class |
PicGroup.GroupPointIterator
An iterator over PicPoint's that can serve as anchors for grid alignment. |
| Field Summary | |
static int |
FIRST_PT
|
static int |
LAST_PT
|
static int |
LL
|
static int |
LM
|
static int |
LR
|
static int |
ML
|
static int |
MR
|
static int |
UL
|
static int |
UM
|
static int |
UR
|
| Fields inherited from class jpicedt.graphic.model.BranchElement |
changeLock, children, ptsX, ptsY |
| Fields inherited from class jpicedt.graphic.model.AbstractElement |
attributeSet, parent, view |
| Constructor Summary | |
PicGroup()
construct a PicGroup with no parent and a default PicAttributeSet |
|
PicGroup(BranchElement src)
Cloning constructor. |
|
PicGroup(Collection c)
Simply call superclass's constructor. |
|
PicGroup(PicAttributeSet attributeSet)
construct a PicGroup with no parent and the given PicAttributeSet |
|
| Method Summary | |
PointIndexIterator |
anchorPointsIterator()
Create an Iterator over points that can serve as anchor points for grid alignment. |
Object |
clone()
Return a deep copy of this PicGroup |
PEAction[] |
createActions(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
HitInfo hi)
Creates an array of Action's related to this object |
AbstractCustomizer |
createCustomizer()
Returns a customizer (Swing) component |
int |
getFirstPointIndex()
Return the index of the first user-controlled point that can be retrieved by getPoint() |
int |
getLastPointIndex()
Return the index of the last user-controlled point that can be retrieved by getPoint() |
String |
getName()
Return a non-localised string representing this element's name. |
double |
getPointX(int numPoint)
Same as getPoint(), yet return the x-coordinate only. |
double |
getPointY(int numPoint)
This default implementation returns ptsY[numPoint].This might be a valid implementation
as long as subclasses don't have other control points. |
void |
setPoint(int numPoint,
PicPoint ptNew,
EditPointConstraint constraint)
Set the point numbered by "numPoint" to the "pt" value, and scales inward object accordingly |
String |
toString()
Returns a String representing the group for debugging use only. |
| Methods inherited from class jpicedt.graphic.model.BranchElement |
add, addAll, addChild, addChild, bringBackward, bringForward, bringToBack, bringToFront, children, clear, contains, contains, containsAll, containsClass, createFilteredCollection, equals, forwardChangedUpdate, getAllowsChildren, getBoundingBox, getChildAt, getChildCount, getChildIndex, getPoint, isEmpty, isToBack, isToFront, iterator, remove, removeAll, removeAllChildren, removeChild, removeView, replaceChild, retainAll, rotate, scale, scale, setAttribute, setAttributeSet, setPoint, setViewFromFactory, shear, size, toArray, toArray, translate, updateBoundingBox |
| Methods inherited from class jpicedt.graphic.model.AbstractElement |
fireChangedUpdate, getAttribute, getAttributeSet, getDrawing, getParent, getView, setParent |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
hashCode |
| Field Detail |
public static final int FIRST_PT
public static final int UL
public static final int UM
public static final int UR
public static final int ML
public static final int MR
public static final int LL
public static final int LM
public static final int LR
public static final int LAST_PT
| Constructor Detail |
public PicGroup()
public PicGroup(PicAttributeSet attributeSet)
public PicGroup(BranchElement src)
public PicGroup(Collection c)
| Method Detail |
public Object clone()
clone in interface Elementclone in class BranchElementpublic String getName()
Element
getName in interface Elementpublic int getFirstPointIndex()
Element
getFirstPointIndex in interface ElementgetFirstPointIndex in class BranchElementpublic int getLastPointIndex()
Element
getLastPointIndex in interface ElementgetLastPointIndex in class BranchElementpublic double getPointX(int numPoint)
ElementgetPoint(), yet return the x-coordinate only.
getPointX in interface ElementgetPointX in class BranchElementnumPoint - the point index, should be greater or equal to the value returned by
getFirstPointIndex, and lower or equal to getLastPointIndex.
numPoint.public double getPointY(int numPoint)
BranchElementptsY[numPoint].This might be a valid implementation
as long as subclasses don't have other control points.
getPointY in interface ElementgetPointY in class BranchElementnumPoint - the point index, should be greater or equal to the value returned by
getFirstPointIndex, and lower or equal to getLastPointIndex.
numPoint.
public void setPoint(int numPoint,
PicPoint ptNew,
EditPointConstraint constraint)
setPoint in interface ElementsetPoint in class BranchElementconstraint - not used here, may be safely set to nullpublic PointIndexIterator anchorPointsIterator()
AbstractElement
anchorPointsIterator in interface ElementanchorPointsIterator in class AbstractElementpublic String toString()
toString in class BranchElement
public PEAction[] createActions(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
HitInfo hi)
createActions in interface ActionFactoryactionDispatcher - dispatcher used to create a PEActionlocalizer - used to localizer action parametershi - a HitInfo containing information related to the mouse-event which triggered the popup menu.public AbstractCustomizer createCustomizer()
CustomizerFactory
createCustomizer in interface CustomizerFactory
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||