public static class TimeSurfaceFactory.Profile extends Object
createProfile
method.Constructor and Description |
---|
Profile(boolean ylog,
boolean yflip,
String tlabel,
String ylabel,
java.util.function.DoubleUnaryOperator t2func,
java.util.function.DoubleUnaryOperator y2func,
String t2label,
String y2label,
Captioner captioner,
Color gridcolor,
double tcrowd,
double ycrowd,
TimeFormat tformat,
boolean minor,
boolean shadow,
SideFlags annotateflags)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TimeSurfaceFactory.Profile |
fixAnnotation(SideFlags annotateflags)
Returns a new profile instance the same as this one,
except that the flags for which sides to annotate are replaced.
|
boolean |
getYLog()
Indicates whether Y axis is logarithmic.
|
public Profile(boolean ylog, boolean yflip, String tlabel, String ylabel, java.util.function.DoubleUnaryOperator t2func, java.util.function.DoubleUnaryOperator y2func, String t2label, String y2label, Captioner captioner, Color gridcolor, double tcrowd, double ycrowd, TimeFormat tformat, boolean minor, boolean shadow, SideFlags annotateflags)
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 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 normaltformat
- time labelling formatminor
- whether to draw minor ticksshadow
- whether to paint shadow ticks on opposite axes
if no secondary axisannotateflags
- which sides to annotatepublic boolean getYLog()
public TimeSurfaceFactory.Profile fixAnnotation(SideFlags annotateflags)
annotateflags
- which sides to annotateCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.