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 final SkyAxisLabellerLabeller implementation that draws labels outside the plot bounds.static final SkyAxisLabellerLabeller implementation like EXTERNAL but with sky system labels.static final SkyAxisLabellerLabeller implementation that draws labels outside the plot bounds unless they don't appear, in which case it draws them inside.static final SkyAxisLabellerLabeller implementation that draws labels inside the plot bounds.static final SkyAxisLabellerLabeller implementation like INTERNAL but with sky system labels.static final SkyAxisLabellerBasic labeller implementation.static final SkyAxisLabellerLabeller implementation that does no drawing. -
Method Summary
Modifier and TypeMethodDescriptionstatic SkyAxisLabellergetAutoLabeller(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 CaptionlabelCaption(String label) Turns a sky grid line label into a Caption.
-
Field Details
-
NONE
Labeller implementation 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. -
EXTSYS
Labeller implementation like EXTERNAL but with sky system labels. -
INTSYS
Labeller implementation like INTERNAL but with sky system labels. -
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
-
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
-