Package ucar.unidata.util
Class ColorTable.Breakpoint
java.lang.Object
ucar.unidata.util.ColorTable.Breakpoint
- Enclosing class:
ColorTable
A class to hold color table breakpoint information
- Author:
- IDV Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorBreakpoint(double v) Create a breakpoint at the valueBreakpoint(double v, boolean locked) Create a breakpoint at the valueCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayListClone the list of colorsbooleanGet the Locked property.doublegetValue()Get the Value property.voidsetLocked(boolean value) Set the Locked property.voidsetValue(double value) Set the Value property.toString()Get a String representation of this object
-
Constructor Details
-
Breakpoint
public Breakpoint()Default constructor -
Breakpoint
public Breakpoint(double v) Create a breakpoint at the value- Parameters:
v- the value
-
Breakpoint
public Breakpoint(double v, boolean locked) Create a breakpoint at the value- Parameters:
v- the valuelocked- true if locked
-
Breakpoint
Copy constructor- Parameters:
that- the one to copy
-
-
Method Details
-
setValue
public void setValue(double value) Set the Value property.- Parameters:
value- The new value for Value
-
getValue
public double getValue()Get the Value property.- Returns:
- The Value
-
setLocked
public void setLocked(boolean value) Set the Locked property.- Parameters:
value- The new value for Locked
-
getLocked
public boolean getLocked()Get the Locked property.- Returns:
- The Locked
-
cloneList
Clone the list of colors- Parameters:
l- the list- Returns:
- a clone
-
toString
Get a String representation of this object
-