public abstract class GraphItem extends Item
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION |
static int |
CONTAINER |
static int |
GRAPH |
static int |
NODE |
| Modifier | Constructor and Description |
|---|---|
protected |
GraphItem(IContainer parent,
int style,
java.lang.Object data) |
|
GraphItem(Widget parent,
int style) |
|
GraphItem(Widget parent,
int style,
java.lang.Object data)
Deprecated.
Since Zest 2.0, use
#GraphItem(GraphWidget, int) and
Widget.setData(Object) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkStyle(int styleToCheck)
Checks a style to see if it is set on the given graph item
|
void |
dispose() |
abstract GraphWidget |
getGraphWidget()
Gets the graph that this item is rooted on.
|
abstract int |
getItemType()
Gets the graph item type.
|
abstract void |
highlight()
Highlights the current GraphItem.
|
abstract boolean |
isVisible()
Get the visibility of this item.
|
abstract void |
setVisible(boolean visible)
Set the visibility of this item.
|
abstract void |
unhighlight()
Unhighlight sets the graphItem (either a graphNode or graphConnection)
back to the unhighlight figure or color.
|
checkSubclass, getImage, getText, setImage, setTextaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringpublic static final int GRAPH
public static final int NODE
public static final int CONNECTION
public static final int CONTAINER
public GraphItem(Widget parent, int style)
parent - style - public GraphItem(Widget parent, int style, java.lang.Object data)
protected GraphItem(IContainer parent, int style, java.lang.Object data)
public abstract int getItemType()
public abstract void setVisible(boolean visible)
visible - whether or not this item is visible.public abstract boolean isVisible()
public abstract GraphWidget getGraphWidget()
public abstract void highlight()
public abstract void unhighlight()
protected boolean checkStyle(int styleToCheck)
styleToCheck - The style to checkCopyright (c) 2014 itemis AG and others. All rights reserved.