|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.Graphing.Legend
public class Legend
Legend provides a Displayable legend that is drawn on the bottom of another Displayable (such as
a Graph
). Currently this class is used only internally in the Graph to draw its legend.
Constructor Summary | |
---|---|
Legend(edu.rit.swing.Displayable host)
Creates a new Legend that draws over the given host. |
Method Summary | |
---|---|
void |
addLegendItem(edu.rit.swing.Displayable d)
Adds an item to be displayed in the Legend -- normally a LegendItem . |
void |
draw(java.awt.Graphics2D g2d)
Draw this drawable object in the given graphics context. |
java.awt.Paint |
getBackgroundPaint()
Returns this displayable object's background paint. |
java.awt.geom.Rectangle2D |
getBoundingBox()
Returns this displayable object's bounding box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Legend(edu.rit.swing.Displayable host)
Method Detail |
---|
public void addLegendItem(edu.rit.swing.Displayable d)
LegendItem
.
d
- non-null Displayablepublic java.awt.geom.Rectangle2D getBoundingBox()
getBoundingBox
in interface edu.rit.swing.Displayable
public java.awt.Paint getBackgroundPaint()
getBackgroundPaint
in interface edu.rit.swing.Displayable
public void draw(java.awt.Graphics2D g2d)
draw
in interface edu.rit.swing.Drawable
g2d
- 2-D graphics context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |