Class TimeSurfaceFactory.Profile
java.lang.Object
uk.ac.starlink.ttools.plot2.geom.TimeSurfaceFactory.Profile
- Enclosing class:
TimeSurfaceFactory
Profile class which defines fixed configuration items for a TimeSurface.
Instances of this class are usually obtained from the
createProfile method.- Since:
- 15 Aug 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionProfile(Scale yscale, boolean yflip, String tlabel, String ylabel, DoubleUnaryOperator t2func, DoubleUnaryOperator y2func, String t2label, String y2label, Captioner captioner, Color gridcolor, double tcrowd, double ycrowd, OrientationPolicy orientpolicy, TimeFormat tformat, boolean minor, boolean shadow, SideFlags annotateflags) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfixAnnotation(SideFlags annotateflags) Returns a new profile instance the same as this one, except that the flags for which sides to annotate are replaced.Scaling on Y axis.
-
Constructor Details
-
Profile
public Profile(Scale yscale, boolean yflip, String tlabel, String ylabel, DoubleUnaryOperator t2func, DoubleUnaryOperator y2func, String t2label, String y2label, Captioner captioner, Color gridcolor, double tcrowd, double ycrowd, OrientationPolicy orientpolicy, TimeFormat tformat, boolean minor, boolean shadow, SideFlags annotateflags) Constructor.- Parameters:
yscale- scaling on Y axisyflip- whether to invert direction of Y axistlabel- text for labelling time axisylabel- text for labelling Y axist2func- function mapping unix time values to secondary time data coords, or null for no secondary time axisy2func- function mapping primary to secondary Y data coords, or null for no secondary Y axist2label- text for labelling secondary time axisy2label- text for labelling secondary Y axiscaptioner- text renderer for axis labels etcgridcolor- colour of grid lines, or null for nonetcrowd- crowding factor for tick marks on time axis; 1 is normalycrowd- crowding factor for tick marks on Y axis; 1 is normalorientpolicy- tick label orientation policytformat- time labelling formatminor- whether to draw minor ticksshadow- whether to paint shadow ticks on opposite axes if no secondary axisannotateflags- which sides to annotate
-
-
Method Details
-
getYScale
-
fixAnnotation
Returns a new profile instance the same as this one, except that the flags for which sides to annotate are replaced.- Parameters:
annotateflags- which sides to annotate
-