mxGraph
Public Member Functions | Protected Attributes | Properties | List of all members
com.mxgraph.mxImageCanvas Class Reference

Implements a canvas that draws onto an image. More...

Inheritance diagram for com.mxgraph.mxImageCanvas:
com.mxgraph.mxICanvas

Public Member Functions

 mxImageCanvas (mxGdiCanvas canvas, int width, int height, Color?background, bool antiAlias)
 
Object DrawCell (mxCellState state)
 see com.mxgraph.mxICanvas.DrawCell() More...
 
Object DrawLabel (string text, mxCellState state, bool html)
 see com.mxgraph.mxICanvas.DrawLabel() More...
 
Image Destroy ()
 Destroys this canvas and all allocated resources. More...
 

Protected Attributes

mxGdiCanvas canvas
 Inner canvas used for the actual rendering. More...
 
Graphics previousGraphics
 Stores the previous graphics reference of the inner canvas. More...
 
Image image
 Stores the image that holds the graphics. More...
 

Properties

mxGdiCanvas GdiCanvas [get]
 Returns the inner canvas. More...
 
Image Image [get]
 Returns the image that hold the graphics. More...
 
Point Translate [get, set]
 see com.mxgraph.mxICanvas.Translate More...
 
double Scale [get, set]
 see com.mxgraph.mxICanvas.Translate More...
 
- Properties inherited from com.mxgraph.mxICanvas
Point Translate [get, set]
 Sets or returns the user object of the cell. More...
 
double Scale [get, set]
 Sets or returns the user object of the cell. More...
 

Detailed Description

Implements a canvas that draws onto an image.

Constructor & Destructor Documentation

com.mxgraph.mxImageCanvas.mxImageCanvas ( mxGdiCanvas  canvas,
int  width,
int  height,
Color?  background,
bool  antiAlias 
)
inline

Parameters
canvas
width
height
background
antiAlias

Member Function Documentation

Image com.mxgraph.mxImageCanvas.Destroy ( )
inline

Destroys this canvas and all allocated resources.

Object com.mxgraph.mxImageCanvas.DrawCell ( mxCellState  state)
inline
Object com.mxgraph.mxImageCanvas.DrawLabel ( string  text,
mxCellState  state,
bool  html 
)
inline

Member Data Documentation

mxGdiCanvas com.mxgraph.mxImageCanvas.canvas
protected

Inner canvas used for the actual rendering.

Image com.mxgraph.mxImageCanvas.image
protected

Stores the image that holds the graphics.

Graphics com.mxgraph.mxImageCanvas.previousGraphics
protected

Stores the previous graphics reference of the inner canvas.

Property Documentation

mxGdiCanvas com.mxgraph.mxImageCanvas.GdiCanvas
get

Returns the inner canvas.

Image com.mxgraph.mxImageCanvas.Image
get

Returns the image that hold the graphics.

double com.mxgraph.mxImageCanvas.Scale
getset
Point com.mxgraph.mxImageCanvas.Translate
getset

The documentation for this class was generated from the following file: