Class NullCaptioner
java.lang.Object
uk.ac.starlink.ttools.plot2.NullCaptioner
- All Implemented Interfaces:
Captioner
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawCaption(Caption label, Graphics g) Draws a caption such that the left end of the text baseline is at the origin of the supplied graphics context.getCaptionBounds(Caption label) Returns a bounding box for the caption drawn by a corresponding call toCaptioner.drawCaption(Caption, Graphics).intgetPad()Returns a suitable padding value for separating captions from the reference position or other graphical elements.
-
Field Details
-
INSTANCE
Sole instance.
-
-
Method Details
-
drawCaption
Description copied from interface:CaptionerDraws a caption such that the left end of the text baseline is at the origin of the supplied graphics context.- Specified by:
drawCaptionin interfaceCaptioner- Parameters:
label- caption textg- graphics context
-
getCaptionBounds
Description copied from interface:CaptionerReturns a bounding box for the caption drawn by a corresponding call toCaptioner.drawCaption(Caption, Graphics).- Specified by:
getCaptionBoundsin interfaceCaptioner- Parameters:
label- caption text- Returns:
- bounding box for caption drawn at the origin
-
getPad
-