org.esa.beam.framework.draw
Class ShapeFigure

java.lang.Object
  extended by org.esa.beam.framework.draw.AbstractFigure
      extended by org.esa.beam.framework.draw.ShapeFigure
All Implemented Interfaces:
Serializable, Cloneable, Drawable, Figure
Direct Known Subclasses:
AreaFigure, LineFigure

Deprecated. since BEAM 4.7, no replacement

@Deprecated
public class ShapeFigure
extends AbstractFigure

A figure which uses a java.awt.Shape for its representation.

Version:
$Revision$ $Date$
Author:
Norman Fomferra
See Also:
Serialized Form

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

ShapeFigure

public ShapeFigure(Shape shape,
                   boolean oneDimensional,
                   Map<String,Object> attributes)
Deprecated. 
Constructs a shape figure for the given shape.

Method Detail

getShape

public Shape getShape()
Deprecated. 
Gets a shape representation of this figure.

Returns:
a shape representation of this figure which is never null.

getAsArea

public Area getAsArea()
Deprecated. 
Gets the figure as an area. One-dimensional figures are returned as line strokes with a width of 1 unit.


getCenterPoint

public Point2D getCenterPoint()
Deprecated. 
Gets the figure's center.


getBounds

public Rectangle2D getBounds()
Deprecated. 
Gets the bounding box of the figure


containsPoint

public boolean containsPoint(double x,
                             double y)
Deprecated. 
Checks if a point is inside the figure.


isOneDimensional

public boolean isOneDimensional()
Deprecated. 
Determines whether a figure is a (one-dimensional) line in a two-dimensional space.


draw

public void draw(Graphics2D g2d)
Deprecated. 
Draws this Drawable on the given Graphics2D drawing surface.

Parameters:
g2d - the graphics context

fillShape

public void fillShape(Graphics2D g2d)
Deprecated. 
Fills the Drawable on the given Graphics2D drawing surface.

Parameters:
g2d - the graphics context

outlineShape

public void outlineShape(Graphics2D g2d)
Deprecated. 
Draws the outline of this Drawable on the given Graphics2D drawing surface.

Parameters:
g2d - the graphics context

createLine

public static LineFigure createLine(float x1,
                                    float y1,
                                    float x2,
                                    float y2,
                                    Map<String,Object> attributes)
Deprecated. 

createPolyline

public static LineFigure createPolyline(GeneralPath path,
                                        Map<String,Object> attributes)
Deprecated. 

createRectangleArea

public static AreaFigure createRectangleArea(float x,
                                             float y,
                                             float w,
                                             float h,
                                             Map<String,Object> attributes)
Deprecated. 

createEllipseArea

public static AreaFigure createEllipseArea(float x,
                                           float y,
                                           float w,
                                           float h,
                                           Map<String,Object> attributes)
Deprecated. 

createPolygonArea

public static AreaFigure createPolygonArea(GeneralPath path,
                                           Map<String,Object> attributes)
Deprecated. 

createArbitraryArea

public static AreaFigure createArbitraryArea(Area area,
                                             Map<String,Object> attributes)
Deprecated. 


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.