ConForM.CoopnTools.CoKer.ScenarioVisual
Class ScenarioGraphicalState
java.lang.Object
|
+--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement
|
+--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
|
+--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalNode
|
+--ConForM.CoopnTools.CoKer.ScenarioVisual.ScenarioGraphicalState
- All Implemented Interfaces:
- GraphicalVisualEditable, GraphicalVisualElement, GraphicalVisualNode, GraphicalVisualRenderable, GraphicalVisualShape, ScenarioGraphicalStateHolder, javax.swing.undo.StateEditable
- public class ScenarioGraphicalState
- extends AbstractGraphicalNode
- implements ScenarioGraphicalStateHolder
Scenario state.
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 |
ScenarioGraphicalState(GraphicalVisualRenderableGroup parent,
CoopnSpec spec,
Scenario scenario,
State state,
boolean initial,
boolean totallyExplored,
java.lang.String name,
java.lang.String identifier,
NodeAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
AspectMgr aspectMgr,
javax.swing.JMenuItem[] specificHelpMenu,
CoopnEnv env)
Complete constructor. |
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape |
addEndingArc, addNeighbour, addStartingArc, deselect, endingArcs, getElementShape, induceSelection, initElement, invalidateAbsLoc, invalidateElementShape, neighbours, partOfParent, removeNeighbour, reRendition, selectElement, setElementShape, setRelElemBox, shape, startingArcs |
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement |
abortMove, acceptAspect, 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, getTransferable, 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, getShown, getShownInfo, getShownLabel, getStringTransfer, getTransferable, 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 |
boundingBox, deselect, export, paint, pointedElement, print, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, selectElement, selectInfo, selectLabel, specificPopup |
stateName
protected java.lang.String stateName
state
protected State state
identifier
protected java.lang.String identifier
scenario
protected Scenario scenario
initial
protected boolean initial
totallyExplored
protected boolean totallyExplored
rho
protected static final int rho
circ
protected static final int circ
x0
protected static final int x0
y0
protected static final int y0
rho1
protected static final int rho1
circ1
protected static final int circ1
x1
protected static final int x1
y1
protected static final int y1
ScenarioGraphicalState
public ScenarioGraphicalState(GraphicalVisualRenderableGroup parent,
CoopnSpec spec,
Scenario scenario,
State state,
boolean initial,
boolean totallyExplored,
java.lang.String name,
java.lang.String identifier,
NodeAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
AspectMgr aspectMgr,
javax.swing.JMenuItem[] specificHelpMenu,
CoopnEnv env)
- Complete constructor.
actionOnMultipleClick
public void actionOnMultipleClick(java.awt.event.MouseEvent e,
java.awt.Point location,
GraphicalVisualEditor editor)
- Multiple click callback. This routine is called by the graphical
visual when it detects a multiple click on this element.
- Overrides:
actionOnMultipleClick
in class AbstractGraphicalElement
- Parameters:
e
- the mouse eventlocation
- the location of the event, in logical spaceeditor
- the associated editor
showDetails
public void showDetails()
- Show the details of this state.
showObjectModel
public void showObjectModel()
- Show the object model of this state.
state
public State state()
- Get the state associated to this GraphicalElement, or null if
no state is associated to this element.
- Specified by:
state
in interface ScenarioGraphicalStateHolder
isInitial
public boolean isInitial()
- Get the initial status of this state. True means an initial state.
- Specified by:
isInitial
in interface ScenarioGraphicalStateHolder
setInitial
public void setInitial(boolean initial)
- Set the initial status of this state. True means an initial state.
- Specified by:
setInitial
in interface ScenarioGraphicalStateHolder
isTotallyExplored
public boolean isTotallyExplored()
- Get the totally explored status of this state. True means totally explored.
- Specified by:
isTotallyExplored
in interface ScenarioGraphicalStateHolder
setTotallyExplored
public void setTotallyExplored(boolean totallyExplored)
- Set the totally explored status of this state. True means totally explored.
- Specified by:
setTotallyExplored
in interface ScenarioGraphicalStateHolder
internalG2D
protected final void internalG2D(java.awt.Graphics2D g)
internalExp
protected final 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