ConForM.CoopnTools.CoKer.CoopnVisual
Class CoopnGraphicalGenericSyncOp

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement
        |
        +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
              |
              +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalNode
                    |
                    +--ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalNode
                          |
                          +--ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalGenericSyncOp
All Implemented Interfaces:
CoopnGraphicalElement, CoopnGraphicalSyncHolder, GraphicalVisualEditable, GraphicalVisualElement, GraphicalVisualNode, GraphicalVisualRenderable, GraphicalVisualShape, javax.swing.undo.StateEditable
Direct Known Subclasses:
CoopnGraphicalAbstractClassPortCohercion, CoopnGraphicalAbstractContextPortCohercion, CoopnGraphicalSyncAlt, CoopnGraphicalSyncSeq, CoopnGraphicalSyncSim

public abstract class CoopnGraphicalGenericSyncOp
extends CoopnGraphicalNode
implements CoopnGraphicalSyncHolder

Coopn synchronisation operation.


Field Summary
protected static int circ
           
protected  GraphicalVisualArc comesFrom
           
protected static int halfHalfRho
           
protected static int halfRho
           
protected static int rho
           
protected  CoopnSync sync
           
protected static int x0
           
protected static int y0
           
 
Fields inherited from class ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalNode
coopnElement
 
Fields inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalNode
isInterface, workRect
 
Fields inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
elementShape, endingArcs, neighbours, precomputedRelElemBox, startingArcs, validElementShape
 
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
CoopnGraphicalGenericSyncOp(GraphicalVisualRenderableGroup parent, CoopnSync sync, NodeAspect aspect, java.lang.String aspectName, java.lang.String aspectModule, AspectMgr aspectMgr, CoopnEnv env)
          Complete constructor.
 
Method Summary
 void addEndingArc(GraphicalVisualArc element)
          Add an ending arc.
 GraphicalVisualArc comesFrom()
          Get the synchronisation requiring this op.
 void findEndingAttachementPointNear(java.awt.Point orig, GraphicalVisualArc arc)
          Get an ending attachement point near another point.
 void findStartingAttachementPointNear(java.awt.Point orig, GraphicalVisualArc arc)
          Get a starting attachement point near another point.
 boolean getShown()
          Look if the associated element is shown.
protected  void internalExp(GraphicalExporter g)
           
protected  void internalExport(GraphicalExporter g)
          Export an element, with regards to its parent location.
protected  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.
 boolean partOfParent()
          Specify if the element is part of its parent or not.
 CoopnSync sync()
          Get the synchronisation associated to this CoopnGraphicalElement, or null if no synchronisation is associated to this element.
 
Methods inherited from class ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalNode
coopnElement, getTransferable
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalNode
interfaceChanged, interfaceStatus, setRelLoc, verifyChange
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
addNeighbour, addStartingArc, deselect, endingArcs, getElementShape, induceSelection, initElement, invalidateAbsLoc, invalidateElementShape, neighbours, removeNeighbour, reRendition, selectElement, setElementShape, setRelElemBox, shape, startingArcs
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement
abortMove, acceptAspect, actionOnMultipleClick, addPopupItem, aspectMgr, aspectName, attachToParent, boundingBox, clonedAspect, commitMove, description, export, externalBox, externalInfoBox, externalLabelBox, getAbsElemBox, getAbsInfoBox, getAbsLabelBox, getAbsLoc, getBoundingBox, getCol, getColor, getExternalBox, getExternalInfoBox, getExternalLabelBox, getInfo, getInfoLoc, getLabelLoc, getLocation, getRelElemBox, getRelInfoBox, getRelLabelBox, getRelLoc, getShownInfo, getShownLabel, getStringTransfer, inChange, inducedSelection, inside, internalDrawInfo, internalDrawLabel, internalExportInfo, internalExportLabel, invalidateAbsElemBox, invalidateAbsInfoBox, invalidateAbsLabelBox, invalidateBoundingBox, invalidateColor, invalidateExternalBox, invalidateExternalInfoBox, invalidateExternalLabelBox, invalidateInfoLoc, invalidateLabelLoc, invalidateRelElemBox, invalidateRelInfoBox, invalidateRelLabelBox, invalidateRelLoc, label, move, move, moveInfo, moveInfo, moveLabel, moveLabel, objectElement, paint, parent, parentMoved, pointedElement, print, restoreAspect, restoreCompleteState, restoreState, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, saveIntAspect, selected, selectInfo, selectLabel, setAbsElemBox, setAbsInfoBox, setAbsLabelBox, setAbsLoc, setBoundingBox, setColor, setColor, setExternalBox, setExternalInfoBox, setExternalLabelBox, setInfo, setInfoLoc, setLabelLoc, setLayoutLocation, setRelInfoBox, setRelLabelBox, setShown, setShownInfo, setShownLabel, specificPopup, storeCompleteState, storeState, toAbsolute, toRelative
 
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, inducedSelection, induceSelection, inside, label, parent, parentMoved, selected, setLayoutLocation
 
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
actionOnMultipleClick, boundingBox, deselect, export, paint, pointedElement, print, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, selectElement, selectInfo, selectLabel, specificPopup
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualShape
addNeighbour, addStartingArc, endingArcs, neighbours, removeNeighbour, shape, startingArcs
 

Field Detail

sync

protected CoopnSync sync

rho

protected static final int rho

circ

protected static final int circ

x0

protected static final int x0

y0

protected static final int y0

halfRho

protected static final int halfRho

halfHalfRho

protected static final int halfHalfRho

comesFrom

protected GraphicalVisualArc comesFrom
Constructor Detail

CoopnGraphicalGenericSyncOp

public CoopnGraphicalGenericSyncOp(GraphicalVisualRenderableGroup parent,
                                   CoopnSync sync,
                                   NodeAspect aspect,
                                   java.lang.String aspectName,
                                   java.lang.String aspectModule,
                                   AspectMgr aspectMgr,
                                   CoopnEnv env)
Complete constructor.
Method Detail

addEndingArc

public void addEndingArc(GraphicalVisualArc element)
Add an ending arc. A sync op can only have one unique arc ending at it, the actual parent synchronisation
Overrides:
addEndingArc in class AbstractGraphicalShape

comesFrom

public GraphicalVisualArc comesFrom()
Get the synchronisation requiring this op.

partOfParent

public boolean partOfParent()
Specify if the element is part of its parent or not. An element which is part of its parent must be phisically enclosed in its parent, and cannot intersect its brothers.
Overrides:
partOfParent in class AbstractGraphicalShape
Returns:
false, as such nodes are not part of their parents.

getShown

public boolean getShown()
Look if the associated element is shown. If the element is not shown, nothing of its components must be shown, and in particular the label must not be shown.
Overrides:
getShown in class AbstractGraphicalElement
Returns:
true iff the associated element is shown.

internalG2D

protected void internalG2D(java.awt.Graphics2D g)

internalExp

protected void internalExp(GraphicalExporter g)

internalPaint

protected void internalPaint(java.awt.Graphics2D g)
Paint an element, with regards to its center.
Overrides:
internalPaint in class AbstractGraphicalElement

internalPrint

protected void internalPrint(java.awt.Graphics2D g)
Print an element, with regards to its center.
Overrides:
internalPrint in class AbstractGraphicalElement

internalExport

protected void internalExport(GraphicalExporter g)
Export an element, with regards to its parent location.
Overrides:
internalExport in class AbstractGraphicalElement

findStartingAttachementPointNear

public void findStartingAttachementPointNear(java.awt.Point orig,
                                             GraphicalVisualArc arc)
Get a starting attachement point near another point.
Following copied from interface: ConForM.CoopnTools.CoKer.Visual.GraphicalVisualShape
Parameters:
point - the point in logical coordinates; cannot be null; this point is modified such that it is now a starting attachement point.
arc - the arc

findEndingAttachementPointNear

public void findEndingAttachementPointNear(java.awt.Point orig,
                                           GraphicalVisualArc arc)
Get an ending attachement point near another point.
Following copied from interface: ConForM.CoopnTools.CoKer.Visual.GraphicalVisualShape
Parameters:
point - the point in logical coordinates; cannot be null; this point is modified such that it is now an ending attachement point.
arc - the arc

sync

public CoopnSync sync()
Get the synchronisation associated to this CoopnGraphicalElement, or null if no synchronisation is associated to this element.
Specified by:
sync in interface CoopnGraphicalSyncHolder