org.ascape.view.vis.erv
Class DefaultEntityFeature

java.lang.Object
  extended by org.ascape.view.vis.erv.DefaultEntityFeature
All Implemented Interfaces:
java.io.Serializable, HasName, ColorFeature, EntityFeature

public class DefaultEntityFeature
extends java.lang.Object
implements EntityFeature, java.io.Serializable

A default implementation of the EntityFeature interface.

Since:
2.9
Version:
2.9
Author:
Roger Critchlow
See Also:
Serialized Form

Constructor Summary
DefaultEntityFeature(Scape scape, java.lang.String name)
          Constructs an instance of DefaultEntityFeature.
 
Method Summary
 java.awt.Color getBorderColor(java.lang.Object entity)
          Gets the borderColor for the DefaultEntityFeature object.
 java.awt.Color getColor(java.lang.Object entity)
          Gets the color for the DefaultEntityFeature object.
 ERVDerivedFontMap getDerivedFontMap()
          Gets the derivedFontMap for the DefaultEntityFeature object.
 double getHeight(java.lang.Object entity)
          Gets the height for the DefaultEntityFeature object.
 double getMaxNormedHeight(java.lang.Object entity)
          Gets the maxNormedHeight for the DefaultEntityFeature object.
 double getMinNormedHeight(java.lang.Object entity)
          Gets the minNormedHeight for the DefaultEntityFeature object.
 java.lang.String getName()
          Describe getName method here.
 java.awt.geom.Point2D.Double getPosition(java.lang.Object entity)
          Gets the position for the DefaultEntityFeature object.
 java.awt.geom.RectangularShape getShape(java.lang.Object entity)
          getShape returns a new instance of the entity's shape class.
 java.lang.Class getShapeClass(java.lang.Object entity)
          Gets the shapeClass for the DefaultEntityFeature object.
 java.lang.String getText(java.lang.Object entity)
          Gets the text for the DefaultEntityFeature object.
 boolean includesEntity(java.lang.Object entity)
          Method.
 java.util.Iterator iterator()
          Method.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultEntityFeature

public DefaultEntityFeature(Scape scape,
                            java.lang.String name)
Constructs an instance of DefaultEntityFeature.

Parameters:
scape - parameter
name - parameter
Method Detail

includesEntity

public boolean includesEntity(java.lang.Object entity)
Method.

Specified by:
includesEntity in interface EntityFeature
Parameters:
entity - parameter
Returns:
true, if includes entity

iterator

public java.util.Iterator iterator()
Method.

Specified by:
iterator in interface EntityFeature
Returns:
the iterator

getName

public java.lang.String getName()
Describe getName method here.

Specified by:
getName in interface HasName
Specified by:
getName in interface EntityFeature
Returns:
a String value

getDerivedFontMap

public ERVDerivedFontMap getDerivedFontMap()
Gets the derivedFontMap for the DefaultEntityFeature object.

Specified by:
getDerivedFontMap in interface EntityFeature
Returns:
the derivedFontMap

getShapeClass

public java.lang.Class getShapeClass(java.lang.Object entity)
Gets the shapeClass for the DefaultEntityFeature object.

Specified by:
getShapeClass in interface EntityFeature
Parameters:
entity - parameter
Returns:
the shapeClass

getShape

public java.awt.geom.RectangularShape getShape(java.lang.Object entity)
getShape returns a new instance of the entity's shape class.

Specified by:
getShape in interface EntityFeature
Parameters:
entity - an Object value
Returns:
a RectangularShape value

getPosition

public java.awt.geom.Point2D.Double getPosition(java.lang.Object entity)
Gets the position for the DefaultEntityFeature object.

Specified by:
getPosition in interface EntityFeature
Parameters:
entity - parameter
Returns:
the position

getMinNormedHeight

public double getMinNormedHeight(java.lang.Object entity)
Gets the minNormedHeight for the DefaultEntityFeature object.

Specified by:
getMinNormedHeight in interface EntityFeature
Parameters:
entity - parameter
Returns:
the minNormedHeight

getMaxNormedHeight

public double getMaxNormedHeight(java.lang.Object entity)
Gets the maxNormedHeight for the DefaultEntityFeature object.

Specified by:
getMaxNormedHeight in interface EntityFeature
Parameters:
entity - parameter
Returns:
the maxNormedHeight

getHeight

public double getHeight(java.lang.Object entity)
Gets the height for the DefaultEntityFeature object.

Specified by:
getHeight in interface EntityFeature
Parameters:
entity - parameter
Returns:
the height

getColor

public java.awt.Color getColor(java.lang.Object entity)
Gets the color for the DefaultEntityFeature object.

Specified by:
getColor in interface ColorFeature
Specified by:
getColor in interface EntityFeature
Parameters:
entity - parameter
Returns:
the color

getBorderColor

public java.awt.Color getBorderColor(java.lang.Object entity)
Gets the borderColor for the DefaultEntityFeature object.

Specified by:
getBorderColor in interface EntityFeature
Parameters:
entity - parameter
Returns:
the borderColor

getText

public java.lang.String getText(java.lang.Object entity)
Gets the text for the DefaultEntityFeature object.

Specified by:
getText in interface EntityFeature
Parameters:
entity - parameter
Returns:
the text

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.