Package uk.ac.starlink.topcat.plot2
Class LayerId
java.lang.Object
uk.ac.starlink.topcat.plot2.LayerId
Identifier object for PlotLayers.
Two plot layers which have equal LayerIds will produce the same
plotting results.
- Since:
- 10 Dec 2014
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionLayerId(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.data.DataSpec dataSpec, uk.ac.starlink.ttools.plot2.DataGeom dataGeom, uk.ac.starlink.ttools.plot.Style style) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerIdcreateLayerId(uk.ac.starlink.ttools.plot2.PlotLayer layer) Returns a layerId characterising a given plot layer.booleanuk.ac.starlink.ttools.plot2.DataGeomReturns the data geom.uk.ac.starlink.ttools.plot2.data.DataSpecReturns the data spec.uk.ac.starlink.ttools.plot2.Plotter<?> Returns the plotter.uk.ac.starlink.ttools.plot.StylegetStyle()Returns the style.inthashCode()
-
Constructor Details
-
LayerId
public LayerId(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.data.DataSpec dataSpec, uk.ac.starlink.ttools.plot2.DataGeom dataGeom, uk.ac.starlink.ttools.plot.Style style) Constructor.- Parameters:
plotter- plotterdataSpec- data specificationdataGeom- mapping to graphics spacestyle- layer style
-
-
Method Details
-
getPlotter
public uk.ac.starlink.ttools.plot2.Plotter<?> getPlotter()Returns the plotter.- Returns:
- plotter
-
getDataSpec
public uk.ac.starlink.ttools.plot2.data.DataSpec getDataSpec()Returns the data spec.- Returns:
- dataSpec
-
getDataGeom
public uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()Returns the data geom.- Returns:
- dataGeom
-
getStyle
public uk.ac.starlink.ttools.plot.Style getStyle()Returns the style.- Returns:
- style
-
hashCode
public int hashCode() -
equals
-
createLayerId
Returns a layerId characterising a given plot layer.- Parameters:
layer- plot layer- Returns:
- layer id
-