|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DrawFigure
DrawFigure defines an interface that any Figures drawn on a Draw
implementation should implement. See DrawBasicFigure
and DrawPathFigure
for concrete implementations of this
interface.
Draw
,
DrawBasicFigure
,
DrawActions
Method Summary | |
---|---|
void |
addListener(FigureListener l)
Registers a listener for to be informed when figure changes occur. |
Composite |
getComposite()
Get the composite (null for unset). |
Paint |
getFillPaint()
Get the fill. |
float |
getLineWidth()
Get the line width. |
Paint |
getStrokePaint()
Get the outline. |
void |
removeListener(FigureListener l)
Remove a listener. |
void |
setComposite(AlphaComposite composite)
All Figures have composite fills/colours. |
void |
setFillPaint(Paint fill)
All Figures can be potentially filled. |
void |
setLineWidth(float lineWidth)
All Figures have a line width. |
void |
setShape(Shape shape)
Set the Figure shape. |
void |
setStrokePaint(Paint outline)
All Figures have an outline colour. |
void |
setTransformFreely(boolean state)
Enable the hint that a figure should allow itself to transform freely, rather than obey any constraints (this is meant for figures that could not otherwise redraw themselves to fit a resized Draw , given their normal constraints,
e.g. |
void |
setVisible(boolean flag)
Set the visibility. |
Methods inherited from interface diva.canvas.Figure |
---|
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform, translate |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, paint, paint |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getTransformContext, repaint, repaint |
Methods inherited from interface diva.util.UserObjectContainer |
---|
getUserObject, setUserObject |
Method Detail |
---|
void setShape(Shape shape)
void setVisible(boolean flag)
setVisible
in interface VisibleComponent
void setFillPaint(Paint fill)
Paint getFillPaint()
void setComposite(AlphaComposite composite)
Composite getComposite()
void setLineWidth(float lineWidth)
float getLineWidth()
void setStrokePaint(Paint outline)
Paint getStrokePaint()
void setTransformFreely(boolean state)
Draw
, given their normal constraints,
e.g. XRangeFigure).
void addListener(FigureListener l)
l
- the FigureListenervoid removeListener(FigureListener l)
l
- the FigureListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |