|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.draw.AbstractFigure
org.esa.beam.framework.draw.ShapeFigure
@Deprecated public class ShapeFigure
A figure which uses a java.awt.Shape for its representation.
| Field Summary |
|---|
| Fields inherited from interface org.esa.beam.framework.draw.Figure |
|---|
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 |
| Constructor Summary | |
|---|---|
ShapeFigure(Shape shape,
boolean oneDimensional,
Map<String,Object> attributes)
Deprecated. Constructs a shape figure for the given shape. |
|
| Method Summary | |
|---|---|
boolean |
containsPoint(double x,
double y)
Deprecated. Checks if a point is inside the figure. |
static AreaFigure |
createArbitraryArea(Area area,
Map<String,Object> attributes)
Deprecated. |
static AreaFigure |
createEllipseArea(float x,
float y,
float w,
float h,
Map<String,Object> attributes)
Deprecated. |
static LineFigure |
createLine(float x1,
float y1,
float x2,
float y2,
Map<String,Object> attributes)
Deprecated. |
static AreaFigure |
createPolygonArea(GeneralPath path,
Map<String,Object> attributes)
Deprecated. |
static LineFigure |
createPolyline(GeneralPath path,
Map<String,Object> attributes)
Deprecated. |
static AreaFigure |
createRectangleArea(float x,
float y,
float w,
float h,
Map<String,Object> attributes)
Deprecated. |
void |
draw(Graphics2D g2d)
Deprecated. Draws this Drawable on the given Graphics2D drawing surface. |
void |
fillShape(Graphics2D g2d)
Deprecated. Fills the Drawable on the given Graphics2D drawing surface. |
Area |
getAsArea()
Deprecated. Gets the figure as an area. |
Rectangle2D |
getBounds()
Deprecated. Gets the bounding box of the figure |
Point2D |
getCenterPoint()
Deprecated. Gets the figure's center. |
Shape |
getShape()
Deprecated. Gets a shape representation of this figure. |
boolean |
isOneDimensional()
Deprecated. Determines whether a figure is a (one-dimensional) line in a two-dimensional space. |
void |
outlineShape(Graphics2D g2d)
Deprecated. Draws the outline of this Drawable on the given Graphics2D drawing surface. |
| Methods inherited from class org.esa.beam.framework.draw.AbstractFigure |
|---|
addFigureChangeListener, addPropertyChangeListener, clone, createHandles, decompose, dispose, findFigureInside, getAttribute, getAttributes, getFigures, getZValue, includes, removeFigureChangeListener, removePropertyChangeListener, setAttribute, setAttributes, setZValue |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeFigure(Shape shape,
boolean oneDimensional,
Map<String,Object> attributes)
| Method Detail |
|---|
public Shape getShape()
null.public Area getAsArea()
public Point2D getCenterPoint()
public Rectangle2D getBounds()
public boolean containsPoint(double x,
double y)
public boolean isOneDimensional()
public void draw(Graphics2D g2d)
Drawable on the given Graphics2D drawing surface.
g2d - the graphics contextpublic void fillShape(Graphics2D g2d)
Drawable on the given Graphics2D drawing surface.
g2d - the graphics contextpublic void outlineShape(Graphics2D g2d)
Drawable on the given Graphics2D drawing surface.
g2d - the graphics context
public static LineFigure createLine(float x1,
float y1,
float x2,
float y2,
Map<String,Object> attributes)
public static LineFigure createPolyline(GeneralPath path,
Map<String,Object> attributes)
public static AreaFigure createRectangleArea(float x,
float y,
float w,
float h,
Map<String,Object> attributes)
public static AreaFigure createEllipseArea(float x,
float y,
float w,
float h,
Map<String,Object> attributes)
public static AreaFigure createPolygonArea(GeneralPath path,
Map<String,Object> attributes)
public static AreaFigure createArbitraryArea(Area area,
Map<String,Object> attributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||