|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.Graphing.LegendItem
public class LegendItem
LegendItem draws a single piece of a graph's legend by drawing a dot with a label.
Constructor Summary | |
---|---|
LegendItem(Fairness.Graphing.PlotSeriesInfo info,
java.lang.String name)
Constructs a new LegendItem to display a legend fragment for a series to be drawn with the given PlotSeriesInfo and the name of the series. |
Method Summary | |
---|---|
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 LegendItem(Fairness.Graphing.PlotSeriesInfo info, java.lang.String name)
info
- non-null PlotSeriesInfoname
- non-null nameMethod Detail |
---|
public 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 |