Package uk.ac.starlink.ttools.plot2.geom
Class TimeSurfaceFactory.Profile
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.geom.TimeSurfaceFactory.Profile
-
- Enclosing class:
- TimeSurfaceFactory
public static class TimeSurfaceFactory.Profile extends java.lang.ObjectProfile class which defines fixed configuration items for a TimeSurface. Instances of this class are usually obtained from thecreateProfilemethod.
-
-
Constructor Summary
Constructors Constructor Description Profile(boolean ylog, boolean yflip, java.lang.String tlabel, java.lang.String ylabel, Captioner captioner, boolean grid, double tcrowd, double ycrowd, TimeFormat tformat, boolean minor, boolean tannotate)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeSurfaceFactory.ProfilefixTimeAnnotation(boolean tannotate)Returns a new profile instance the same as this one, except that the flag for whether to annotate the time axis may be set.booleangetYLog()Indicates whether Y axis is logarithmic.
-
-
-
Constructor Detail
-
Profile
public Profile(boolean ylog, boolean yflip, java.lang.String tlabel, java.lang.String ylabel, Captioner captioner, boolean grid, double tcrowd, double ycrowd, TimeFormat tformat, boolean minor, boolean tannotate)Constructor.- Parameters:
ylog- whether to use logarithmic scaling on Y axisyflip- whether to invert direction of Y axistlabel- text for labelling time axisylabel- text for labelling Y axiscaptioner- text renderer for axis labels etcgrid- whether to draw grid linestcrowd- crowding factor for tick marks on time axis; 1 is normalycrowd- crowding factor for tick marks on Y axis; 1 is normaltformat- time labelling formatminor- whether to draw minor tickstannotate- whether to annotate time axis
-
-
Method Detail
-
getYLog
public boolean getYLog()
Indicates whether Y axis is logarithmic.- Returns:
- true for Y logarithmic scaling, false for linear
-
fixTimeAnnotation
public TimeSurfaceFactory.Profile fixTimeAnnotation(boolean tannotate)
Returns a new profile instance the same as this one, except that the flag for whether to annotate the time axis may be set.- Parameters:
tannotate- whether to annotate time axis
-
-