|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
General graphical visual editable. This interface defines the most general editable elements or group of elements. 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).
Fields inherited from interface javax.swing.undo.StateEditable |
RCSID |
Method Summary | |
void |
abortMove()
Abort the move. |
void |
commitMove()
Commit the move. |
boolean |
inChange()
Look if a change of aspect is in progress. |
boolean |
move(java.awt.Dimension dim)
Try to move the element. |
boolean |
move(java.awt.Dimension dim,
java.awt.Dimension grid)
Try to move the element on a grid. |
boolean |
moveInfo(java.awt.Dimension dim)
Try to move the info field of the element. |
boolean |
moveInfo(java.awt.Dimension dim,
java.awt.Dimension grid)
Try to move the info field of the element on a grid. |
boolean |
moveLabel(java.awt.Dimension dim)
Try to move the label of the element. |
boolean |
moveLabel(java.awt.Dimension dim,
java.awt.Dimension grid)
Try to move the label of the element on a grid. |
void |
restoreCompleteState(java.util.Hashtable state)
Restore the aspect. |
void |
setColor(java.awt.Color color)
Specifiy the color of the element. |
void |
setInfo(java.lang.String info)
Set the information field. |
void |
setShown(boolean shown)
Specifiy if the associated element is shown. |
void |
setShownInfo(boolean shown)
Specifiy is the information field is shown. |
void |
setShownLabel(boolean shown)
Specifiy is the label is shown. |
void |
storeCompleteState(java.util.Hashtable state)
Store the aspect. |
Methods inherited from interface javax.swing.undo.StateEditable |
restoreState, storeState |
Method Detail |
public void storeCompleteState(java.util.Hashtable state)
state
- an hashtable, storing states of elementspublic void restoreCompleteState(java.util.Hashtable state)
state
- an hashtable, storing states of elementspublic boolean inChange()
public boolean move(java.awt.Dimension dim)
dim
- the difference of positionpublic boolean move(java.awt.Dimension dim, java.awt.Dimension grid)
dim
- the difference of positiongrid
- grid sizepublic boolean moveLabel(java.awt.Dimension dim)
dim
- the difference of positionpublic boolean moveLabel(java.awt.Dimension dim, java.awt.Dimension grid)
dim
- the difference of positiongrid
- grid sizepublic boolean moveInfo(java.awt.Dimension dim)
dim
- the difference of positionpublic boolean moveInfo(java.awt.Dimension dim, java.awt.Dimension grid)
dim
- the difference of positiongrid
- grid sizepublic void commitMove()
public void abortMove()
public void setInfo(java.lang.String info)
info
- the information field as a String; if this
parameter is
null, an empty string is used as information
fieldpublic void setShown(boolean shown)
shown
- true iff the element must be shownpublic void setShownLabel(boolean shown)
shown
- true iff the label must be shownpublic void setShownInfo(boolean shown)
shown
- true iff the information field must be shownpublic void setColor(java.awt.Color color)
color
- the color
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |