ConForM.CoopnTools.CoKer.CoopnVisual
Class CoopnGraphicalObject
java.lang.Object
|
+--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement
|
+--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape
|
+--ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalContainer
|
+--ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalContainer
|
+--ConForM.CoopnTools.CoKer.CoopnVisual.CoopnGraphicalObject
- All Implemented Interfaces:
- CoopnGraphicalElement, GraphicalVisualContainer, GraphicalVisualEditable, GraphicalVisualElement, GraphicalVisualRenderable, GraphicalVisualRenderableGroup, GraphicalVisualShape, javax.swing.undo.StateEditable
- public class CoopnGraphicalObject
- extends CoopnGraphicalContainer
Coopn Object.
Fields inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalContainer |
absCentre, borderBox, internalShape, minimalHeight, minimalWidth, relCentre, resizeGap, size, validAbsCentre, validBorderBox, validInternalShape, validRelCentre, validSize |
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 |
CoopnGraphicalObject(GraphicalVisualRenderableGroup parent,
CoopnClassModule theClass,
CoopnTerm oid,
ContainerAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
AspectMgr aspectMgr,
CoopnMgr cmgr,
CoopnEnv env)
Complete constructor. |
CoopnGraphicalObject(GraphicalVisualRenderableGroup parent,
CoopnClassModule theClass,
CoopnTerm oid,
ContainerAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
javax.swing.JMenuItem[] specificHelpMenu,
AspectMgr aspectMgr,
CoopnMgr cmgr,
CoopnEnv env)
Complete constructor. |
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalContainer |
abortResize, addComponent, centre, commitResize, componentChanged, components, deselect, export, getAbsCentre, getBorderBox, getInternalShape, getRelCentre, getShownInternal, getSize, induceSelection, inside, internalShape, invalidateAbsCentre, invalidateAbsElemBox, invalidateAbsLoc, invalidateBorderBox, invalidateElementShape, invalidateInternalShape, invalidateRelCentre, invalidateSize, paint, pointedElement, print, removeComponent, reRendition, resize, resize, restoreCompleteState, saveAspect, saveAspectAs, selectElement, setAbsCentre, setBorderBox, setBoundingBox, setExternalBox, setLayoutSize, setRelCentre, setShownInternal, setSize, storeCompleteState, verifyChange, verifyResize |
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalShape |
addEndingArc, addNeighbour, addStartingArc, endingArcs, getElementShape, neighbours, partOfParent, removeNeighbour, setRelElemBox, shape, startingArcs |
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.AbstractGraphicalElement |
abortMove, acceptAspect, actionOnMultipleClick, addPopupItem, aspectMgr, aspectName, attachToParent, boundingBox, clonedAspect, commitMove, description, 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, internalDrawInfo, internalDrawLabel, internalExportInfo, internalExportLabel, invalidateAbsInfoBox, invalidateAbsLabelBox, invalidateBoundingBox, invalidateColor, invalidateExternalBox, invalidateExternalInfoBox, invalidateExternalLabelBox, invalidateInfoLoc, invalidateLabelLoc, invalidateRelElemBox, invalidateRelInfoBox, invalidateRelLabelBox, invalidateRelLoc, label, move, move, moveInfo, moveInfo, moveLabel, moveLabel, objectElement, parent, parentMoved, restoreAspect, restoreState, saveAspectAsPossible, saveAspectPossible, saveIntAspect, selected, selectInfo, selectLabel, setAbsElemBox, setAbsInfoBox, setAbsLabelBox, setAbsLoc, setColor, setColor, setExternalInfoBox, setExternalLabelBox, setInfo, setInfoLoc, setLabelLoc, setLayoutLocation, setRelInfoBox, setRelLabelBox, setRelLoc, setShown, setShownInfo, setShownLabel, specificPopup, 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 |
interfaceGap
protected static final int interfaceGap
CoopnGraphicalObject
public CoopnGraphicalObject(GraphicalVisualRenderableGroup parent,
CoopnClassModule theClass,
CoopnTerm oid,
ContainerAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
AspectMgr aspectMgr,
CoopnMgr cmgr,
CoopnEnv env)
- Complete constructor.
CoopnGraphicalObject
public CoopnGraphicalObject(GraphicalVisualRenderableGroup parent,
CoopnClassModule theClass,
CoopnTerm oid,
ContainerAspect aspect,
java.lang.String aspectName,
java.lang.String aspectModule,
javax.swing.JMenuItem[] specificHelpMenu,
AspectMgr aspectMgr,
CoopnMgr cmgr,
CoopnEnv env)
- Complete constructor.
initElement
protected void initElement()
- Initisalisation of the element, before computing the boxes, before any
rendering.
- Overrides:
initElement
in class AbstractGraphicalContainer
setElementShape
protected void setElementShape()
- Overrides:
setElementShape
in class AbstractGraphicalShape
setInternalShape
protected void setInternalShape()
- Overrides:
setInternalShape
in class AbstractGraphicalContainer
exportShapeInLightGray
public void exportShapeInLightGray(GraphicalExporter g)
- Overrides:
exportShapeInLightGray
in class AbstractGraphicalContainer
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
labelFont
protected java.awt.Font labelFont()
- Get the font of the label.
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
findInterfacePointNear
public int findInterfacePointNear(java.awt.Point point,
GraphicalVisualNode node)
- Get an interface point near another point.
- Parameters:
point
- the point in logical coordinates; cannot be null; this
point is modified such that it is on the interface
of the container- Returns:
- an approximation of the angle of a line, perpendicular
to the container's visible shape, and passing through
the interface point. The angle is expressed in
degree, following the trigonometric sense.