org.esa.beam.framework.draw
Class AbstractFigure

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

Deprecated. since BEAM 4.7, no replacement

@Deprecated
public abstract class AbstractFigure
extends Object
implements Figure

An abstract implementation the Figure interface.

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
protected AbstractFigure(Map<String,Object> attributes)
          Deprecated. Constructs an abstract figure.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.esa.beam.framework.draw.Figure
containsPoint, getAsArea, getBounds, getCenterPoint, getShape, isOneDimensional
 
Methods inherited from interface org.esa.beam.framework.draw.Drawable
draw
 

Constructor Detail

AbstractFigure

protected AbstractFigure(Map<String,Object> attributes)
Deprecated. 
Constructs an abstract figure.

Parameters:
attributes - the default attributes for the new figure, can be null
Method Detail

createHandles

public FigureHandle[] createHandles()
Deprecated. 
Returns the handles used to manipulate the figure. createHandles is a Factory Method for creating handle objects.

Specified by:
createHandles in interface Figure
Returns:
a Vector of FigureHandle
See Also:
FigureHandle

getFigures

public Figure[] getFigures()
Deprecated. 
Returns an Enumeration of the figures contained in this figure

Specified by:
getFigures in interface Figure

findFigureInside

public Figure findFigureInside(double x,
                               double y)
Deprecated. 
Returns the figure that contains the given point.

Specified by:
findFigureInside in interface Figure

includes

public boolean includes(Figure figure)
Deprecated. 
Checks whether the given figure is contained in this figure.

Specified by:
includes in interface Figure

decompose

public Figure[] decompose()
Deprecated. 
Decomposes a figure into its parts. A figure is considered as a part of itself.

Specified by:
decompose in interface Figure

dispose

public void dispose()
Deprecated. 
Releases a figure's resources. Release is called when a figure is removed from a drawing. Informs the listeners that the figure is removed by calling figureRemoved.

Specified by:
dispose in interface Figure

getZValue

public int getZValue()
Deprecated. 
Gets the z value (back-to-front ordering) of this figure. Z values are not guaranteed to not skip numbers.

Specified by:
getZValue in interface Figure

setZValue

public void setZValue(int zValue)
Deprecated. 
Sets the z value (back-to-front ordering) of this figure. Z values are not guaranteed to not skip numbers.

Specified by:
setZValue in interface Figure

getAttributes

public Map<String,Object> getAttributes()
Deprecated. 
Returns the attributes of this figure as a Map.

Specified by:
getAttributes in interface Figure

getAttribute

public Object getAttribute(String name)
Deprecated. 
Returns the named attribute or null if a a figure doesn't have an attribute. All figures support the attribute names FillColor and FrameColor

Specified by:
getAttribute in interface Figure

setAttribute

public void setAttribute(String name,
                         Object value)
Deprecated. 
Sets the named attribute to the new value

Specified by:
setAttribute in interface Figure

setAttributes

public void setAttributes(Map<String,Object> attributes)
Deprecated. 
Sets multiple attributes

Specified by:
setAttributes in interface Figure

addFigureChangeListener

public void addFigureChangeListener(FigureChangeListener listener)
Deprecated. 
Adds a listener for this figure.

Specified by:
addFigureChangeListener in interface Figure
Parameters:
listener - the listener to be added

removeFigureChangeListener

public void removeFigureChangeListener(FigureChangeListener listener)
Deprecated. 
Removes a listener for this figure.

Specified by:
removeFigureChangeListener in interface Figure
Parameters:
listener - the listener to be removed

clone

public AbstractFigure clone()
Deprecated. 
Returns a clone of this figure

Specified by:
clone in interface Figure
Overrides:
clone in class Object

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Deprecated. 

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Deprecated. 


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