ConForM.CoopnTools.CoKer.CoopnVisual
Class CoopnGraphicalGenericTransition

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement
        |
        +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
              |
              +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalNode
                    |
                    +--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalRotatableNode
                          |
                          +--ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalRotatableNode
                                |
                                +--ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalGenericTransition
All Implemented Interfaces:
CoopnGraphicalElement, GraphicalVisualEditable, GraphicalVisualElement, GraphicalVisualNode, GraphicalVisualRenderable, GraphicalVisualRotatableNode, GraphicalVisualShape, javax.swing.undo.StateEditable
Direct Known Subclasses:
CoopnGraphicalGenericClassTransition, CoopnGraphicalGenericContextTransition

public abstract class CoopnGraphicalGenericTransition
extends CoopnGraphicalRotatableNode

Coopn generic transitions. This class is inherited by transitions, methods, and so on. It provides tha basic capabilities dealing with the external rectangular shape of the transition, but dos not implement the drawing feautures.


Field Summary
protected  java.awt.geom.Point2D.Float bl
           
protected  java.awt.geom.Point2D.Float br
           
protected static int height
           
protected static int hheight
           
protected static int hwidth
           
protected static double quarter
           
protected  CoopnSymbol transition
           
protected  java.awt.Rectangle transitionRect
           
protected  java.awt.geom.Point2D.Float ul
           
protected static int unitX
           
protected static int unitY
           
protected  java.awt.geom.Point2D.Float ur
           
protected static int width
           
protected static int x0
           
protected static int x1
           
protected static int x2
           
protected static int y0
           
protected static int y1
           
protected static int y2
           
protected static int y3
           
protected static int y4
           
 
Fields inherited from class ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalRotatableNode
coopnElement
 
Fields inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalRotatableNode
angle, rotationMatrix, validAngle
 
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
CoopnGraphicalGenericTransition(GraphicalVisualRenderableGroup parent, CoopnSymbol transition, java.lang.String label, java.lang.String descr, CoopnCondition condition, boolean italic, boolean inter, RotatableNodeAspect aspect, java.lang.String aspectName, java.lang.String aspectModule, AspectMgr aspectMgr, CoopnEnv env)
          Complete constructor.
 
Method Summary
 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.
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 setElementShape()
           
 
Methods inherited from class ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalRotatableNode
coopnElement, getTransferable
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalRotatableNode
abortRotation, commitRotation, getAngle, invalidateAngle, invalidateRelLoc, reRendition, rotate, rotate, setAngle, setLayoutAngle, setRelLoc, setRotatedLocation
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalNode
interfaceChanged, interfaceStatus, verifyChange
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
addEndingArc, addNeighbour, addStartingArc, deselect, endingArcs, getElementShape, induceSelection, initElement, invalidateAbsLoc, invalidateElementShape, neighbours, partOfParent, removeNeighbour, selectElement, 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, getShown, getShownInfo, getShownLabel, getStringTransfer, inChange, inducedSelection, inside, internalDrawInfo, internalDrawLabel, internalExportInfo, internalExportLabel, invalidateAbsElemBox, invalidateAbsInfoBox, invalidateAbsLabelBox, invalidateBoundingBox, invalidateColor, invalidateExternalBox, invalidateExternalInfoBox, invalidateExternalLabelBox, invalidateInfoLoc, invalidateLabelLoc, invalidateRelElemBox, invalidateRelInfoBox, invalidateRelLabelBox, 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, getShown, getShownInfo, getShownLabel, getStringTransfer, inducedSelection, induceSelection, inside, label, parent, parentMoved, partOfParent, 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.GraphicalVisualNode
interfaceChanged, interfaceStatus
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualShape
addEndingArc, addNeighbour, addStartingArc, endingArcs, neighbours, removeNeighbour, shape, startingArcs
 

Field Detail

transition

protected CoopnSymbol transition

transitionRect

protected java.awt.Rectangle transitionRect

unitX

protected static final int unitX

unitY

protected static final int unitY

width

protected static final int width

height

protected static final int height

hwidth

protected static final int hwidth

hheight

protected static final int hheight

x0

protected static final int x0

x1

protected static final int x1

x2

protected static final int x2

y0

protected static final int y0

y1

protected static final int y1

y2

protected static final int y2

y3

protected static final int y3

y4

protected static final int y4

quarter

protected static final double quarter

ul

protected java.awt.geom.Point2D.Float ul

ur

protected java.awt.geom.Point2D.Float ur

bl

protected java.awt.geom.Point2D.Float bl

br

protected java.awt.geom.Point2D.Float br
Constructor Detail

CoopnGraphicalGenericTransition

public CoopnGraphicalGenericTransition(GraphicalVisualRenderableGroup parent,
                                       CoopnSymbol transition,
                                       java.lang.String label,
                                       java.lang.String descr,
                                       CoopnCondition condition,
                                       boolean italic,
                                       boolean inter,
                                       RotatableNodeAspect aspect,
                                       java.lang.String aspectName,
                                       java.lang.String aspectModule,
                                       AspectMgr aspectMgr,
                                       CoopnEnv env)
Complete constructor.
Method Detail

setElementShape

protected void setElementShape()
Overrides:
setElementShape in class AbstractGraphicalShape

internalG2D

protected abstract void internalG2D(java.awt.Graphics2D g)

internalExp

protected abstract 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