org.ascape.util.vis
Interface RelationFeature

All Known Implementing Classes:
DefaultRelationFeature

public interface RelationFeature

An interface for classes which define the Relation rendering of an entity relation graphical view.

Since:
1.0
Version:
2.9
Author:
Roger Critchlow

Method Summary
 java.awt.Color getGlyphColor(java.lang.Object source, java.lang.Object destination)
          Gets the glyphColor for the RelationFeature object.
 double getGlyphPosition(java.lang.Object source, java.lang.Object destination)
          Gets the glyphPosition for the RelationFeature object.
 java.awt.Color getLineColor(java.lang.Object source, java.lang.Object destination)
          Gets the lineColor for the RelationFeature object.
 double getLineWidth(java.lang.Object source, java.lang.Object destination)
          Gets the lineWidth for the RelationFeature object.
 java.lang.String getName()
          Get the name of this relation.
 boolean includesRelation(java.lang.Object source, java.lang.Object destination)
          Answers whether this relation includes a link from the source to the destination.
 

Method Detail

includesRelation

boolean includesRelation(java.lang.Object source,
                         java.lang.Object destination)
Answers whether this relation includes a link from the source to the destination.

Parameters:
source - the object on the domain side of the relation.
destination - the object on the range side of the relation.
Returns:
a boolean indicating if the relation is included

getName

java.lang.String getName()
Get the name of this relation.

Returns:
the name

getLineWidth

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

Parameters:
source - parameter
destination - parameter
Returns:
the lineWidth

getLineColor

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

Parameters:
source - parameter
destination - parameter
Returns:
the lineColor

getGlyphPosition

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

Parameters:
source - parameter
destination - parameter
Returns:
the glyphPosition

getGlyphColor

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

Parameters:
source - parameter
destination - parameter
Returns:
the glyphColor


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