public class IcyColorMapComponent.ControlPoint extends java.lang.Object implements java.lang.Comparable<IcyColorMapComponent.ControlPoint>, XMLPersistent
Constructor and Description |
---|
IcyColorMapComponent.ControlPoint(int index,
int value) |
IcyColorMapComponent.ControlPoint(int index,
int value,
boolean fixed) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IcyColorMapComponent.ControlPoint o) |
boolean |
equals(java.lang.Object obj) |
int |
getIndex() |
java.awt.Point |
getPosition()
Get control point position
|
int |
getValue() |
int |
hashCode() |
boolean |
isFixed() |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
void |
remove()
remove the control point
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setIndex(int index) |
void |
setPosition(int index,
int value)
Set control point position
|
void |
setPosition(java.awt.Point p)
Set control point position
|
void |
setValue(int value) |
public IcyColorMapComponent.ControlPoint(int index, int value, boolean fixed)
index
- value
- public IcyColorMapComponent.ControlPoint(int index, int value)
index
- value
- public boolean isFixed()
public int getIndex()
public void setIndex(int index)
index
- the index to setpublic int getValue()
public void setValue(int value)
value
- the value to setpublic void setPosition(java.awt.Point p)
p
- pointpublic java.awt.Point getPosition()
public void setPosition(int index, int value)
index
- value
- public void remove()
public int compareTo(IcyColorMapComponent.ControlPoint o)
compareTo
in interface java.lang.Comparable<IcyColorMapComponent.ControlPoint>
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object