|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
General graphical visual elements. This interfaceclass defines the common components of graphical visual elements. Such elements are used and managed by the graphical visuals of CoopnTools. Locations and sizes of elements are given in the so-called logical space, i.e. without zooming, and distances expressed in logical coordinates, like in Aspects (1 inch = 81,92 logical units). When drawing itself, a component may be obliged to transform its coordinates in the so-called PHYSICAL space; this transformation is actually a simple affine transformation (a multiplication by an integer constant and an offset). This class must be extended for coping with the different kinds of visual elements.
Fields inherited from interface javax.swing.undo.StateEditable |
RCSID |
Method Summary | |
void |
attachToParent(GraphicalVisualRenderableGroup parent)
Set the parent group if this element. |
java.lang.String |
description()
Description of the element. |
java.awt.Rectangle |
externalBox()
Get the external box. |
java.awt.Rectangle |
externalInfoBox()
Get the external info box. |
java.awt.Rectangle |
externalLabelBox()
Get the external label box. |
java.lang.String |
getInfo()
Get the information field. |
java.awt.Point |
getLocation()
Get the location. |
boolean |
getShown()
Look if the associated element is shown. |
boolean |
getShownInfo()
Look if the information field is shown. |
boolean |
getShownLabel()
Look if the label is shown. |
java.lang.String |
getStringTransfer()
Get the String image of this element used in textual transfers. |
java.awt.datatransfer.Transferable |
getTransferable()
Get a transferable representing the element. |
boolean |
inducedSelection()
Look if the element is selected, or if it is selected by induction. |
void |
induceSelection()
Set the induced selection of this element; when this method is called, this element must retrieve its induced selection state from its closely related elements. |
int |
inside(java.awt.Point p)
Look if a point is "inside" the element, and if the case arises, how the point is "inside" (border, angle, middle, and so on). |
java.lang.String |
label()
Label of the element. |
GraphicalVisualRenderableGroup |
parent()
Get the parent node of the element. |
void |
parentMoved()
Notification of the modification of location of the parent. |
boolean |
partOfParent()
Specify if the element is part of its parent or not. |
boolean |
selected()
Look if the element if selected or not. |
void |
setLayoutLocation(java.awt.Point newLocation)
Set the location according to a layout. |
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 |
Method Detail |
public boolean partOfParent()
public GraphicalVisualRenderableGroup parent()
public void attachToParent(GraphicalVisualRenderableGroup parent)
parent
- the parent group, or null if the element should be
dettached from its parentpublic void parentMoved()
public java.lang.String label()
public java.lang.String description()
public java.lang.String getStringTransfer()
public java.awt.datatransfer.Transferable getTransferable()
public java.awt.Point getLocation()
public void setLayoutLocation(java.awt.Point newLocation)
newLocation
- the new location, in absolute coordinatespublic java.lang.String getInfo()
public boolean getShown()
public boolean getShownLabel()
public boolean getShownInfo()
public boolean selected()
public void induceSelection()
public boolean inducedSelection()
public java.awt.Rectangle externalBox()
public java.awt.Rectangle externalLabelBox()
public java.awt.Rectangle externalInfoBox()
public int inside(java.awt.Point p)
point
- the point in logicial coordinates; cannot be nulljava.lang.IllegalArgumentException
- the argument is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |