Anchor.HorizontalAnchor| Constructor | Description |
|---|---|
HorizontalAnchor() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
drawCaption(java.lang.String label,
int px,
int py,
Captioner captioner,
java.awt.Graphics g) |
Draws a text label onto a given graphics context.
|
java.awt.Rectangle |
getCaptionBounds(java.lang.String label,
int px,
int py,
Captioner captioner) |
Returns a rectangle within which all of the given label will fall.
|
protected abstract int[] |
getOffset(java.awt.Rectangle bounds,
int pad) |
Returns the positional offset from the reference point to
position the graphics context at before calling drawCaption.
|
createAngledAnchorpublic java.awt.Rectangle getCaptionBounds(java.lang.String label,
int px,
int py,
Captioner captioner)
AnchorgetCaptionBounds in class Anchorlabel - textpx - reference point X positionpy - reference point Y positioncaptioner - object that can turn text into graphicspublic void drawCaption(java.lang.String label,
int px,
int py,
Captioner captioner,
java.awt.Graphics g)
AnchordrawCaption in class Anchorlabel - textpx - reference point X positionpy - reference point Y positioncaptioner - object that can turn text into graphicsg - graphics contextprotected abstract int[] getOffset(java.awt.Rectangle bounds,
int pad)
bounds - caption boundspad - captioner-specific pad valueCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.