Package uk.ac.starlink.ttools.plot2
Class OutlineCaptioner
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.OutlineCaptioner
-
-
Constructor Summary
Constructors Constructor Description OutlineCaptioner(Captioner base, java.awt.Color color)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawCaption(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.booleanequals(java.lang.Object o)java.awt.RectanglegetCaptionBounds(java.lang.String label)Returns a bounding box for the caption drawn by a corresponding call toCaptioner.drawCaption(java.lang.String, java.awt.Graphics).intgetPad()Returns a suitable padding value for separating captions from the reference position or other graphical elements.inthashCode()
-
-
-
Constructor Detail
-
OutlineCaptioner
public OutlineCaptioner(Captioner base, java.awt.Color color)
Constructor.- Parameters:
base- base captionercolor- outline colour
-
-
Method Detail
-
getCaptionBounds
public java.awt.Rectangle getCaptionBounds(java.lang.String label)
Description copied from interface:CaptionerReturns a bounding box for the caption drawn by a corresponding call toCaptioner.drawCaption(java.lang.String, java.awt.Graphics).- Specified by:
getCaptionBoundsin interfaceCaptioner- Parameters:
label- caption text- Returns:
- bounding box for caption drawn at the origin
-
drawCaption
public void drawCaption(java.lang.String label, java.awt.Graphics g)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
-
getPad
public int getPad()
Description copied from interface:CaptionerReturns a suitable padding value for separating captions from the reference position or other graphical elements.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-