org.ascape.view.vis.erv
Class EntityRelationView.RelationDrawFeature
java.lang.Object
org.ascape.util.vis.DrawFeature
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 featurename
- parameter
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 intoobject
- the object to interpret for drawingwidth
- the width of the space that should be drawn intoheight
- 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
valueorig
- an Object
valuedest
- an Object
valuewidth
- an int
valueheight
- an int
valueoffset
- parametermaxLineWidth
- parameter
Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.