@Deprecated public abstract class AbstractFigure extends Object implements Figure
Figure
interface.FILL_COMPOSITE_KEY, FILL_PAINT_KEY, FILL_STROKE_KEY, FILLED_KEY, OUTL_COLOR_KEY, OUTL_COMPOSITE_KEY, OUTL_STROKE_KEY, OUTLINED_KEY, TOOL_INPUT_EVENT_KEY
Modifier | Constructor and Description |
---|---|
protected |
AbstractFigure(Map<String,Object> attributes)
Deprecated.
Constructs an abstract figure.
|
Modifier and Type | Method and Description |
---|---|
void |
addFigureChangeListener(FigureChangeListener listener)
Deprecated.
Adds a listener for this figure.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Deprecated.
|
AbstractFigure |
clone()
Deprecated.
Returns a clone of this figure
|
FigureHandle[] |
createHandles()
Deprecated.
Returns the handles used to manipulate the figure.
|
Figure[] |
decompose()
Deprecated.
Decomposes a figure into its parts.
|
void |
dispose()
Deprecated.
Releases a figure's resources.
|
Figure |
findFigureInside(double x,
double y)
Deprecated.
Returns the figure that contains the given point.
|
Object |
getAttribute(String name)
Deprecated.
Returns the named attribute or null if a a figure doesn't have an attribute.
|
Map<String,Object> |
getAttributes()
Deprecated.
Returns the attributes of this figure as a
Map . |
Figure[] |
getFigures()
Deprecated.
Returns an Enumeration of the figures contained in this figure
|
int |
getZValue()
Deprecated.
Gets the z value (back-to-front ordering) of this figure.
|
boolean |
includes(Figure figure)
Deprecated.
Checks whether the given figure is contained in this figure.
|
void |
removeFigureChangeListener(FigureChangeListener listener)
Deprecated.
Removes a listener for this figure.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Deprecated.
|
void |
setAttribute(String name,
Object value)
Deprecated.
Sets the named attribute to the new value
|
void |
setAttributes(Map<String,Object> attributes)
Deprecated.
Sets multiple attributes
|
void |
setZValue(int zValue)
Deprecated.
Sets the z value (back-to-front ordering) of this figure.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsPoint, getAsArea, getBounds, getCenterPoint, getShape, isOneDimensional
public FigureHandle[] createHandles()
createHandles
is a Factory Method for creating
handle objects.createHandles
in interface Figure
FigureHandle
FigureHandle
public Figure[] getFigures()
getFigures
in interface Figure
public Figure findFigureInside(double x, double y)
findFigureInside
in interface Figure
public boolean includes(Figure figure)
public Figure[] decompose()
public void dispose()
public int getZValue()
public void setZValue(int zValue)
public Map<String,Object> getAttributes()
Map
.getAttributes
in interface Figure
public Object getAttribute(String name)
getAttribute
in interface Figure
public void setAttribute(String name, Object value)
setAttribute
in interface Figure
public void setAttributes(Map<String,Object> attributes)
setAttributes
in interface Figure
public void addFigureChangeListener(FigureChangeListener listener)
addFigureChangeListener
in interface Figure
listener
- the listener to be addedpublic void removeFigureChangeListener(FigureChangeListener listener)
removeFigureChangeListener
in interface Figure
listener
- the listener to be removedpublic AbstractFigure clone()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.