org.ascape.util.vis
Class DefaultRelationFeature

java.lang.Object
  extended by org.ascape.util.vis.DefaultRelationFeature
All Implemented Interfaces:
java.io.Serializable, RelationFeature

public class DefaultRelationFeature
extends java.lang.Object
implements RelationFeature, 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
DefaultRelationFeature()
          Constructs an instance of DefaultRelationFeature.
DefaultRelationFeature(java.lang.String name)
          Constructs an instance of DefaultRelationFeature.
 
Method Summary
 java.awt.Color getGlyphColor(java.lang.Object source, java.lang.Object destination)
          Gets the glyphColor for the DefaultRelationFeature object.
 double getGlyphPosition(java.lang.Object source, java.lang.Object destination)
          Gets the glyphPosition for the DefaultRelationFeature object.
 java.awt.Color getLineColor(java.lang.Object source, java.lang.Object destination)
          Gets the lineColor for the DefaultRelationFeature object.
 double getLineWidth(java.lang.Object source, java.lang.Object destination)
          Gets the lineWidth for the DefaultRelationFeature object.
 java.lang.String getName()
          Get the name of this relation.
 boolean includesRelation(java.lang.Object source, java.lang.Object destination)
          Method.
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultRelationFeature

public DefaultRelationFeature()
Constructs an instance of DefaultRelationFeature.


DefaultRelationFeature

public DefaultRelationFeature(java.lang.String name)
Constructs an instance of DefaultRelationFeature.

Method Detail

includesRelation

public boolean includesRelation(java.lang.Object source,
                                java.lang.Object destination)
Method.

Specified by:
includesRelation in interface RelationFeature
Parameters:
source - parameter
destination - parameter
Returns:

getLineWidth

public double getLineWidth(java.lang.Object source,
                           java.lang.Object destination)
Gets the lineWidth for the DefaultRelationFeature object.

Specified by:
getLineWidth in interface RelationFeature
Parameters:
source - parameter
destination - parameter
Returns:
the lineWidth

getLineColor

public java.awt.Color getLineColor(java.lang.Object source,
                                   java.lang.Object destination)
Gets the lineColor for the DefaultRelationFeature object.

Specified by:
getLineColor in interface RelationFeature
Parameters:
source - parameter
destination - parameter
Returns:
the lineColor

getGlyphPosition

public double getGlyphPosition(java.lang.Object source,
                               java.lang.Object destination)
Gets the glyphPosition for the DefaultRelationFeature object.

Specified by:
getGlyphPosition in interface RelationFeature
Parameters:
source - parameter
destination - parameter
Returns:
the glyphPosition

getGlyphColor

public java.awt.Color getGlyphColor(java.lang.Object source,
                                    java.lang.Object destination)
Gets the glyphColor for the DefaultRelationFeature object.

Specified by:
getGlyphColor in interface RelationFeature
Parameters:
source - parameter
destination - parameter
Returns:
the glyphColor

getName

public java.lang.String getName()
Description copied from interface: RelationFeature
Get the name of this relation.

Specified by:
getName in interface RelationFeature
Returns:
the name

setName

public void setName(java.lang.String name)

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.