|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement | +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalArc
Abstract graphical arc.
Field Summary | |
protected java.awt.Point |
centre
|
protected GraphicalVisualShape |
end
|
protected java.awt.Point |
endLoc
|
protected java.awt.Point |
endPoint
|
protected boolean |
endToBeShown
|
protected java.util.List |
flatPath
|
protected java.awt.Point[] |
IP
|
protected boolean |
newCentre
|
protected boolean |
newEndLoc
|
protected boolean |
newStartLoc
|
protected java.awt.Point |
oldCentre
|
protected java.awt.Point |
oldEnd
|
protected java.awt.Point |
oldStart
|
protected java.awt.geom.GeneralPath |
path
|
protected GraphicalVisualShape |
start
|
protected java.awt.Point |
startLoc
|
protected java.awt.Point |
startPoint
|
protected boolean |
startToBeShown
|
protected boolean |
validCentre
|
protected boolean |
validEndLoc
|
protected boolean |
validEndPoint
|
protected boolean |
validIP
|
protected boolean |
validPath
|
protected boolean |
validStartLoc
|
protected boolean |
validStartPoint
|
Fields inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement |
absElemBox, absInfoBox, absLabelBox, absLoc, aspect, aspectMgr, boundingBox, delta, description, env, externalBox, externalInfoBox, externalLabelBox, fontRenderContext, inducedSelection, inducedSelectionColor, infoFont, infoLayout, infoLoc, label, labelColor, labelFont, labelLayout, labelLoc, normalColor, objectElement, parent, relElemBox, relInfoBox, relLabelBox, relLoc, savedAspect, selectedColor, selectedElem, selectedInfo, selectedInfoColor, selectedLabel, selectedLabelColor, unconstrained, validAbsElemBox, validAbsInfoBox, validAbsLabelBox, validAbsLoc, validBoundingBox, validColor, validExternalBox, validExternalInfoBox, validExternalLabelBox, validInfoLoc, validLabelLoc, validRelElemBox, validRelInfoBox, validRelLabelBox, validRelLoc |
Fields inherited from interface javax.swing.undo.StateEditable |
RCSID |
Constructor Summary | |
AbstractGraphicalArc(GraphicalVisualRenderableGroup parent,
java.lang.Object element,
AbstractGraphicalShape start,
AbstractGraphicalShape end,
java.lang.String label,
java.lang.String description,
ArcAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
AspectMgr aspectMgr,
CoopnEnv env)
Complete constructor. |
Method Summary | |
void |
actionOnMultipleClick(java.awt.event.MouseEvent e,
java.awt.Point location,
GraphicalVisualEditor editor)
Multiple click callback. |
void |
addIntermediaryPoint(java.awt.Point point)
Add an intermediary point at the best index. |
void |
addIntermediaryPoint(java.awt.Point point,
int index)
Add an intermediary point at a specific index. |
void |
attachmentPointMoved(GraphicalVisualShape shape)
Notification of the move of an attachment point. |
GraphicalVisualShape |
end()
Get the ending shape of the element. |
protected java.awt.Point |
getCentre()
|
protected java.awt.Point |
getEndLoc()
|
protected java.awt.Point |
getEndPoint()
|
java.awt.Point[] |
getIntermediaryPoints()
Get the intermediary points. |
protected java.awt.Point[] |
getIP()
|
protected java.awt.geom.GeneralPath |
getPath()
|
boolean |
getShown()
Look if the associated element is shown. |
protected java.awt.Point |
getStartLoc()
|
protected java.awt.Point |
getStartPoint()
|
int |
getType()
Get the type of the arc. |
void |
induceSelection()
Set the induced selection of this element; when this method is called, this element must retrieve its induced selection state from its closely related elements. |
protected void |
initElement()
Initisalisation of the element, before computing the boxes, before any rendering. |
int |
inside(java.awt.Point here)
Look if a point is "inside" the element, and if the case arises, how the point is "inside" (border, angle, middle, and so on). |
protected abstract void |
internalExp(GraphicalExporter g)
|
protected void |
internalExport(GraphicalExporter g)
Export an element, with regards to its parent location. |
protected abstract void |
internalG2D(java.awt.Graphics2D g)
|
protected void |
internalPaint(java.awt.Graphics2D g)
Paint an element, with regards to its center. |
protected void |
internalPrint(java.awt.Graphics2D g)
Print an element, with regards to its center. |
protected void |
invalidateAbsLoc()
|
protected void |
invalidateCentre()
|
protected void |
invalidateEndLoc()
|
protected void |
invalidateEndPoint()
|
protected void |
invalidateIP()
|
protected void |
invalidatePath()
|
protected void |
invalidateRelLoc()
|
protected void |
invalidateStartLoc()
|
protected void |
invalidateStartPoint()
|
void |
moveIntermediaryPoint(java.awt.Dimension dim,
int index)
Try to move an intermediary point. |
boolean |
partOfParent()
Specify if the element is part of its parent or not. |
GraphicalVisualRenderable |
pointedElement(java.awt.Point here)
Look if the renderable contains a point. |
void |
removeIntermediaryPoint(int index)
Remove an intermediary point at a specific index. |
void |
removeIntermediaryPoint(java.awt.Point point)
Remove an intermediary point at the best index. |
protected void |
reRendition()
|
protected void |
setEndPoint()
|
protected void |
setIP()
|
void |
setLayoutIntermediaryPoints(java.awt.Point[] newIp)
Set the intermediary points according to a layout. |
void |
setLayoutLocation(java.awt.Point newLocation)
Set the location according to a layout. |
protected void |
setPath()
|
protected void |
setRelElemBox()
|
protected void |
setRelLoc()
|
protected void |
setStartPoint()
|
void |
setType(int type)
Specifiy the type of the arc. |
GraphicalVisualShape |
start()
Get the starting shape of the element. |
protected boolean |
verifyChange()
Verify that the a change does not interfere with other elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualElement |
attachToParent, description, externalBox, externalInfoBox, externalLabelBox, getInfo, getLocation, getShownInfo, getShownLabel, getStringTransfer, getTransferable, inducedSelection, label, parent, parentMoved, selected |
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualEditable |
abortMove, commitMove, inChange, move, move, moveInfo, moveInfo, moveLabel, moveLabel, restoreCompleteState, setColor, setInfo, setShown, setShownInfo, setShownLabel, storeCompleteState |
Methods inherited from interface javax.swing.undo.StateEditable |
restoreState, storeState |
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualRenderable |
boundingBox, deselect, export, paint, print, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, selectElement, selectInfo, selectLabel, specificPopup |
Field Detail |
protected GraphicalVisualShape start
protected GraphicalVisualShape end
protected boolean startToBeShown
protected boolean endToBeShown
protected java.awt.Point startLoc
protected java.awt.Point endLoc
protected java.awt.Point oldStart
protected java.awt.Point oldEnd
protected java.awt.Point centre
protected java.awt.Point oldCentre
protected java.awt.Point[] IP
protected java.awt.Point startPoint
protected java.awt.Point endPoint
protected java.awt.geom.GeneralPath path
protected java.util.List flatPath
protected boolean newStartLoc
protected boolean newEndLoc
protected boolean newCentre
protected boolean validStartLoc
protected boolean validEndLoc
protected boolean validCentre
protected boolean validIP
protected boolean validStartPoint
protected boolean validEndPoint
protected boolean validPath
Constructor Detail |
public AbstractGraphicalArc(GraphicalVisualRenderableGroup parent, java.lang.Object element, AbstractGraphicalShape start, AbstractGraphicalShape end, java.lang.String label, java.lang.String description, ArcAspect aspect, java.lang.String aspectName, java.lang.String aspectModule, AspectMgr aspectMgr, CoopnEnv env)
Method Detail |
protected void initElement()
initElement
in class AbstractGraphicalElement
protected void reRendition()
reRendition
in class AbstractGraphicalElement
public void attachmentPointMoved(GraphicalVisualShape shape)
attachmentPointMoved
in interface GraphicalVisualArc
shape
- the shape involved in the moveprotected void invalidateStartLoc()
protected final java.awt.Point getStartLoc()
protected void invalidateEndLoc()
protected final java.awt.Point getEndLoc()
protected void invalidateRelLoc()
invalidateRelLoc
in class AbstractGraphicalElement
protected void setRelLoc()
setRelLoc
in class AbstractGraphicalElement
protected void invalidateAbsLoc()
invalidateAbsLoc
in class AbstractGraphicalElement
protected void invalidateCentre()
protected final java.awt.Point getCentre()
protected void invalidateIP()
protected final java.awt.Point[] getIP()
protected void setIP()
protected void invalidateStartPoint()
protected final java.awt.Point getStartPoint()
protected void setStartPoint()
protected void invalidateEndPoint()
protected final java.awt.Point getEndPoint()
protected void setEndPoint()
protected void invalidatePath()
protected final java.awt.geom.GeneralPath getPath()
protected void setPath()
protected void setRelElemBox()
setRelElemBox
in class AbstractGraphicalElement
public boolean partOfParent()
partOfParent
in interface GraphicalVisualElement
public GraphicalVisualShape start()
start
in interface GraphicalVisualArc
public GraphicalVisualShape end()
end
in interface GraphicalVisualArc
public void setLayoutLocation(java.awt.Point newLocation)
setLayoutLocation
in interface GraphicalVisualElement
setLayoutLocation
in class AbstractGraphicalElement
newLocation
- the new location, in absolute coordinatespublic java.awt.Point[] getIntermediaryPoints()
getIntermediaryPoints
in interface GraphicalVisualArc
public void setLayoutIntermediaryPoints(java.awt.Point[] newIp)
setLayoutIntermediaryPoints
in interface GraphicalVisualArc
newIp
- the new ip, in absolute coordinatespublic void addIntermediaryPoint(java.awt.Point point, int index)
addIntermediaryPoint
in interface GraphicalVisualArc
point
- the location of the new point; cannot be nullindex
- the index; must be validjava.lang.IllegalArgumentException
- The index is not valid, or the point is null.public void addIntermediaryPoint(java.awt.Point point)
addIntermediaryPoint
in interface GraphicalVisualArc
point
- the location of the new point; cannot be nulljava.lang.IllegalArgumentException
- The point is null.public void removeIntermediaryPoint(int index)
removeIntermediaryPoint
in interface GraphicalVisualArc
index
- the index; must be validjava.lang.IllegalArgumentException
- The index is not valid.public void removeIntermediaryPoint(java.awt.Point point)
removeIntermediaryPoint
in interface GraphicalVisualArc
point
- the approximative location of the point to remove;
cannot be nulljava.lang.IllegalArgumentException
- The point is null.public void moveIntermediaryPoint(java.awt.Dimension dim, int index)
moveIntermediaryPoint
in interface GraphicalVisualArc
dim
- the difference of positionindex
- the index; must be validjava.lang.IllegalArgumentException
- The index is not valid.public int getType()
getType
in interface GraphicalVisualArc
public void setType(int type)
setType
in interface GraphicalVisualArc
type
- the type of the arcpublic void induceSelection()
induceSelection
in interface GraphicalVisualElement
induceSelection
in class AbstractGraphicalElement
public GraphicalVisualRenderable pointedElement(java.awt.Point here)
pointedElement
in interface GraphicalVisualRenderable
pointedElement
in class AbstractGraphicalElement
point
- the point in logicial coordinates; cannot be nullpublic int inside(java.awt.Point here)
inside
in interface GraphicalVisualElement
inside
in class AbstractGraphicalElement
point
- the point in logicial coordinates; cannot be nulljava.lang.IllegalArgumentException
- the argument is null.public void actionOnMultipleClick(java.awt.event.MouseEvent e, java.awt.Point location, GraphicalVisualEditor editor)
actionOnMultipleClick
in interface GraphicalVisualRenderable
actionOnMultipleClick
in class AbstractGraphicalElement
e
- the mouse eventlocation
- the location of the event, in logical spaceeditor
- the associated editorpublic boolean getShown()
getShown
in interface GraphicalVisualElement
getShown
in class AbstractGraphicalElement
protected boolean verifyChange()
verifyChange
in class AbstractGraphicalElement
protected abstract void internalG2D(java.awt.Graphics2D g)
protected abstract void internalExp(GraphicalExporter g)
protected void internalPaint(java.awt.Graphics2D g)
internalPaint
in class AbstractGraphicalElement
protected void internalPrint(java.awt.Graphics2D g)
internalPrint
in class AbstractGraphicalElement
protected void internalExport(GraphicalExporter g)
internalExport
in class AbstractGraphicalElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |