public class ZestLabelProvider extends QueryLabelProvider implements org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider, org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
Constructor and Description |
---|
ZestLabelProvider(ViewerState state,
org.eclipse.swt.widgets.Display display) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
boolean |
fisheyeNode(java.lang.Object entity) |
org.eclipse.swt.graphics.Color |
getBackgroundColour(java.lang.Object entity) |
org.eclipse.swt.graphics.Color |
getBorderColor(java.lang.Object entity) |
org.eclipse.swt.graphics.Color |
getBorderHighlightColor(java.lang.Object entity) |
int |
getBorderWidth(java.lang.Object entity) |
org.eclipse.swt.graphics.Color |
getColor(java.lang.Object rel) |
org.eclipse.gef4.zest.core.widgets.decoration.IConnectionDecorator |
getConnectionDecorator(java.lang.Object rel) |
int |
getConnectionStyle(java.lang.Object rel) |
org.eclipse.swt.graphics.Color |
getForegroundColour(java.lang.Object entity) |
org.eclipse.swt.graphics.Color |
getHighlightColor(java.lang.Object rel) |
int |
getLineWidth(java.lang.Object rel) |
org.eclipse.swt.graphics.Color |
getNodeHighlightColor(java.lang.Object entity) |
org.eclipse.draw2d.ConnectionRouter |
getRouter(java.lang.Object rel) |
org.eclipse.draw2d.IFigure |
getTooltip(java.lang.Object entity) |
getText
addListener, isLabelProperty, removeListener
public ZestLabelProvider(ViewerState state, org.eclipse.swt.widgets.Display display)
public org.eclipse.swt.graphics.Color getNodeHighlightColor(java.lang.Object entity)
getNodeHighlightColor
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public org.eclipse.swt.graphics.Color getBorderColor(java.lang.Object entity)
getBorderColor
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public org.eclipse.swt.graphics.Color getBorderHighlightColor(java.lang.Object entity)
getBorderHighlightColor
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public int getBorderWidth(java.lang.Object entity)
getBorderWidth
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public org.eclipse.swt.graphics.Color getBackgroundColour(java.lang.Object entity)
getBackgroundColour
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public org.eclipse.swt.graphics.Color getForegroundColour(java.lang.Object entity)
getForegroundColour
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public org.eclipse.draw2d.IFigure getTooltip(java.lang.Object entity)
getTooltip
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
getTooltip
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public boolean fisheyeNode(java.lang.Object entity)
fisheyeNode
in interface org.eclipse.gef4.zest.core.viewers.IEntityStyleProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
in interface org.eclipse.ui.services.IDisposable
dispose
in class QueryLabelProvider
public int getConnectionStyle(java.lang.Object rel)
getConnectionStyle
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
public org.eclipse.swt.graphics.Color getColor(java.lang.Object rel)
getColor
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
public org.eclipse.swt.graphics.Color getHighlightColor(java.lang.Object rel)
getHighlightColor
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
public int getLineWidth(java.lang.Object rel)
getLineWidth
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
public org.eclipse.draw2d.ConnectionRouter getRouter(java.lang.Object rel)
getRouter
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider
public org.eclipse.gef4.zest.core.widgets.decoration.IConnectionDecorator getConnectionDecorator(java.lang.Object rel)
getConnectionDecorator
in interface org.eclipse.gef4.zest.core.viewers.IConnectionStyleProvider