Package uk.ac.starlink.ttools.plot2.geom
Class SkyAxisLabellers
java.lang.Object
uk.ac.starlink.ttools.plot2.geom.SkyAxisLabellers
Implementation class containing SkyAxisLabeller implementations.
- Since:
- 21 Feb 2013
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic SkyAxisLabeller
Labeller implementation that draws labels outside the plot bounds.static SkyAxisLabeller
Labeller implementation that draws labels outside the plot bounds unless they don't appear, in which case it draws them inside.static SkyAxisLabeller
Labeller implementation that draws labels inside the plot bounds.static SkyAxisLabeller
Basic labeller implementation.static SkyAxisLabeller
Labeller implentation that does no drawing. -
Method Summary
Modifier and TypeMethodDescriptionstatic SkyAxisLabeller
getAutoLabeller
(boolean skyFillsBounds) Returns the axis mode to use if choosing one automatically based on plot characteristics.static SkyAxisLabeller[]
Returns a list of the known SkyAxisLabeller instances.static Caption
labelCaption
(String label) Turns a sky grid line label into a Caption.
-
Field Details
-
NONE
Labeller implentation that does no drawing. -
LAME
Basic labeller implementation. Grid lines are drawn OK, but not much effort is made to position axis labels sensibly. -
EXTERNAL
Labeller implementation that draws labels outside the plot bounds. -
INTERNAL
Labeller implementation that draws labels inside the plot bounds. -
HYBRID
Labeller implementation that draws labels outside the plot bounds unless they don't appear, in which case it draws them inside. Doesn't necessarily end up looking as sensible as it sounds.
-
-
Method Details
-
labelCaption
Turns a sky grid line label into a Caption. Some manipulation of the text for better LaTeX rendering is done.- Parameters:
label
- grid line label- Returns:
- caption object
-
getKnownLabellers
Returns a list of the known SkyAxisLabeller instances. The first element is null, which is interpreted as auto mode.- Returns:
- list of sky axis labellers
-
getAutoLabeller
Returns the axis mode to use if choosing one automatically based on plot characteristics.- Parameters:
skyFillsBounds
- true if the sky region of the plane fills all or most of the plotting region; false if there are significant non-sky parts- Returns:
- suitable axis labeller
-