org.ascape.view.vis.erv
Class EntityRelationView.RelationDrawFeature

java.lang.Object
  extended by org.ascape.util.vis.DrawFeature
      extended by org.ascape.view.vis.erv.EntityRelationView.RelationDrawFeature
All Implemented Interfaces:
java.io.Serializable, HasName, PlatformDrawFeature
Enclosing class:
EntityRelationView

public class EntityRelationView.RelationDrawFeature
extends DrawFeature

The class RelationDrawFeature encapsulates the drawing mechanisms previously distributed over methods in ERVEdge and ERVChannel.

Author:
Miles Parker, Matthew Hendrey, and others
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ascape.util.vis.DrawFeature
name, nestedFeature
 
Constructor Summary
EntityRelationView.RelationDrawFeature(java.lang.String name, RelationFeature relationFeature)
          Constructs the feature with a name and a relation feature.
 
Method Summary
 void draw(java.awt.Graphics g, java.lang.Object object, int width, int height)
          Draws a graphic interpretation of the object into the supplied graphics port, (typically) within the supplied dimensions.
 void draw(java.awt.Graphics g, java.lang.Object orig, java.lang.Object dest, int width, int height, double offset, double maxLineWidth)
          Describe draw method here.
 
Methods inherited from class org.ascape.util.vis.DrawFeature
getName, getNestedFeature, setName, setNestedFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityRelationView.RelationDrawFeature

public EntityRelationView.RelationDrawFeature(java.lang.String name,
                                              RelationFeature relationFeature)
Constructs the feature with a name and a relation feature.

Parameters:
relationFeature - the draw feature used by this feature
name - parameter
Method Detail

draw

public void draw(java.awt.Graphics g,
                 java.lang.Object object,
                 int width,
                 int height)
Draws a graphic interpretation of the object into the supplied graphics port, (typically) within the supplied dimensions. Views which use this class are responsible for translating the graphics so that the object is drawn at the approriate location. Please let us know if you think you need a directly addressed alternative.

Specified by:
draw in class DrawFeature
Parameters:
g - the Graphics context to draw into
object - the object to interpret for drawing
width - the width of the space that should be drawn into
height - the height of the space that should be drawn into

draw

public void draw(java.awt.Graphics g,
                 java.lang.Object orig,
                 java.lang.Object dest,
                 int width,
                 int height,
                 double offset,
                 double maxLineWidth)
Describe draw method here.

Parameters:
g - a Graphics value
orig - an Object value
dest - an Object value
width - an int value
height - an int value
offset - parameter
maxLineWidth - parameter


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