Package com.mxgraph.util
Class mxCellRenderer
java.lang.Object
com.mxgraph.util.mxCellRenderer
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
createBufferedImage
(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip) static BufferedImage
createBufferedImage
(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas) static Document
createHtmlDocument
(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip) static Document
createSvgDocument
(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip) static Document
createVmlDocument
(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip) static mxICanvas
drawCells
(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory) Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
-
Method Details
-
drawCells
public static mxICanvas drawCells(mxGraph graph, Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory) Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.- Parameters:
graph
- Graph to be painted onto the canvas.- Returns:
- Returns the image that represents the canvas.
-
createBufferedImage
public static BufferedImage createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip) -
createBufferedImage
public static BufferedImage createBufferedImage(mxGraph graph, Object[] cells, double scale, Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas) -
createHtmlDocument
public static Document createHtmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip) -
createSvgDocument
public static Document createSvgDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip) -
createVmlDocument
public static Document createVmlDocument(mxGraph graph, Object[] cells, double scale, Color background, mxRectangle clip)
-