public interface DrawFigure extends Figure
Draw
implementation should implement. See DrawBasicFigure
and DrawPathFigure
for concrete implementations of this
interface.Draw
,
DrawBasicFigure
,
DrawActions
Modifier and Type | Method and Description |
---|---|
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.
|
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform, translate
isVisible, paint, paint
getTransformContext, repaint, repaint
getUserObject, setUserObject
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 FigureListenerCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.