|
||||||||||
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.pie.impl.PiePlotter<P,D>
P
- the PieProperties
implementationD
- the PieVizModel
implementationpublic abstract class PiePlotter<P extends PieProperties<D>,D extends PieVizModel>
The abstract plotter implementation of the pie chart which acts as the
controller between the PieVizModel
and the PieDrawingPane
.
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 | |
---|---|
PiePlotter(P properties,
HiLiteHandler handler)
Constructor for class PiePlotter. |
Method Summary | |
---|---|
void |
clearSelection()
Clears current selection. |
void |
fillPopupMenu(JPopupMenu popupMenu)
Fills the popup menu with (additional) elements. |
String |
getInfoMsg()
|
protected PieDrawingPane |
getPieDrawingPane()
Convenient method to cast the drawing pane. |
protected P |
getPropertiesPanel()
|
protected D |
getVizModel()
|
void |
hiLite(KeyEvent event)
Invoked when some item(s) were hilit. |
void |
hiLiteSelected()
Is called from the menu entry hilite selected. |
protected void |
modelChanged()
Updates all views and objects which depend on the PieVizModel . |
void |
reset()
Reset all local data which depends on the input data provided by the data provider. |
void |
resetInfoMsg()
Resets the information message. |
void |
resetVizModel()
Resets the visualization model. |
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 |
setInfoMsg(String infoMsg)
If the information message is set no bars will be drawn. |
void |
setVizModel(D vizModel)
|
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()
Do the mapping from the models data to screen coordinates here and pass the visualization model to the drawing pane. |
protected void |
updatePropertiesPanel(D vizModel)
|
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 |
Constructor Detail |
---|
public PiePlotter(P properties, HiLiteHandler handler)
properties
- the properties panelhandler
- the optional HiliteHandler
Method Detail |
---|
protected P getPropertiesPanel()
protected PieDrawingPane getPieDrawingPane()
public void setVizModel(D vizModel)
vizModel
- the vizModel to displayprotected void modelChanged()
PieVizModel
.
protected void updatePropertiesPanel(D vizModel)
vizModel
- the visualization model with the values to useprotected D getVizModel()
public void resetVizModel()
public String getInfoMsg()
public void setInfoMsg(String infoMsg)
infoMsg
- the information message to displaypublic void resetInfoMsg()
public void reset()
reset
in class AbstractPlotter
public void updateSize()
updateSize
in class AbstractPlotter
public void updatePaintModel()
updatePaintModel
in class AbstractPlotter
public void clearSelection()
clearSelection
in class AbstractPlotter
public void selectClickedElement(Point clicked)
selectClickedElement
in class AbstractPlotter
clicked
- the clicked pointpublic void selectElementsIn(Rectangle selectionRectangle)
selectElementsIn
in class AbstractPlotter
selectionRectangle
- the selection rectangle from the dragged mouse
in selection modepublic void hiLite(KeyEvent event)
hiLite
in interface HiLiteListener
hiLite
in class AbstractPlotter
event
- contains a list of row keys that were hilitpublic void unHiLite(KeyEvent event)
unHiLite
in interface HiLiteListener
unHiLite
in class AbstractPlotter
event
- contains a list of row keys that were unhilitpublic void hiLiteSelected()
hiLiteSelected
in class AbstractPlotter
public void unHiLiteSelected()
unHiLiteSelected
in class AbstractPlotter
public void unHiLiteAll(KeyEvent event)
event
- contains a list of row key that were unhilitpublic void fillPopupMenu(JPopupMenu popupMenu)
fillPopupMenu
in class AbstractPlotter
popupMenu
- the popup menu to fill.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |