| Constructor | Description |
|---|---|
BasicCaptioner() |
Constructs a captioner that will use a default font.
|
BasicCaptioner(java.awt.Font font,
java.lang.Boolean antialias) |
Constructs a captioner that uses a given font.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
drawCaption(java.lang.String label,
java.awt.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(java.lang.Object o) |
|
java.awt.Rectangle |
getCaptionBounds(java.lang.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() |
public BasicCaptioner()
public BasicCaptioner(java.awt.Font font,
java.lang.Boolean antialias)
font - fontpublic void drawCaption(java.lang.String label,
java.awt.Graphics g)
CaptionerdrawCaption in interface Captionerlabel - caption textg - graphics contextpublic java.awt.Rectangle getCaptionBounds(java.lang.String label)
CaptionerCaptioner.drawCaption(java.lang.String, java.awt.Graphics).getCaptionBounds in interface Captionerlabel - caption textpublic int getPad()
Captionerpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.