public class PoolStyleSet extends Object implements MutableStyleSet
Constructor and Description |
---|
PoolStyleSet(uk.ac.starlink.ttools.plot.StyleSet base,
BitSet used)
Constructs a new StyleSet.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
uk.ac.starlink.ttools.plot.Style |
getStyle(int index) |
void |
reset()
Resets all the symbols to be ones from the base set.
|
void |
setStyle(int index,
uk.ac.starlink.ttools.plot.Style style)
Explicitly sets the style at a given index to be a specified one.
|
public PoolStyleSet(uk.ac.starlink.ttools.plot.StyleSet base, BitSet used)
base
- style set which supplies the actual symbolsused
- a bit vector, shared between a group of
PoolStyleSet, which keeps track of which
styles (indices into base
) are currently in usepublic String getName()
getName
in interface uk.ac.starlink.ttools.plot.StyleSet
public uk.ac.starlink.ttools.plot.Style getStyle(int index)
getStyle
in interface uk.ac.starlink.ttools.plot.StyleSet
public void setStyle(int index, uk.ac.starlink.ttools.plot.Style style)
setStyle
in interface MutableStyleSet
index
- style indexstyle
- style to usepublic void reset()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.