public static class PlaneSurfaceFactory.Profile extends Object
createProfile
method.Constructor and Description |
---|
Profile(boolean xlog,
boolean ylog,
boolean xflip,
boolean yflip,
String xlabel,
String ylabel,
java.util.function.DoubleUnaryOperator x2func,
java.util.function.DoubleUnaryOperator y2func,
String x2label,
String y2label,
Captioner captioner,
SideFlags annotateflags,
double xyfactor,
double xcrowd,
double ycrowd,
boolean minor,
boolean shadow,
Color gridcolor,
Color axlabelcolor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PlaneSurfaceFactory.Profile |
fixAnnotation(SideFlags annotateFlags,
boolean addSecondary)
Returns a new profile instance the same as this one,
except that the flags for which sides to annotate are replaced.
|
boolean[] |
getLogFlags()
Returns a 2-element array giving X and Y log flags.
|
public Profile(boolean xlog, boolean ylog, boolean xflip, boolean yflip, String xlabel, String ylabel, java.util.function.DoubleUnaryOperator x2func, java.util.function.DoubleUnaryOperator y2func, String x2label, String y2label, Captioner captioner, SideFlags annotateflags, double xyfactor, double xcrowd, double ycrowd, boolean minor, boolean shadow, Color gridcolor, Color axlabelcolor)
xlog
- whether to use logarithmic scaling on X axisylog
- whether to use logarithmic scaling on Y axisxflip
- whether to invert direction of X axisyflip
- whether to invert direction of Y axisxlabel
- text for labelling X axisylabel
- text for labelling Y axisx2func
- function mapping primary to secondary X data coords,
or null for no secondary X axisy2func
- function mapping primary to secondary Y data coords,
or null for no secondary Y axisx2label
- text for labelling secondary X axisy2label
- text for labelling secondary Y axiscaptioner
- text renderer for axis labels etcannotateflags
- which sides to annotatexyfactor
- ratio (X axis unit length)/(Y axis unit length),
or NaN to use whatever bounds shape and
axis limits give youxcrowd
- crowding factor for tick marks on X axis;
1 is normalycrowd
- crowding factor for tick marks on Y axis;
1 is normalminor
- whether to paint minor tick marks on axesshadow
- whether to paint shadow ticks on opposite axes
if no secondary axisgridcolor
- colour of grid lines, or null for noneaxlabelcolor
- colour of axis labelspublic boolean[] getLogFlags()
public PlaneSurfaceFactory.Profile fixAnnotation(SideFlags annotateFlags, boolean addSecondary)
annotateFlags
- which sides to annotateaddSecondary
- if true, secondary axis annotations
duplicating the primary axis ones
will be addedCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.