|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Graphical visual container. This interface defines the elements of graphical visual which are containers, by extending graphical visual shapes. Containers contain elements with shapes. They can e moved and resized, and so on. Containers have a ContainerAspect aspect.
Fields inherited from interface javax.swing.undo.StateEditable |
RCSID |
Method Summary | |
void |
abortResize()
Abort the resize. |
java.awt.Point |
centre()
Get a representation of the centre of the container. |
void |
commitResize()
Commit the resize. |
int |
findInterfacePointNear(java.awt.Point point,
GraphicalVisualNode node)
Get an interface point near another point. |
boolean |
getShownInternal()
Look if the internal part of the associated element is shown. |
java.awt.Rectangle |
getSize()
Get the size. |
java.awt.Shape |
internalShape()
Get the internal shape. |
boolean |
resize(java.awt.Dimension dim,
int h,
int v)
Try to resize the container. |
boolean |
resize(java.awt.Dimension dim,
int h,
int v,
java.awt.Dimension grid)
Try to resize the container on a grid. |
void |
setLayoutSize(java.awt.Rectangle newSize)
Set the size according to a layout. |
void |
setShownInternal(boolean shown)
Specifiy if the internal part of the associated element is shown. |
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualShape |
addEndingArc, addNeighbour, addStartingArc, endingArcs, findEndingAttachementPointNear, findStartingAttachementPointNear, neighbours, removeNeighbour, shape, startingArcs |
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 |
actionOnMultipleClick, boundingBox, deselect, export, paint, pointedElement, print, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, selectElement, selectInfo, selectLabel, specificPopup |
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualRenderableGroup |
addComponent, componentChanged, components, removeComponent |
Method Detail |
public boolean getShownInternal()
public void setShownInternal(boolean shown)
shown
- true iff the element must be shownpublic java.awt.Rectangle getSize()
public void setLayoutSize(java.awt.Rectangle newSize)
newSize
- the new size, in absolute coordinatespublic boolean resize(java.awt.Dimension dim, int h, int v)
dim
- the increment in width and height; a positive
value means an inflation of the container, while
a negative value means a compression of the
containerh
- specify if resize at left, right or both part of
component; one of GraphicalVisualEditor.LEFT,
GraphicalVisualEditor.MIDDLE or
GraphicalVisualEditor.RIGHTv
- specify if resize at top, bottom or both part of
component one of GraphicalVisualEditor.TOP,
GraphicalVisualEditor.MIDDLE or
GraphicalVisualEditor.BOTTOMpublic boolean resize(java.awt.Dimension dim, int h, int v, java.awt.Dimension grid)
dim
- the increment in width and height; a positive
value means an inflation of the container, while
a negative value means a compression of the
containerh
- specify if resize at left, right or both part of
component; one of GraphicalVisualEditor.LEFT,
GraphicalVisualEditor.MIDDLE or
GraphicalVisualEditor.RIGHTv
- specify if resize at top, bottom or both part of
component one of GraphicalVisualEditor.TOP,
GraphicalVisualEditor.MIDDLE or
GraphicalVisualEditor.BOTTOMgrid
- grid sizepublic void commitResize()
public void abortResize()
public java.awt.Point centre()
public java.awt.Shape internalShape()
public int findInterfacePointNear(java.awt.Point point, GraphicalVisualNode node)
point
- the point in logical coordinates; cannot be null; this
point is modified such that it is on the interface
of the containernode
- the interface node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |