public abstract class GraphRenderer
extends com.mxgraph.swing.view.mxInteractiveCanvas
implements de.ims.icarus.util.Installable
Constructor and Description |
---|
GraphRenderer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertValueToString(GraphOwner owner,
java.lang.Object cell)
Generates a label for the given cell.
|
com.mxgraph.util.mxRectangle |
getPreferredSizeForCell(GraphOwner owner,
java.lang.Object cell)
Calculates the required size of the given cell.
|
java.lang.String |
getToolTipForCell(GraphOwner owner,
java.lang.Object cell)
Generates a tool-tip text for the given cell.
|
contains, drawImageImpl, getImageObserver, getImageSize, hitSwimlaneContent, intersects, setImageObserver
createFillPaint, createStroke, createTemporaryGraphics, drawCell, drawImage, drawImage, drawLabel, fillShape, fillShape, getGraphics, getRendererPane, getShape, getTextShape, paintPolyline, paintRectangle, putShape, putTextShape, setGraphics
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
public com.mxgraph.util.mxRectangle getPreferredSizeForCell(GraphOwner owner, java.lang.Object cell)
null
should be returned. This tells
the graph to compute the preferred size based on the
cell's label text. Note that delegating to the mxGraph.getPreferredSizeForCell(Object)
method in the supplied GraphOwner
's graph might cause
an infinite loop when said graph is using this GraphRenderer
object!
The default implementation returns null
;
public java.lang.String convertValueToString(GraphOwner owner, java.lang.Object cell)
The default implementation uses the Object.toString()
method
of the cell's value if available or returns the empty string
if the value is null
;
public java.lang.String getToolTipForCell(GraphOwner owner, java.lang.Object cell)
The default implementation delegates to convertValueToString(GraphOwner, Object)