|
|
|||||||||
| 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.PicParallelogram
jpicedt.graphic.model.Drawing.BoundingBox
public class Drawing.BoundingBox
| Field Summary |
|---|
| Fields inherited from class jpicedt.graphic.model.PicParallelogram |
|---|
b2tVec, CTRL_PT_SIDE_BITMAP, FIRST_PT, IN_SIDE_B, IN_SIDE_L, IN_SIDE_R, IN_SIDE_T, l2rVec, LAST_PT, P_BL, P_BR, P_CENTER, P_TL, P_TR, ptBL, ptBR, ptTR, SIDE_0, SIDE_B, SIDE_L, SIDE_R, SIDE_T |
| Fields inherited from class jpicedt.graphic.model.AbstractElement |
|---|
attributeSet, name, parent, view |
| Constructor Summary | |
|---|---|
Drawing.BoundingBox()
|
|
Drawing.BoundingBox(Drawing.BoundingBox bb)
"cloning" constructor (to be used by clone()) |
|
| Method Summary | ||
|---|---|---|
Drawing.BoundingBox |
clone()
Overrides Object.clone() method |
|
ArrayList<PEAction> |
createActions(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
HitInfo hi)
Create an array of Action's related to this object |
|
AbstractCustomizer |
createCustomizer()
Returns a customizer (Swing) component |
|
protected void |
fireChangedUpdate(DrawingEvent.EventType eventType)
Must be called each time this AbstractElement changes. |
|
String |
getDefaultName()
|
|
Drawing |
getDrawing()
Retrieves the underlying drawing |
|
String |
getName()
Return a non-localised string representing this element's name. |
|
BranchElement |
getParent()
Gets the parent of the element. |
|
View |
getView()
Returns the View that's responsible for rendering this AbstractElement |
|
boolean |
isAutoCompute()
|
|
boolean |
isVisible()
|
|
void |
mirror(PicPoint ptOrg,
PicVector normalVector)
Effectue une réflexion sur this relativement à l'axe
défini par ptOrg et normalVector. |
|
void |
rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point |
|
|
setAttribute(PicAttributeName<T> name,
T value)
Set the given attribute name to the given value for this AbstractElement |
|
void |
setAttributeSet(PicAttributeSet attributeSet)
Bind the given attributes set to this Element. |
|
void |
setAutoCompute(boolean b)
|
|
void |
setCtrlPt(int numPoint,
PicPoint pt,
EditPointConstraint constraint)
Set the coordinate of the control-point indexed by "numPoint" to the given value. |
|
void |
setGeometry(PicParallelogram para)
Sets the coordinates of this element from those of the given source. |
|
void |
setParent(BranchElement p)
Sets the parent of this element to be the given element. |
|
void |
setVisible(boolean b)
|
|
void |
shear(PicPoint ptOrg,
double shx,
double shy)
Cisaille cet élément par (shx,shy) en utilisant ptOrg comme origine. |
|
| Methods inherited from class jpicedt.graphic.model.PicParallelogram |
|---|
convertToMultiCurve, createShape, getB2TVec, getBoundingBox, getCenter, getCtrlPt, getCtrlPtSubset, getFirstPointIndex, getL2RtoXAxisAngle, getL2RVec, getLastPointIndex, isRectangle, isXYorYXRectangle, isXYRectangle, makeRectangle, makeXYRectangle, scale, setCtrlPt, setGeometry, shear, toParalleloBasisCoordinates, toString, translate, updateParalleloBasis |
| Methods inherited from class jpicedt.graphic.model.AbstractElement |
|---|
anchorPointsIterator, getAttribute, getAttributeSet, pullOutOfGroup, removeView, replaceBy, scale, scale, scale, setName, setViewFromFactory, syncArrowGeometry |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jpicedt.graphic.model.Element |
|---|
anchorPointsIterator, getAttribute, getAttributeSet, removeView, replaceBy, scale, scale, scale, setViewFromFactory, syncArrowGeometry |
| Constructor Detail |
|---|
public Drawing.BoundingBox()
public Drawing.BoundingBox(Drawing.BoundingBox bb)
| Method Detail |
|---|
public void setAutoCompute(boolean b)
public boolean isAutoCompute()
public void setVisible(boolean b)
public boolean isVisible()
public Drawing.BoundingBox clone()
PicParallelogram
clone in interface Elementclone in class PicParallelogrampublic String getDefaultName()
getDefaultName in class PicParallelogrampublic String getName()
Element
getName in interface ElementgetName in class AbstractElementpublic View getView()
AbstractElementAbstractElement
getView in interface ElementgetView in class AbstractElementpublic Drawing getDrawing()
AbstractElement
getDrawing in interface ElementgetDrawing in class AbstractElementAbstractElement doesn't belong to any drawing yet.public BranchElement getParent()
AbstractElement
getParent in interface ElementgetParent in class AbstractElementprotected void fireChangedUpdate(DrawingEvent.EventType eventType)
AbstractElementAbstractElement changes. This default implementation
updates the associated View if any, then propagates upward along the tree by calling
forwardChangedUpdate(this) on the Element's parent, if any.
super.fireChangeUpdate.
fireChangedUpdate in class AbstractElementeventType - the event typepublic void setParent(BranchElement p)
AbstractElement
setParent in interface ElementsetParent in class AbstractElementp - The parent to be set for this element.public void setAttributeSet(PicAttributeSet attributeSet)
AbstractElementElement. This implementation actually makes a deep
copy of the given set beforehands.
setAttributeSet in interface ElementsetAttributeSet in class AbstractElement
public <T> void setAttribute(PicAttributeName<T> name,
T value)
AbstractElement
setAttribute in interface ElementsetAttribute in class AbstractElement
public void setCtrlPt(int numPoint,
PicPoint pt,
EditPointConstraint constraint)
PicParallelogramThe SQUARE constraint imposes that the parallelogram be a square. The square diagonal is computed from the current control-point and its opposite corner. Other spec' points are set accordingly.
The CENTER_FIXED constraint imposes that the parallelogram center be kept fixed. Spec' points are set accordingly.
setCtrlPt in interface ElementsetCtrlPt in class PicParallelogramnumPoint - one of P_TL, P_TR, P_BL, P_BR, SIDE_T, SIDE_B, SIDE_L, SIDE_R or P_CENTER.constraint - either null or one of PicParallelogram.EditConstraintpublic void setGeometry(PicParallelogram para)
PicParallelogram
setGeometry in class PicParallelogram
public void rotate(PicPoint ptOrg,
double angle)
PicParallelogram
rotate in interface Elementrotate in class PicParallelogramangle - rotation angle in radians
public void mirror(PicPoint ptOrg,
PicVector normalVector)
PicParallelogramthis relativement à l'axe
défini par ptOrg et normalVector.
mirror in interface Elementmirror in class PicParallelogramptOrg - le PicPoint par lequel passe l'axe de réflexion.normalVector - le PicVector normal à l'axe de réflexion.
public void shear(PicPoint ptOrg,
double shx,
double shy)
AbstractElement(shx,shy) en utilisant ptOrg comme origine.
Ceci est une commodité d'appel de
shear(ptOrg, shx, shy,UserConfirmationCache.DEFAULT).
shear in interface Elementshear in class AbstractElement
public ArrayList<PEAction> createActions(ActionDispatcher actionDispatcher,
ActionLocalizer localizer,
HitInfo hi)
PicParallelogram
createActions in interface ActionFactorycreateActions in class PicParallelogramactionDispatcher - dispatches events to the proper PECanvaslocalizer - i18n localizer for PEAction'shi - une HitInfo contenant les informations relatives à l'évènement-souris qui a
déclencher le menu contextuel.public AbstractCustomizer createCustomizer()
CustomizerFactory
createCustomizer in interface CustomizerFactorycreateCustomizer in class PicParallelogram
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||