|
||||||||||
| 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.box.BoxPlotter
public class BoxPlotter
The BoxPlotter calculates, based on the statistical
parameters determined by the
BoxPlotNodeModel, the
Boxes to
draw in the updateSize method. The drawable box is represented
by a Box which
holds the mapped value for each statistcal parameter and its x position. The
mild and extreme outliers are set as a
DotInfoArray used from the
ScatterPlotter.
| 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 | |
|---|---|
static int |
OFFSET
Constant for the space at top and bottom. |
| 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 | |
|---|---|
BoxPlotter()
|
|
BoxPlotter(BoxPlotterProperties properties)
|
|
| Method Summary | |
|---|---|
void |
clearSelection()
Clears current selection. |
protected void |
createNormalizedCoordinates(Map<DataColumnSpec,double[]> statistics)
|
protected Map<DataColumnSpec,Coordinate> |
getCoordinates()
|
protected Set<String> |
getSelectedColumns()
|
void |
hiLite(KeyEvent event)
Invoked when some item(s) were hilit. |
void |
hiLiteSelected()
Is called from the menu entry hilite selected. |
void |
reset()
Reset all local data which depends on the input data provided by the data provider. |
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. |
protected void |
setCoordinates(Map<DataColumnSpec,Coordinate> coordinates)
|
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. |
protected List<DotInfo> |
updateOutliers(Coordinate yCoordinate,
Box box)
Sets the outliers as dotinfo to the scatterplotter drawing pane to make them selectable and hilite-able. |
void |
updatePaintModel()
Do the mapping from the models data to screen coordinates here and pass the visualization model to the drawing pane. |
void |
updateSize()
Updates the size by mapping the domain values of the BasicDrawingElements
to the drawing pane's dimension. |
| 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 |
| Field Detail |
|---|
public static final int OFFSET
| Constructor Detail |
|---|
public BoxPlotter()
public BoxPlotter(BoxPlotterProperties properties)
properties - the box plotter properties to be used| Method Detail |
|---|
public void reset()
reset in class BasicPlotterpublic void updatePaintModel()
updatePaintModel in class AbstractPlotterprotected void createNormalizedCoordinates(Map<DataColumnSpec,double[]> statistics)
statistics - public void updateSize()
BasicDrawingElements
to the drawing pane's dimension.
updateSize in class BasicPlotterAbstractPlotter.updateSize()
protected List<DotInfo> updateOutliers(Coordinate yCoordinate,
Box box)
yCoordinate - the corresponding y coordinate.box - the box (column).
public void clearSelection()
clearSelection in class AbstractPlotterpublic void hiLite(KeyEvent event)
hiLite in interface HiLiteListenerhiLite in class AbstractPlotterevent - contains a list of row keys that were hilitpublic void hiLiteSelected()
hiLiteSelected in class AbstractPlotterpublic void selectClickedElement(Point clicked)
selectClickedElement in class AbstractPlotterclicked - the clicked pointpublic void selectElementsIn(Rectangle selectionRectangle)
selectElementsIn in class AbstractPlotterselectionRectangle - the selection rectangle from the dragged mouse
in selection modepublic void unHiLite(KeyEvent event)
unHiLite in interface HiLiteListenerunHiLite in class AbstractPlotterevent - contains a list of row keys that were unhilitpublic void unHiLiteSelected()
unHiLiteSelected in class AbstractPlotterpublic void unHiLiteAll(KeyEvent event)
event - contains a list of row key that were unhilitprotected Set<String> getSelectedColumns()
protected Map<DataColumnSpec,Coordinate> getCoordinates()
protected void setCoordinates(Map<DataColumnSpec,Coordinate> coordinates)
coordinates - the coordinates to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||