Package uk.ac.starlink.topcat.plot2
Class LayerId
- java.lang.Object
-
- uk.ac.starlink.topcat.plot2.LayerId
-
@Equality public class LayerId extends java.lang.ObjectIdentifier 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
Constructors Constructor Description 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LayerIdcreateLayerId(uk.ac.starlink.ttools.plot2.PlotLayer layer)Returns a layerId characterising a given plot layer.booleanequals(java.lang.Object o)uk.ac.starlink.ttools.plot2.DataGeomgetDataGeom()Returns the data geom.uk.ac.starlink.ttools.plot2.data.DataSpecgetDataSpec()Returns the data spec.uk.ac.starlink.ttools.plot2.Plotter<?>getPlotter()Returns the plotter.uk.ac.starlink.ttools.plot.StylegetStyle()Returns the style.inthashCode()
-
-
-
Constructor Detail
-
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 Detail
-
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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
createLayerId
public static LayerId createLayerId(uk.ac.starlink.ttools.plot2.PlotLayer layer)
Returns a layerId characterising a given plot layer.- Parameters:
layer- plot layer- Returns:
- layer id
-
-