|
||||||||||
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.mine.sota.view.SotaDrawingPane
public class SotaDrawingPane
Nested Class Summary | |
---|---|
(package private) class |
SotaDrawingPane.PaneController
Controls the KeyEvents of the SotaDrawingPane. |
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 String |
POPUP_HILITE_SELECTED
Popup menue entry constant. |
static String |
POPUP_UNHILITE
Popup menue entry constant. |
static String |
POPUP_UNHILITE_SELECTED
Popup menue entry constant. |
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 | |
---|---|
SotaDrawingPane(SotaTreeCell root,
DataArray data,
DataArray originalData,
boolean isHFuzzyData,
int maxHLevel)
Creates new instance of SotaDrawingPane, which draws the given data and the trained binary cluster tree given by its root node. |
Method Summary | |
---|---|
JMenu |
createHiLiteMenu()
|
JToolTip |
createToolTip()
|
DataArray |
getData()
|
HiLiteHandler |
getHiliteHandler()
|
int |
getMaxHLevel()
|
SotaTreeCell |
getRoot()
|
String |
getToolTipText(MouseEvent event)
|
void |
hiLite(KeyEvent event)
Invoked when some item(s) were hilit. |
boolean |
isDrawHierarchicalFuzzyData()
|
boolean |
isDrawHierarchicalSeparators()
|
boolean |
isHierarchicalFuzzyData()
|
boolean |
isZooming()
|
void |
modelChanged(boolean first)
Creates the Tree structure for the JTree and paints it. |
void |
paint(Graphics g)
|
void |
setAccentHLevel(int level)
|
void |
setData(DataArray data)
|
void |
setDrawHierarchicalFuzzyData(boolean hierarchicalFuzzyData)
|
void |
setDrawHierarchicalSeparators(boolean hierarchicalSeparators)
|
void |
setHiliteHandler(HiLiteHandler handler)
|
void |
setMaxHLevel(int level)
|
void |
setOriginalData(DataArray data)
|
void |
setRoot(SotaTreeCell root)
|
void |
setZooming(boolean zooming)
|
void |
unHiLite(KeyEvent event)
Invoked when some item(s) were unhilit. |
void |
unHiLiteAll(KeyEvent event)
Invoked, when everything (all rows) are unhilit. |
protected void |
zoomIn()
Zooms in. |
protected void |
zoomOut()
Zooms out. |
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 POPUP_HILITE_SELECTED
public static final String POPUP_UNHILITE_SELECTED
public static final String POPUP_UNHILITE
Constructor Detail |
---|
public SotaDrawingPane(SotaTreeCell root, DataArray data, DataArray originalData, boolean isHFuzzyData, int maxHLevel)
root
- the root node of the binary tree to drawdata
- the data to draworiginalData
- the original dataisHFuzzyData
- if true
, clusters will be drawn as
hierarchical fuzzy clustersmaxHLevel
- the maximum hierarchical levelMethod Detail |
---|
public String getToolTipText(MouseEvent event)
getToolTipText
in class JComponent
public JToolTip createToolTip()
createToolTip
in class JComponent
public void modelChanged(boolean first)
first
- if true
size of JPanel will be recomputedpublic void paint(Graphics g)
paint
in class JComponent
public SotaTreeCell getRoot()
public void setRoot(SotaTreeCell root)
root
- the root to setpublic void setData(DataArray data)
data
- the data to setpublic void setOriginalData(DataArray data)
data
- the original data to set.public DataArray getData()
protected void zoomIn()
protected void zoomOut()
public void unHiLiteAll(KeyEvent event)
unHiLiteAll
in interface HiLiteListener
event
- contains a list of row key that were unhilitpublic void hiLite(KeyEvent event)
hiLite
in interface HiLiteListener
event
- contains a list of row keys that were hilitpublic void unHiLite(KeyEvent event)
unHiLite
in interface HiLiteListener
event
- contains a list of row keys that were unhilitpublic void setHiliteHandler(HiLiteHandler handler)
handler
- the hiliteHandler to setpublic HiLiteHandler getHiliteHandler()
public boolean isHierarchicalFuzzyData()
public boolean isDrawHierarchicalFuzzyData()
public void setDrawHierarchicalFuzzyData(boolean hierarchicalFuzzyData)
hierarchicalFuzzyData
- the drawHierarchicalFuzzyData to setpublic boolean isDrawHierarchicalSeparators()
public void setDrawHierarchicalSeparators(boolean hierarchicalSeparators)
hierarchicalSeparators
- the drawHierarchicalSeparators to setpublic void setMaxHLevel(int level)
level
- the maxHLevel to setpublic int getMaxHLevel()
public void setAccentHLevel(int level)
level
- accentHLevel to setpublic JMenu createHiLiteMenu()
public boolean isZooming()
public void setZooming(boolean zooming)
zooming
- zooming to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |