|
Zest 1.5.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.zest.core.widgets.GraphItem
org.eclipse.zest.core.widgets.GraphConnection
public class GraphConnection
Field Summary |
---|
Fields inherited from class org.eclipse.zest.core.widgets.GraphItem |
---|
CONNECTION, CONTAINER, GRAPH, NODE |
Constructor Summary | |
---|---|
GraphConnection(Graph graphModel,
int style,
GraphNode source,
GraphNode destination)
|
Method Summary | |
---|---|
void |
changeLineColor(Color color)
Sets the connection color. |
void |
dispose()
|
Connection |
getConnectionFigure()
|
int |
getConnectionStyle()
Returns the style of this connection. |
GraphNode |
getDestination()
Gets the target node for this relationship |
java.lang.Object |
getExternalConnection()
Gets the external connection object. |
Font |
getFont()
Gets the font for the label on this connection |
Graph |
getGraphModel()
Gets the graph model that this connection is in |
Color |
getHighlightColor()
|
int |
getItemType()
Gets the graph item type. |
LayoutRelationship |
getLayoutRelationship()
Gets a proxy to this connection that can be used with the Zest layout engine |
Color |
getLineColor()
Returns the color of this connection. |
int |
getLineStyle()
Returns the connection line style. |
int |
getLineWidth()
Returns the connection line width. |
GraphNode |
getSource()
Gets the source node for this relationship |
IFigure |
getTooltip()
Gets the current tooltip for this node. |
double |
getWeightInLayout()
Gets the weight of this connection. |
void |
highlight()
Highlights this node. |
boolean |
isDisposed()
|
boolean |
isHighlighted()
Returns true if this connection is highlighted, false otherwise |
boolean |
isVisible()
Get the visibility of this item. |
void |
setConnectionStyle(int style)
Returns the style of this connection. |
void |
setCurveDepth(int depth)
Sets the curve depth of the arc. |
void |
setFont(Font f)
Sets the font for the label on this connection. |
void |
setHighlightColor(Color color)
Sets the highlight color. |
void |
setLineColor(Color color)
Perminently sets the color of this line to the given color. |
void |
setLineStyle(int lineStyle)
Sets the connection line style. |
void |
setLineWidth(int lineWidth)
Sets the connection line width. |
void |
setText(java.lang.String string)
|
void |
setTooltip(IFigure tooltip)
Sets the tooltip on this node. |
void |
setVisible(boolean visible)
Set the visibility of this item. |
void |
setWeight(double weight)
Sets the weight for this connection. |
java.lang.String |
toString()
Returns a string like 'source -> destination' |
void |
unhighlight()
Unhighlights this node. |
Methods inherited from class org.eclipse.zest.core.widgets.GraphItem |
---|
checkStyle |
Methods inherited from class org.eclipse.swt.widgets.Item |
---|
checkSubclass, getImage, getText, setImage |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphConnection(Graph graphModel, int style, GraphNode source, GraphNode destination)
Method Detail |
---|
public void dispose()
dispose
in class GraphItem
public boolean isDisposed()
isDisposed
in class Widget
public Connection getConnectionFigure()
public LayoutRelationship getLayoutRelationship()
public java.lang.Object getExternalConnection()
public java.lang.String toString()
toString
in class Widget
public int getConnectionStyle()
#ZestStyles
public void setConnectionStyle(int style)
#ZestStyles
public double getWeightInLayout()
org.eclipse.mylar.zest.layouts.LayoutRelationship#getWeightInLayout()
public Font getFont()
public void setFont(Font f)
public void setWeight(double weight)
public Color getLineColor()
public void setHighlightColor(Color color)
color
- the color to use for highlighting.public Color getHighlightColor()
public void setLineColor(Color color)
color
- the color to be set.changeLineColor(Color color)
public void changeLineColor(Color color)
color
- public void setTooltip(IFigure tooltip)
public IFigure getTooltip()
public int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth
- public int getLineStyle()
public void setLineStyle(int lineStyle)
lineStyle
- public GraphNode getSource()
public GraphNode getDestination()
public void highlight()
highlight
in class GraphItem
public void unhighlight()
unhighlight
in class GraphItem
public boolean isHighlighted()
public Graph getGraphModel()
getGraphModel
in class GraphItem
public void setCurveDepth(int depth)
depth
- The depth of the curvepublic int getItemType()
GraphItem
getItemType
in class GraphItem
public void setVisible(boolean visible)
GraphItem
setVisible
in class GraphItem
visible
- whether or not this item is visible.public boolean isVisible()
GraphItem
isVisible
in class GraphItem
public void setText(java.lang.String string)
setText
in class Item
|
Zest 1.5.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |