|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.knime.base.node.viz.plotter.AbstractPlotter
org.knime.base.node.viz.plotter.basic.BasicPlotter
org.knime.base.node.viz.plotter.columns.TwoColumnPlotter
org.knime.base.node.viz.plotter.scatter.ScatterPlotter
org.knime.base.node.viz.plotter.dendrogram.DendrogramPlotter
public class DendrogramPlotter
Converts a DendrogramNode
into a BinaryTree
of
DendrogramPoint
s, which
is the visual representation of a hierachical clustering result stored in the
DendrogramNode
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.knime.base.node.viz.plotter.AbstractPlotter |
---|
AbstractPlotter.MovingMouseListener, AbstractPlotter.SelectionMouseListener, AbstractPlotter.ZoomMouseListener |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class org.knime.base.node.viz.plotter.AbstractPlotter |
---|
DEFAULT_ZOOM_FACTOR, FADE_UNHILITED, HIDE_UNHILITED, SHOW_ALL, SHOW_HIDE |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DendrogramPlotter()
Default constructor. |
|
DendrogramPlotter(DendrogramDrawingPane panel,
DendrogramPlotterProperties props)
Constructor for extending classes. |
Method Summary | |
---|---|
void |
clearSelection()
Clears current selection. |
void |
createViewModel(DendrogramNode node)
Converts the cluster node into a view model, where cluster nodes are points and leaf nodes are dots. |
void |
hiLite(KeyEvent event)
Invoked when some item(s) were hilit. |
void |
hiLiteSelected()
Is called from the menu entry hilite selected. |
void |
reset()
Resets the visual model and repaints. |
void |
selectClickedElement(Point clicked)
Implementing classes mayxselect the elements depending on the clicked position. |
void |
selectElementsIn(Rectangle selectionRectangle)
Implementing classes may select the elements in the selection rectangle obtained from the mouse dragging in selection mode. |
void |
setDotSize(int dotSize)
Sets the size of the dots and sets a tick offset to both axes to ensure that the points are always completely visible. |
void |
setRootNode(DendrogramNode root)
Sets the result of the hierachical clustering represented in a DendrogramNode . |
void |
unHiLite(KeyEvent event)
Invoked when some item(s) were unhilit. |
void |
unHiLiteAll(KeyEvent event)
Invoked, when everything (all rows) are unhilit. |
void |
unHiLiteSelected()
Is called by the menu entry unhilite selected. |
void |
updatePaintModel()
The data points of the data to visulaize are mapped to screen coordinates, represented by DotInfo and are passed in
a DotInfoArray to the
.ScatterPlotterDrawingPane . |
void |
updateSize()
Updates the size by mapping the domain values of the BasicDrawingElement s
to the drawing pane's dimension. |
Methods inherited from class org.knime.base.node.viz.plotter.scatter.ScatterPlotter |
---|
calculateCoordinates, dispose, fillPopupMenu, getDotSize, getFadeAction, getHideAction, getJitterRate, getMappedXValue, getMappedYValue, getShowAllAction, getShowHideMenu, isHideMode, isScatterPlotterDrawingPane, isScatterPlotterProperties, jitterDots, setHideMode, setJitterRate |
Methods inherited from class org.knime.base.node.viz.plotter.columns.TwoColumnPlotter |
---|
getSelectedXColumn, getSelectedXColumnIndex, getSelectedYColumn, getSelectedYColumnIndex, setDataProvider, setSelectableColumns |
Methods inherited from class org.knime.base.node.viz.plotter.basic.BasicPlotter |
---|
addBasicDrawingElement, addEllipse, addLine, addLine, addLine, addLine, addRectangle, addText |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DendrogramPlotter()
public DendrogramPlotter(DendrogramDrawingPane panel, DendrogramPlotterProperties props)
.DendrogramPlotterProperties
panel
- drawing paneprops
- propertiesMethod Detail |
---|
public void setDotSize(int dotSize)
setDotSize
in class ScatterPlotter
dotSize
- the dot size.public void reset()
reset
in class ScatterPlotter
AbstractPlotter.reset()
public void setRootNode(DendrogramNode root)
DendrogramNode
.
root
- the root node of the dendrogram.public void clearSelection()
clearSelection
in class ScatterPlotter
public void hiLiteSelected()
hiLiteSelected
in class ScatterPlotter
public void selectClickedElement(Point clicked)
selectClickedElement
in class ScatterPlotter
clicked
- the clicked pointpublic void selectElementsIn(Rectangle selectionRectangle)
selectElementsIn
in class ScatterPlotter
selectionRectangle
- the selection rectangle from the dragged mouse
in selection modepublic void unHiLiteSelected()
unHiLiteSelected
in class ScatterPlotter
public void updatePaintModel()
DotInfo
and are passed in
a DotInfoArray
to the
.ScatterPlotterDrawingPane
. Repaint of the drawing pane is triggered.
Jittering is also triggered from here.
updatePaintModel
in class ScatterPlotter
#updatePaintModel()
public void createViewModel(DendrogramNode node)
node
- the cluster node tree.public void updateSize()
BasicDrawingElement
s
to the drawing pane's dimension.
updateSize
in class ScatterPlotter
AbstractPlotter.updateSize()
public void unHiLiteAll(KeyEvent event)
unHiLiteAll
in interface HiLiteListener
unHiLiteAll
in class ScatterPlotter
event
- contains a list of row key that were unhilitpublic void hiLite(KeyEvent event)
hiLite
in interface HiLiteListener
hiLite
in class ScatterPlotter
event
- contains a list of row keys that were hilitpublic void unHiLite(KeyEvent event)
unHiLite
in interface HiLiteListener
unHiLite
in class ScatterPlotter
event
- contains a list of row keys that were unhilit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |