@Deprecated public class ShapeFigure extends AbstractFigure
java.awt.Shape
for its representation.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 and Description |
---|
ShapeFigure(Shape shape,
boolean oneDimensional,
Map<String,Object> attributes)
Deprecated.
Constructs a shape figure for the given shape.
|
Modifier and Type | Method and Description |
---|---|
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. |
addFigureChangeListener, addPropertyChangeListener, clone, createHandles, decompose, dispose, findFigureInside, getAttribute, getAttributes, getFigures, getZValue, includes, removeFigureChangeListener, removePropertyChangeListener, setAttribute, setAttributes, setZValue
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 contextpublic 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)
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.