|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.viz.plotter.parcoord.LineInfo
public class LineInfo
Represents a line (one row) in the parallel coordinates plot. Stores the
mapped points, the domain values (for tooltip information), flags whether this
line is selected and/or hilited, the RowKey
and the
visual properties size, color and shape (for the dots).
Constructor Summary | |
---|---|
LineInfo(List<Point> points,
List<DataCell> domainValues,
boolean isSelected,
boolean isHilite,
ColorAttr color,
double size,
RowKey rowKey)
Creates a line. |
Method Summary | |
---|---|
void |
addPoint(Point point)
Adds a point to the line. |
ColorAttr |
getColor()
|
List<DataCell> |
getDomainValues()
|
List<Point> |
getPoints()
|
RowKey |
getRowKey()
|
ShapeFactory.Shape |
getShape()
|
double |
getSize()
|
boolean |
isContainedIn(Rectangle rectangle)
Returns true if any point of this line is contained in the rectangle. |
boolean |
isHilite()
|
boolean |
isSelected()
|
void |
setColor(ColorAttr color)
|
void |
setDomainValues(List<DataCell> domainValues)
|
void |
setHilite(boolean hilite)
|
void |
setPoints(List<Point> points)
|
void |
setSelected(boolean isSelected)
|
void |
setShape(ShapeFactory.Shape shape)
|
void |
setSize(double size)
|
boolean |
wasClicked(Point clicked,
boolean curve)
Determines if the line was clicked. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineInfo(List<Point> points, List<DataCell> domainValues, boolean isSelected, boolean isHilite, ColorAttr color, double size, RowKey rowKey)
points
- the points making up the line (mapped).domainValues
- the domain valuesisSelected
- true if the line / row is selected.isHilite
- true if the row/line is hilitecolor
- the row's color attributesize
- the rows size attributerowKey
- the referring row key of the lineMethod Detail |
---|
public void setPoints(List<Point> points)
points
- the mapped points making up the linepublic List<Point> getPoints()
public void setShape(ShapeFactory.Shape shape)
shape
- the shape for the datapoints of this line.public ShapeFactory.Shape getShape()
public void setDomainValues(List<DataCell> domainValues)
domainValues
- the domain values of the line.public List<DataCell> getDomainValues()
public void setSelected(boolean isSelected)
isSelected
- true if the line / row is selected.public boolean isSelected()
public void setHilite(boolean hilite)
hilite
- true if the row / line is hilite.public boolean isHilite()
public void setColor(ColorAttr color)
color
- the color of this row / line.public ColorAttr getColor()
public void setSize(double size)
size
- the row's size attributepublic double getSize()
public RowKey getRowKey()
public void addPoint(Point point)
point
- the point to be addedpublic boolean isContainedIn(Rectangle rectangle)
rectangle
- the dragged rectangle
public boolean wasClicked(Point clicked, boolean curve)
clicked
- the clicked pointcurve
- flag if the line was drawn as a curve.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |