|
||||||||||
| 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>
K - The type of the user object.public abstract class NodeWidget<K>
The visual representation of a node in an HierarchicalGraphView.
| Constructor Summary | |
|---|---|
NodeWidget(HierarchicalGraphView<K> graph,
K object)
Creates a new instance. |
|
| Method Summary | |
|---|---|
abstract String |
getConnectorLabelAbove()
Get the label that should be painted on the connector above the NodeWidget. |
abstract String |
getConnectorLabelBelow()
Get the label that should be painted on the connector below the NodeWidget. |
protected HierarchicalGraphView<K> |
getGraphView()
Get the graph where this NodeWidget is element of. |
abstract Dimension |
getPreferredSize()
Get the preferred size. |
float |
getScaleFactor()
Set the scale factor. |
(package private) Dimension |
getSize()
Get the current size. |
protected K |
getUserObject()
Get the user object of this NodeWidget. |
protected abstract void |
paint(Component c,
Graphics2D g,
int x,
int y,
int width,
int height)
Paint this NodeWidget using the given Graphics2D. |
void |
paint(Component c,
Graphics2D g,
Rectangle r)
Paint this NodeWidget using the given Graphics2D. |
void |
setScaleFactor(float scale)
Get the scale factor. |
(package private) void |
setSize(Dimension size)
Set the size of this NodeWidget. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.MouseListener |
|---|
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
| Constructor Detail |
|---|
public NodeWidget(HierarchicalGraphView<K> graph,
K object)
graph - the graph where this NodeWidget is element ofobject - the user object| Method Detail |
|---|
public abstract Dimension getPreferredSize()
protected abstract void paint(Component c,
Graphics2D g,
int x,
int y,
int width,
int height)
NodeWidget using the given Graphics2D.
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 widget
public void paint(Component c,
Graphics2D g,
Rectangle r)
NodeWidget using the given Graphics2D.
c - the component to paint ong - the graphicsr - position and size on the componentpublic abstract String getConnectorLabelAbove()
NodeWidget.
public abstract String getConnectorLabelBelow()
NodeWidget.
final Dimension getSize()
final void setSize(Dimension size)
NodeWidget.
size - the size to setpublic float getScaleFactor()
public void setScaleFactor(float scale)
scale - the scale factor to setprotected final HierarchicalGraphView<K> getGraphView()
NodeWidget is element of.
protected final K getUserObject()
NodeWidget.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||