|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.BasicCaptioner
public class BasicCaptioner
Captioner implementation that uses Swing text drawing classes.
Constructor Summary | |
---|---|
BasicCaptioner()
Constructs a captioner that will use a default font. |
|
BasicCaptioner(Font font,
Boolean antialias)
Constructs a captioner that uses a given font. |
Method Summary | |
---|---|
void |
drawCaption(String label,
Graphics g)
Draws a caption such that the left end of the text baseline is at the origin of the supplied graphics context. |
boolean |
equals(Object o)
|
Rectangle |
getCaptionBounds(String label)
Returns a bounding box for the caption drawn by a corresponding call to Captioner.drawCaption(java.lang.String, java.awt.Graphics) . |
int |
getPad()
Returns a suitable padding value for separating captions from the reference position or other graphical elements. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicCaptioner()
public BasicCaptioner(Font font, Boolean antialias)
font
- fontMethod Detail |
---|
public void drawCaption(String label, Graphics g)
Captioner
drawCaption
in interface Captioner
label
- caption textg
- graphics contextpublic Rectangle getCaptionBounds(String label)
Captioner
Captioner.drawCaption(java.lang.String, java.awt.Graphics)
.
getCaptionBounds
in interface Captioner
label
- caption text
public int getPad()
Captioner
getPad
in interface Captioner
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |