public class DrawLabelFigure extends LabelFigure implements DrawFigure
Draw
implementation.| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listeners |
protected static boolean |
transformFreely
Hint that figures should ignore any transformation constraints
|
| Constructor and Description |
|---|
DrawLabelFigure() |
DrawLabelFigure(String s) |
DrawLabelFigure(String s,
Font f) |
DrawLabelFigure(String s,
Font font,
double padding,
int anchor) |
DrawLabelFigure(String s,
String face,
int style,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(FigureListener l)
Registers a listener for to be informed when figure changes
occur.
|
protected void |
fireChanged()
Send a FigureChangedEvent object specifying that this figure
has changed.
|
protected void |
fireCreated()
Send a FigureChangedEvent object specifying that this figure
has created to all listeners.
|
protected void |
fireRemoved()
Send a FigureChangedEvent object specifying that this figure
has been removed.
|
float |
getLineWidth()
Get the line width.
|
Paint |
getStrokePaint()
Get the outline.
|
static boolean |
isTransformFreely()
Find out if this is an occasion when a figure should give up
any constraints and transform freely.
|
void |
removeListener(FigureListener l)
Remove a listener.
|
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 |
transform(AffineTransform at)
Transform the label with the given transform.
|
void |
translate(double x,
double y)
Move the figure the indicated distance.
|
autoAnchor, getAnchor, getAnchorPoint, getBounds, getComposite, getFillPaint, getFont, getOrigin, getPadding, getShape, getString, paint, setAnchor, setComposite, setFillPaint, setFont, setPadding, setString, translateTo, translateTocontains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, hit, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComposite, getFillPaint, setComposite, setFillPaint, setVisiblecontains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, paintgetTransformContext, repaint, repaintgetUserObject, setUserObjectprotected static boolean transformFreely
protected EventListenerList listeners
public DrawLabelFigure()
public DrawLabelFigure(String s)
public void transform(AffineTransform at)
LabelFiguretransform in interface Figuretransform in class LabelFigurepublic void translate(double x,
double y)
AbstractFiguretranslate in interface Figuretranslate in class AbstractFigurepublic void setShape(Shape shape)
DrawFiguresetShape in interface DrawFigurepublic void setLineWidth(float lineWidth)
DrawFiguresetLineWidth in interface DrawFigurepublic float getLineWidth()
DrawFiguregetLineWidth in interface DrawFigurepublic void setStrokePaint(Paint outline)
DrawFiguresetStrokePaint in interface DrawFigurepublic Paint getStrokePaint()
DrawFiguregetStrokePaint in interface DrawFigurepublic void setTransformFreely(boolean state)
DrawFigureDraw, given their normal constraints,
e.g. XRangeFigure).setTransformFreely in interface DrawFigurepublic static boolean isTransformFreely()
public void addListener(FigureListener l)
addListener in interface DrawFigurel - the FigureListenerpublic void removeListener(FigureListener l)
removeListener in interface DrawFigurel - the FigureListenerprotected void fireCreated()
protected void fireRemoved()
protected void fireChanged()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.