|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.viz.plotter.scatter.DotInfo
public class DotInfo
This is a helper class for the ScatterPlotView. It keeps info (like the screen coordinates and color) for each data point that is plotted.
Constructor Summary | |
---|---|
DotInfo(int x,
int y,
RowKey rowKey,
boolean hilit,
ColorAttr colorAttr,
double size,
int rowIndex)
Creates a new object storing the characteristics of one dot. |
Method Summary | |
---|---|
float |
distance(DotInfo dot)
Computes the euclidian distance between given dot and itself. |
float |
distanceSq(DotInfo dot)
Computes the squared euclidian distance between given dot and itself. |
ColorAttr |
getColor()
|
RowKey |
getRowID()
|
int |
getRowIndex()
|
ShapeFactory.Shape |
getShape()
|
double |
getSize()
|
int |
getXCoord()
|
DataCell |
getXDomainValue()
|
int |
getYCoord()
|
DataCell |
getYDomainValue()
|
boolean |
isHiLit()
|
boolean |
paintDot()
|
void |
setHiLit(boolean h)
|
void |
setShape(ShapeFactory.Shape shape)
|
void |
setXCoord(int x)
|
void |
setXDomainValue(DataCell xDomainValue)
|
void |
setYCoord(int y)
|
void |
setYDomainValue(DataCell yDomainValue)
|
String |
toString()
Returns a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DotInfo(int x, int y, RowKey rowKey, boolean hilit, ColorAttr colorAttr, double size, int rowIndex)
x
- the x coordinates of the pointy
- the y coordinates of the pointrowKey
- of the row represented by this dotInfo, containing rowID
and color attributeshilit
- true if this dot is hilitedcolorAttr
- the color of this dotsize
- the relative size of this dotrowIndex
- the indes of the row this dot was created from important
to map back to the rows in the data containerMethod Detail |
---|
public RowKey getRowID()
public int getXCoord()
public void setXCoord(int x)
x
- the new screen X coordinate for this point. If negative the
paintDot() method will return false.public int getYCoord()
public void setYCoord(int y)
y
- the new screen Y coordinate for this point. If negative the
paintDot() method will return false.public boolean paintDot()
public ColorAttr getColor()
Color
this dot is supposed to be drawn withpublic boolean isHiLit()
public void setHiLit(boolean h)
h
- true if the dot should be hilited, false if not.public void setShape(ShapeFactory.Shape shape)
shape
- the shape for this dot.public ShapeFactory.Shape getShape()
public void setXDomainValue(DataCell xDomainValue)
xDomainValue
- the original x value.public DataCell getXDomainValue()
public void setYDomainValue(DataCell yDomainValue)
yDomainValue
- the original y value.public DataCell getYDomainValue()
public String toString()
toString
in class Object
Object.toString()
public float distance(DotInfo dot)
dot
- Given dot to compute distance with.
public float distanceSq(DotInfo dot)
dot
- Given dot to compute distance with
public double getSize()
public int getRowIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |