|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.SubCloud
@Equality public class SubCloud
Aggregates the DataGeom and the geometry-specific parts of the DataSpec for a layer. This defines one set of positions that it will return for a given tuple sequence (one position per tuple).
Equality is implemented so that two equal subclouds have the same geom and coordinate columns. This means they will iterate over the same data positions for a given tuple sequence, but not necessarily that they have the same DataSpec objects or coordinate index positions.
Constructor Summary | |
---|---|
SubCloud(DataGeom geom,
DataSpec spec,
int iPosCoord)
Constructor. |
Method Summary | |
---|---|
static SubCloud[] |
createPartialSubClouds(PlotLayer[] layers,
boolean deduplicate)
Returns a collection of subclouds from a list of layers, but including only those layers whose positions are partial. |
static SubCloud[] |
createSubClouds(DataGeom geom,
DataSpec spec,
int npos,
boolean deduplicate)
Returns a collection of subclouds for a number of positions from a data spec. |
static SubCloud[] |
createSubClouds(PlotLayer[] layers,
boolean deduplicate)
Returns an array of subclouds from a list of layers, with optional deduplication. |
boolean |
equals(Object o)
|
DataGeom |
getDataGeom()
Returns the data geom for this subcloud. |
DataSpec |
getDataSpec()
Returns the data spec for this subcloud. |
int |
getPosCoordIndex()
Returns the index of the data spec coordinate at which the position information starts for this subcloud. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubCloud(DataGeom geom, DataSpec spec, int iPosCoord)
geom
- data geomspec
- data speciPosCoord
- index of coordinate at which position information
starts in the DataSpecMethod Detail |
---|
public DataGeom getDataGeom()
public DataSpec getDataSpec()
public int getPosCoordIndex()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public static SubCloud[] createSubClouds(PlotLayer[] layers, boolean deduplicate)
layers
- plot layersdeduplicate
- true to cull duplicate subclouds
public static SubCloud[] createPartialSubClouds(PlotLayer[] layers, boolean deduplicate)
layers
- plot layersdeduplicate
- true to cull duplicate subclouds
public static SubCloud[] createSubClouds(DataGeom geom, DataSpec spec, int npos, boolean deduplicate)
geom
- data geomspec
- data specnpos
- number of positions in the data specdeduplicate
- true to cull duplicate layers
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |