|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.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 Element
clone
in class PicParallelogram
public String getDefaultName()
getDefaultName
in class PicParallelogram
public String getName()
Element
getName
in interface Element
getName
in class AbstractElement
public View getView()
AbstractElement
AbstractElement
getView
in interface Element
getView
in class AbstractElement
public Drawing getDrawing()
AbstractElement
getDrawing
in interface Element
getDrawing
in class AbstractElement
AbstractElement
doesn't belong to any drawing yet.public BranchElement getParent()
AbstractElement
getParent
in interface Element
getParent
in class AbstractElement
protected void fireChangedUpdate(DrawingEvent.EventType eventType)
AbstractElement
AbstractElement
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 AbstractElement
eventType
- the event typepublic void setParent(BranchElement p)
AbstractElement
setParent
in interface Element
setParent
in class AbstractElement
p
- The parent to be set for this element.public void setAttributeSet(PicAttributeSet attributeSet)
AbstractElement
Element
. This implementation actually makes a deep
copy of the given set beforehands.
setAttributeSet
in interface Element
setAttributeSet
in class AbstractElement
public <T> void setAttribute(PicAttributeName<T> name, T value)
AbstractElement
setAttribute
in interface Element
setAttribute
in class AbstractElement
public void setCtrlPt(int numPoint, PicPoint pt, EditPointConstraint constraint)
PicParallelogram
The 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 Element
setCtrlPt
in class PicParallelogram
numPoint
- 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 Element
rotate
in class PicParallelogram
angle
- rotation angle in radianspublic void mirror(PicPoint ptOrg, PicVector normalVector)
PicParallelogram
this
relativement à l'axe
défini par ptOrg
et normalVector
.
mirror
in interface Element
mirror
in class PicParallelogram
ptOrg
- 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 Element
shear
in class AbstractElement
public ArrayList<PEAction> createActions(ActionDispatcher actionDispatcher, ActionLocalizer localizer, HitInfo hi)
PicParallelogram
createActions
in interface ActionFactory
createActions
in class PicParallelogram
actionDispatcher
- 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 CustomizerFactory
createCustomizer
in class PicParallelogram
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |