Class CubeSurfaceFactory.Profile
java.lang.Object
uk.ac.starlink.ttools.plot2.geom.CubeSurfaceFactory.Profile
- Enclosing class:
CubeSurfaceFactory
Profile class which defines fixed configuration items for
an isotropic or non-isotropic CubeSurface.
Instances of this class are normally obtained from the
createProfile method.- Since:
- 20 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionProfile(Scale xscale, Scale yscale, Scale zscale, boolean xflip, boolean yflip, boolean zflip, String xlabel, String ylabel, String zlabel, boolean forceiso, Captioner captioner, boolean frame, double xcrowd, double ycrowd, double zcrowd, OrientationPolicy orientpolicy, boolean minor, boolean antialias) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionScale[]Returns a 3-element array giving X, Y and Z log flags.booleanIndicates whether isometric axis scaling is in force.
-
Constructor Details
-
Profile
public Profile(Scale xscale, Scale yscale, Scale zscale, boolean xflip, boolean yflip, boolean zflip, String xlabel, String ylabel, String zlabel, boolean forceiso, Captioner captioner, boolean frame, double xcrowd, double ycrowd, double zcrowd, OrientationPolicy orientpolicy, boolean minor, boolean antialias) Constructor.- Parameters:
xscale- scaling on X axisyscale- scaling on Y axiszscale- scaling on X axisxflip- whether to invert direction of X axisyflip- whether to invert direction of Y axiszflip- whether to invert direction of Z axisxlabel- text for labelling X axisylabel- text for labelling Y axiszlabel- text for labelling Z axisforceiso- if true, scaling is forced the same on all axes; only useful in non-isotropic modecaptioner- text renderer for axis labels etcframe- whether to draw axis wire framexcrowd- crowding factor for tick marks on X axis; 1 is normalycrowd- crowding factor for tick marks on Y axis; 1 is normalzcrowd- crowding factor for tick marks on Z axis; 1 is normalorientpolicy- axis label orientation policyminor- whether to paint minor tick marks on axesantialias- whether to antialias grid lines and text
-
-
Method Details
-
getScales
Returns a 3-element array giving X, Y and Z log flags.- Returns:
- (xscale, yscale, zscale) array
-
isForceIso
public boolean isForceIso()Indicates whether isometric axis scaling is in force.- Returns:
- true if scaling is forced the same on all axes; only useful in non-isotropic mode
-