Package uk.ac.starlink.ttools.plot2.geom
Interface PlanarSurface
- All Superinterfaces:
Surface
- All Known Implementing Classes:
PlaneSurface
,TimeSurface
Sub-interface of Surface for surface types that are
basically two-dimensional and Cartesian.
- Since:
- 5 Dec 2016
- Author:
- Mark Taylor
-
Method Summary
Modifier and TypeMethodDescriptionAxis[]
getAxes()
Returns the axis objects used by this surface.double[][]
Returns the limits in data coordinates of the plot region.boolean[]
Indicates which axes are reversed.boolean[]
Indicates the scaling along the two axes.boolean[]
Indicates which axes represent time values.Methods inherited from interface uk.ac.starlink.ttools.plot2.Surface
dataToGraphics, dataToGraphicsOffset, formatPosition, getCaptioner, getDataDimCount, getPlotBounds, getPlotInsets, graphicsToData, isContinuousLine, paintBackground, paintForeground
-
Method Details
-
getLogFlags
boolean[] getLogFlags()Indicates the scaling along the two axes.- Returns:
- 2-element array giving horizontal, vertical scaling flags: false for linear, true for logarithmic
-
getFlipFlags
boolean[] getFlipFlags()Indicates which axes are reversed.- Returns:
- 2-element array giving horizontal, vertical flip flags; true to invert normal plot direction
-
getTimeFlags
boolean[] getTimeFlags()Indicates which axes represent time values.- Returns:
- 2-element array giving horizontal, vertical time flags; true for time axis with data units of seconds, false for normal numeric axis
-
getAxes
Axis[] getAxes()Returns the axis objects used by this surface.- Returns:
- 2-element array giving horizontal, vertical axis instances
-
getDataLimits
double[][] getDataLimits()Returns the limits in data coordinates of the plot region.- Returns:
- 2x2 array
{{xlo, xhi}, {ylo, yhi}}
-