public class ZestLabelProvider extends QueryLabelProvider implements org.eclipse.jface.viewers.IColorProvider, IGraphAttributesProvider2
display
Constructor and Description |
---|
ZestLabelProvider(ViewerState state,
org.eclipse.swt.widgets.Display display) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
org.eclipse.swt.graphics.Color |
getBackground(java.lang.Object entity) |
java.util.Map<java.lang.String,java.lang.Object> |
getEdgeAttributes(java.lang.Object edge)
Determines the attributes that should be set on the edge with the
specified source and target content elements.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEdgeAttributes(java.lang.Object sourceNode,
java.lang.Object targetNode) |
org.eclipse.swt.graphics.Color |
getForeground(java.lang.Object entity) |
java.util.Map<java.lang.String,java.lang.Object> |
getGraphAttributes() |
java.util.Map<java.lang.String,java.lang.Object> |
getNestedGraphAttributes(java.lang.Object nestingNode) |
java.util.Map<java.lang.String,java.lang.Object> |
getNodeAttributes(java.lang.Object node) |
getText
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public ZestLabelProvider(ViewerState state, org.eclipse.swt.widgets.Display display)
public org.eclipse.swt.graphics.Color getBackground(java.lang.Object entity)
getBackground
in interface org.eclipse.jface.viewers.IColorProvider
public org.eclipse.swt.graphics.Color getForeground(java.lang.Object entity)
getForeground
in interface org.eclipse.jface.viewers.IColorProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
in class QueryLabelProvider
public java.util.Map<java.lang.String,java.lang.Object> getEdgeAttributes(java.lang.Object sourceNode, java.lang.Object targetNode)
getEdgeAttributes
in interface org.eclipse.gef.zest.fx.jface.IGraphAttributesProvider
public java.util.Map<java.lang.String,java.lang.Object> getEdgeAttributes(java.lang.Object edge)
IGraphAttributesProvider2
null
can be
returned.getEdgeAttributes
in interface IGraphAttributesProvider2
edge
- A content element representing the edge,
according to the
IGraphEntityRelationshipContentProvider.getEdges(Object, Object)
method.For an overview of the supported attributes.
public java.util.Map<java.lang.String,java.lang.Object> getGraphAttributes()
getGraphAttributes
in interface org.eclipse.gef.zest.fx.jface.IGraphAttributesProvider
public java.util.Map<java.lang.String,java.lang.Object> getNestedGraphAttributes(java.lang.Object nestingNode)
getNestedGraphAttributes
in interface org.eclipse.gef.zest.fx.jface.IGraphAttributesProvider
public java.util.Map<java.lang.String,java.lang.Object> getNodeAttributes(java.lang.Object node)
getNodeAttributes
in interface org.eclipse.gef.zest.fx.jface.IGraphAttributesProvider