|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface Figure
The interface of a graphical figure. A figure knows its center point, its bounding box and can draw itself. A figure can be composed of several sub-figures. Figures also can have an open ended set of attributes. An attribute is identified by a string and has an arbitrary type.
To interact and manipulate with a figure it can provide handles (see FigureHandle).
A handle can manipulate a figure's shape or its attributes.
A default implementation for the Figure interface are provided by the AbstractFigure class.
FigureHandle,
AbstractFigure| Field Summary | |
|---|---|
static String |
FILL_COMPOSITE_KEY
Deprecated. The attribute key used to determine which composite to use for the shape's interior. |
static String |
FILL_PAINT_KEY
Deprecated. The attribute key used to determine which fill pattern to use for the shape's interior. |
static String |
FILL_STROKE_KEY
Deprecated. The attribute key used to determine which stroke to use for the shape's interior. |
static String |
FILLED_KEY
Deprecated. The attribute key used to determine whether or not this figure has a filled interior. |
static String |
OUTL_COLOR_KEY
Deprecated. The attribute key used to determine which fill pattern to use for the out-line. |
static String |
OUTL_COMPOSITE_KEY
Deprecated. The attribute key used to determine which composite to use for the out-line. |
static String |
OUTL_STROKE_KEY
Deprecated. The attribute key used to determine which stroke to use for the out-line. |
static String |
OUTLINED_KEY
Deprecated. The attribute key used to determine whether or not this figure has an out-line. |
static String |
TOOL_INPUT_EVENT_KEY
Deprecated. since BEAM 4.6, no replacement |
| Method Summary | |
|---|---|
void |
addFigureChangeListener(FigureChangeListener listener)
Deprecated. Adds a listener for this figure. |
Figure |
clone()
Deprecated. Returns a Clone of this figure |
boolean |
containsPoint(double x,
double y)
Deprecated. Checks if a point is inside the 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. |
Area |
getAsArea()
Deprecated. Gets the figure as an area. |
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. |
Rectangle2D |
getBounds()
Deprecated. Gets the bounding box of the figure |
Point2D |
getCenterPoint()
Deprecated. Gets the figure's center. |
Figure[] |
getFigures()
Deprecated. Returns an Enumeration of the figures contained in this figure |
Shape |
getShape()
Deprecated. Gets a shape representation of 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. |
boolean |
isOneDimensional()
Deprecated. Determines whether figure is a (one-dimensional) line in a two-dimensional space. |
void |
removeFigureChangeListener(FigureChangeListener listener)
Deprecated. Removes a listener for this figure. |
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. |
| Methods inherited from interface org.esa.beam.framework.draw.Drawable |
|---|
draw |
| Field Detail |
|---|
@Deprecated static final String TOOL_INPUT_EVENT_KEY
static final String FILLED_KEY
java.lang.Boolean.
static final String FILL_PAINT_KEY
java.awt.Paint.
static final String FILL_STROKE_KEY
java.awt.Stroke.
static final String FILL_COMPOSITE_KEY
java.awt.Composite.
static final String OUTLINED_KEY
java.lang.Boolean.
static final String OUTL_COLOR_KEY
java.awt.Paint.
static final String OUTL_STROKE_KEY
java.awt.Stroke.
static final String OUTL_COMPOSITE_KEY
java.awt.Composite.
| Method Detail |
|---|
Point2D getCenterPoint()
Rectangle2D getBounds()
Shape getShape()
If the figure does not have a shape represenation, the method returns null.
null if no such exists.FigureHandle[] createHandles()
createHandles is a Factory Method for creating
handle objects.
FigureHandleFigure[] getFigures()
Figure findFigureInside(double x,
double y)
boolean containsPoint(double x,
double y)
boolean includes(Figure figure)
Figure[] decompose()
boolean isOneDimensional()
Area getAsArea()
void dispose()
int getZValue()
void setZValue(int zValue)
Map<String,Object> getAttributes()
Map.
Object getAttribute(String name)
void setAttribute(String name,
Object value)
void setAttributes(Map<String,Object> attributes)
void addFigureChangeListener(FigureChangeListener listener)
listener - the listener to be addedvoid removeFigureChangeListener(FigureChangeListener listener)
listener - the listener to be removedFigure clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||