|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.util.graph.PointLegend
public class PointLegend
A legend for points, showing a the point next to a label.
Version 1.0, 5/17/99 - original version
Constructor Summary | |
---|---|
PointLegend(PointType ptype,
java.awt.Font f,
java.awt.FontMetrics fmet,
java.lang.String l)
Initialize new legend. |
Method Summary | |
---|---|
int |
getHeight()
Get the height that the legend wants to draw in. |
int |
getWidth()
Get the width that the legend wants to draw in. |
void |
paintLegend(java.awt.Graphics g,
int x,
int y)
draw the legend, at a given top, left position. |
void |
setFont(java.awt.Font f,
java.awt.FontMetrics fmet)
set the font labels will be printed in. |
void |
setLabel(java.lang.String l)
set the label for this legend. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointLegend(PointType ptype, java.awt.Font f, java.awt.FontMetrics fmet, java.lang.String l)
Method Detail |
---|
public void setLabel(java.lang.String l)
setLabel
in interface Legend
public void setFont(java.awt.Font f, java.awt.FontMetrics fmet)
setFont
in interface Legend
public int getWidth()
Legend
getWidth
in interface Legend
public int getHeight()
Legend
getHeight
in interface Legend
public void paintLegend(java.awt.Graphics g, int x, int y)
Legend
paintLegend
in interface Legend
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |