|
||||||||||
| 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.histogram.impl.AbstractHistogramPlotter
public abstract class AbstractHistogramPlotter
Abstract class which is the coordinator between the
HistogramDrawingPane and the AbstractHistogramVizModel.
| 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 ColumnFilter |
AGGREGATION_COLUMN_FILTER
This column filter should be used in all aggregation column select boxes. |
static String |
COL_NAME_COUNT
This name is used for the y axis if the aggregation method is count. |
static int |
INTERVAL_DIGITS
Number of digits used in an interval. |
static ColumnFilter |
X_COLUMN_FILTER
This column filter should be used in all x column select boxes. |
| 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 | |
|---|---|
AbstractHistogramPlotter(AbstractHistogramProperties histogramProps,
HiLiteHandler handler)
Constructor for class AbstractHistogramPlotter. |
|
| Method Summary | |
|---|---|
void |
clearSelection()
Clears current selection. |
DataColumnSpec |
getAggregationColSpec()
|
DataTableSpec |
getDataTableSpec()
|
protected HistogramDrawingPane |
getHistogramDrawingPane()
Convenience method to cast the drawing pane. |
AbstractHistogramProperties |
getHistogramPropertiesPanel()
|
AbstractHistogramVizModel |
getHistogramVizModel()
Returns the AbstractHistogramVizModel on which the
visualisation bases on. |
String |
getXColName()
|
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 Histogram data, the listener and display settings. |
protected void |
resetHistogramVizModel()
This method is called when ever something basic has changed. |
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. |
boolean |
setAggregationMethod(AggregationMethod aggrMethod)
Sets new aggregation columns and recalculates/repaints. |
void |
setHiLiteHandler(HiLiteHandler hiLiteHandler)
|
void |
setHistogramLayout(HistogramLayout layout)
|
void |
setHistogramVizModel(DataTableSpec tableSpec,
AbstractHistogramVizModel vizModel)
Sets the new AbstractHistogramVizModel. |
protected boolean |
setNumberOfBins(int noOfBins)
|
boolean |
setShowEmptyBins(boolean showEmptyBins)
|
void |
setShowGridLines(boolean showGridLines)
|
boolean |
setShowMissingValBin(boolean showMissingValBin)
|
protected void |
setXCoordinates()
Sets the x coordinates for the current AbstractHistogramVizModel. |
protected void |
setYCoordinates()
Sets the y coordinates for the current AbstractHistogramVizModel. |
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 void |
updateBinWidth(int binWidth)
Updates ONLY the width of the bins. |
void |
updatePaintModel()
Do the mapping from the models data to screen coordinates here and pass the visualization model to the drawing pane. |
void |
updateSize()
Whenever the size of the drawing pane is changed (zooming, resizing) this method is called in order to update the painting. |
| 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 String COL_NAME_COUNT
public static final int INTERVAL_DIGITS
public static final ColumnFilter X_COLUMN_FILTER
public static final ColumnFilter AGGREGATION_COLUMN_FILTER
| Constructor Detail |
|---|
public AbstractHistogramPlotter(AbstractHistogramProperties histogramProps,
HiLiteHandler handler)
histogramProps - the histogram properties panelhandler - the HiLiteHandler to use| Method Detail |
|---|
public void updateSize()
updateSize in class AbstractPlotterpublic void updatePaintModel()
updatePaintModel in class AbstractPlotterprotected void updateBinWidth(int binWidth)
binWidth - the new bin widthprotected void setXCoordinates()
AbstractHistogramVizModel.
protected void setYCoordinates()
AbstractHistogramVizModel.
protected boolean setNumberOfBins(int noOfBins)
noOfBins - sets the number of bins which is used for binning of
none nominal attributes
true if the value has changedpublic boolean setAggregationMethod(AggregationMethod aggrMethod)
aggrMethod - The aggregation method
true if the method has change otherwise
false.protected HistogramDrawingPane getHistogramDrawingPane()
public AbstractHistogramProperties getHistogramPropertiesPanel()
AbstractHistogramProperties panelpublic DataColumnSpec getAggregationColSpec()
DataColumnSpec of the aggregation columnpublic void setShowGridLines(boolean showGridLines)
showGridLines - set to true if the grid lines of the
y axis should be shownpublic void setHistogramLayout(HistogramLayout layout)
layout - the HistogramLayout to usepublic boolean setShowEmptyBins(boolean showEmptyBins)
showEmptyBins - set to true if the empty bins should
be displayed
true if the value has changedpublic boolean setShowMissingValBin(boolean showMissingValBin)
showMissingValBin - the showMissingvalBar to set
true if the value has changedpublic void reset()
reset in class AbstractPlotterpublic void setHiLiteHandler(HiLiteHandler hiLiteHandler)
setHiLiteHandler in class AbstractPlotterhiLiteHandler - The hiLiteHandler to set.public DataTableSpec getDataTableSpec()
public AbstractHistogramVizModel getHistogramVizModel()
AbstractHistogramVizModel on which the
visualisation bases on. It creates the model if it doesn't exists by
using the information of the getXColName method and the m_rowContainer
variable.
protected void resetHistogramVizModel()
public void setHistogramVizModel(DataTableSpec tableSpec,
AbstractHistogramVizModel vizModel)
AbstractHistogramVizModel.
tableSpec - the new DataTableSpecvizModel - the new AbstractHistogramVizModelpublic String getXColName()
public void hiLite(KeyEvent event)
hiLite in interface HiLiteListenerhiLite in class AbstractPlotterevent - contains a list of row keys that were hilitpublic void unHiLite(KeyEvent event)
unHiLite in interface HiLiteListenerunHiLite in class AbstractPlotterevent - contains a list of row keys that were unhilitpublic void unHiLiteAll(KeyEvent event)
event - contains a list of row key that were unhilitpublic void hiLiteSelected()
hiLiteSelected in class AbstractPlotterpublic void unHiLiteSelected()
unHiLiteSelected 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 clearSelection()
clearSelection in class AbstractPlotter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||