|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.heatmap.HeatmapValue
public class HeatmapValue
Wrapper class for a value in a heatmap.
| Field Summary | |
|---|---|
protected Heatmap |
m_Parent
the parent. |
protected double |
m_Value
the heatmap value. |
protected int |
m_X
the X position in the heatmap. |
protected int |
m_Y
the Y position in the heatmap. |
| Constructor Summary | |
|---|---|
HeatmapValue()
Initializes the heatmap value with 0.0 and coordinates of 0,0. |
|
HeatmapValue(int y,
int x,
double value)
Initializes the heatmap value. |
|
| Method Summary | |
|---|---|
void |
assign(DataPoint other)
Obtains the stored variables from the other data point. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
Object |
getClone()
Returns a clone of itself. |
Heatmap |
getParent()
Returns the heatmap this point belongs to. |
double |
getValue()
Returns the value in the heatmap. |
int |
getX()
Returns the X position in the map. |
int |
getY()
Returns the Y position in the map. |
boolean |
hasParent()
Returns whether the point belongs to a heatmap. |
void |
setParent(DataContainer value)
Sets the heatmap this point belongs to. |
String |
toString()
Returns a string representation of the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Heatmap m_Parent
protected double m_Value
protected int m_X
protected int m_Y
| Constructor Detail |
|---|
public HeatmapValue()
public HeatmapValue(int y,
int x,
double value)
y - the Y position in the mapx - the X position in the mapvalue - the heatmap value| Method Detail |
|---|
public void setParent(DataContainer value)
setParent in interface DataPointvalue - the heatmappublic Heatmap getParent()
getParent in interface DataPointpublic boolean hasParent()
hasParent in interface DataPointpublic int getX()
public int getY()
public double getValue()
public void assign(DataPoint other)
assign in interface DataPointother - the data point to get the values frompublic int compareTo(Object o)
compareTo in interface Comparableo - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public Object getClone()
getClone in interface CloneHandlergetClone in interface DataPointpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||