|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.decisiontree2.view.graph.NodeWidget<K>
org.knime.base.node.mine.decisiontree2.view.graph.ComponentNodeWidget<K>
K - The typepublic abstract class ComponentNodeWidget<K>
A NodeWidget consisting of single JComponent.
| Constructor Summary | |
|---|---|
ComponentNodeWidget(HierarchicalGraphView<K> graph,
K object)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected abstract JComponent |
createComponent()
Creates the component. |
Dimension |
getPreferredSize()
Get the preferred size. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
protected void |
paint(Component c,
Graphics2D g,
int x,
int y,
int width,
int height)
Paint this NodeWidget using the given Graphics2D. |
void |
setScaleFactor(float scale)
Get the scale factor. |
| Methods inherited from class org.knime.base.node.mine.decisiontree2.view.graph.NodeWidget |
|---|
getConnectorLabelAbove, getConnectorLabelBelow, getGraphView, getScaleFactor, getSize, getUserObject, paint, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentNodeWidget(HierarchicalGraphView<K> graph,
K object)
graph - the graph where this NodeWidget is element ofobject - the user object| Method Detail |
|---|
protected abstract JComponent createComponent()
NodeWidget will displaypublic void setScaleFactor(float scale)
setScaleFactor in class NodeWidget<K>scale - the scale factor to setpublic final Dimension getPreferredSize()
getPreferredSize in class NodeWidget<K>
protected void paint(Component c,
Graphics2D g,
int x,
int y,
int width,
int height)
NodeWidget using the given Graphics2D.
paint in class NodeWidget<K>c - the component to paint ong - the graphicsx - the x coordinate in the componenty - the y coordinate in the componentwidth - the width of the widgetheight - the height of the widgetpublic void mouseClicked(MouseEvent e)
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||