Constructor and Description |
---|
OutlineCaptioner(Captioner base,
java.awt.Color color)
Constructor.
|
Modifier and Type | Method and 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 OutlineCaptioner(Captioner base, java.awt.Color color)
base
- base captionercolor
- outline colourpublic java.awt.Rectangle getCaptionBounds(java.lang.String label)
Captioner
Captioner.drawCaption(java.lang.String, java.awt.Graphics)
.getCaptionBounds
in interface Captioner
label
- caption textpublic void drawCaption(java.lang.String label, java.awt.Graphics g)
Captioner
drawCaption
in interface Captioner
label
- caption textg
- graphics contextpublic int getPad()
Captioner
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.