|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.viz.plotter.dendrogram.DendrogramPoint
public class DendrogramPoint
Represents a point in the dendrogram with the contained rows, the distance of
the cluster, the point in the drawing pane and the visual properties
hilited, selected, relative size, color and shape.
A BinaryTree
of
DendrogramPoint
s is passed from the
DendrogramPlotter
to the
DendrogramDrawingPane
.
Constructor Summary | |
---|---|
DendrogramPoint(Point p,
double dist)
Creates a DendrogramPoint with a mapped point and the
original distance. |
Method Summary | |
---|---|
void |
addRow(RowKey... rowIds)
Adds the rows to this DendrogramPoint . |
void |
addRows(Set<RowKey> ids)
Adds the rows to thsi DendrogramPoint . |
boolean |
equals(Object o)
|
ColorAttr |
getColor()
|
double |
getDistance()
|
Point |
getPoint()
Returns the mapped point, where to draw this DendrogramPoint . |
double |
getRelativeSize()
|
Set<RowKey> |
getRows()
|
ShapeFactory.Shape |
getShape()
|
int |
hashCode()
|
boolean |
isHilite()
|
boolean |
isSelected()
|
void |
setColor(ColorAttr color)
If a datapoint is represented this is its original color attr. |
void |
setHilite(boolean hilite)
|
void |
setRelativeSize(double relSize)
|
void |
setSelected(boolean selected)
|
void |
setShape(ShapeFactory.Shape shape)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DendrogramPoint(Point p, double dist)
DendrogramPoint
with a mapped point and the
original distance.
p
- the mapped point.dist
- the distance of the represented cluster node.Method Detail |
---|
public void addRow(RowKey... rowIds)
DendrogramPoint
.
rowIds
- adds the row ids to the contained row ids.public void addRows(Set<RowKey> ids)
DendrogramPoint
.
ids
- adds the row ids to the contained row ids.public Point getPoint()
DendrogramPoint
.
public double getDistance()
public Set<RowKey> getRows()
public boolean isSelected()
public void setSelected(boolean selected)
selected
- true if the point is selectedpublic boolean isHilite()
public void setHilite(boolean hilite)
hilite
- true if the point is hilited.public void setColor(ColorAttr color)
color
- the original color attr.public ColorAttr getColor()
public void setRelativeSize(double relSize)
relSize
- the relative size defined by the size manager, or 0.0 for
cluster points and default.public double getRelativeSize()
public void setShape(ShapeFactory.Shape shape)
shape
- the shape defined by the shape manager or default otherwise.public ShapeFactory.Shape getShape()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |