|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface defines a generic Drawing which holds a SequenceOfFigures which can be painted and potentially manipulated. It is expected that this will be the fundamental unit to store and retrieve diagrams, pictures, etc.
| Field Summary | |
static java.lang.String |
SIZE_PROPERTY
The size property selector |
static java.lang.String |
STYLE_PROPERTY
The style property selector |
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener. |
java.awt.Dimension |
getSize()
Returns the size of this drawing. |
DrawingStyle |
getStyle()
Answer the style which defines how to paint on the canvas. |
boolean |
isDynamicSize()
Returns whether this drawing is sized dynamically or statically. |
void |
paint(java.awt.Graphics g)
Paints all of the parts of the drawing. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove the specified PropertyChangeListener. |
void |
setDynamicSize(boolean dynamicSize)
Sets whether this drawing is sized dynamically or statically. |
void |
setSize(java.awt.Dimension d)
Resizes the receiver to the specified dimension. |
void |
setSize(int width,
int height)
Sets the size of this drawing. |
void |
setStyle(DrawingStyle style)
Set the style defining how to paint the receiver. |
| Methods inherited from interface com.rolemodelsoft.drawlet.SequenceOfFigures |
addFigure,
addFigureBehind,
figureAt,
figures,
moveFigureBehind,
moveFigureInFront,
moveFigureToBack,
moveFigureToFront,
otherFigureAt,
removeFigure |
| Methods inherited from interface com.rolemodelsoft.drawlet.Paintable |
getBottom,
getBounds,
getHeight,
getLeft,
getRight,
getTop,
getWidth |
| Field Detail |
public static final java.lang.String SIZE_PROPERTY
public static final java.lang.String STYLE_PROPERTY
| Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the listener to add.public java.awt.Dimension getSize()
public DrawingStyle getStyle()
public boolean isDynamicSize()
public void paint(java.awt.Graphics g)
g - the specified Graphics windowpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the listener to remove.public void setDynamicSize(boolean dynamicSize)
dynamicSize - boolean specifying the dynamicSize state the drawing is to have.
public void setSize(int width,
int height)
width - the width the drawing should be set to.height - the height the drawing should be set to.public void setSize(java.awt.Dimension d)
d - the new dimensionpublic void setStyle(DrawingStyle style)
style - the specified DrawingStyle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||