|
JGraph X 1.2.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mxgraph.canvas.mxBasicCanvas
com.mxgraph.canvas.mxVmlCanvas
public class mxVmlCanvas
An implementation of a canvas that uses VML for painting.
Field Summary | |
---|---|
protected Document |
document
Holds the HTML document that represents the canvas. |
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas |
---|
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, scale, translate |
Constructor Summary | |
---|---|
mxVmlCanvas()
Constructs a new VML canvas for the specified dimension and scale. |
|
mxVmlCanvas(Document document)
Constructs a new VML canvas for the specified bounds, scale and background color. |
Method Summary | |
---|---|
void |
appendVmlElement(Element node)
|
Object |
drawEdge(List<mxPoint> pts,
Map<String,Object> style)
Draws the given edge. |
Object |
drawLabel(String label,
int x,
int y,
int w,
int h,
Map<String,Object> style,
boolean isHtml)
Draws the given label. |
Element |
drawLine(List<mxPoint> pts,
Map<String,Object> style)
Draws the given lines as segments between all points of the given list of mxPoints. |
Element |
drawShape(int x,
int y,
int w,
int h,
Map<String,Object> style)
Draws the shape specified with the STYLE_SHAPE key in the given style. |
Element |
drawText(String text,
int x,
int y,
int w,
int h,
Map<String,Object> style)
Draws the specified text either using drawHtmlString or using drawString. |
Object |
drawVertex(int x,
int y,
int w,
int h,
Map<String,Object> style)
Draws the given vertex. |
Document |
getDocument()
Returns a reference to the document that represents the canvas. |
void |
setDocument(Document document)
|
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas |
---|
getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, setDrawLabels, setImageBasePath, setScale, setTranslate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Document document
Constructor Detail |
---|
public mxVmlCanvas()
public mxVmlCanvas(Document document)
Method Detail |
---|
public void setDocument(Document document)
public Document getDocument()
public void appendVmlElement(Element node)
public Object drawVertex(int x, int y, int w, int h, Map<String,Object> style)
mxICanvas
x
- X-coordinate of the vertex.y
- Y-coordinate of the vertex.w
- Width of the vertex.h
- Height of the vertex.style
- Style of the vertex.
public Object drawEdge(List<mxPoint> pts, Map<String,Object> style)
mxICanvas
pts
- List of mxPoints that make up the edge.style
- Style of the edge.
public Object drawLabel(String label, int x, int y, int w, int h, Map<String,Object> style, boolean isHtml)
mxICanvas
label
- String that represents the label.x
- X-coordinate of the label.y
- Y-coordinate of the label.w
- Width of the label.h
- Height of the label.style
- Style of the label.isHtml
- Specifies if the label contains HTML markup.
public Element drawShape(int x, int y, int w, int h, Map<String,Object> style)
x
- X-coordinate of the shape.y
- Y-coordinate of the shape.w
- Width of the shape.h
- Height of the shape.style
- Style of the the shape.public Element drawLine(List<mxPoint> pts, Map<String,Object> style)
pts
- List of points that define the line.style
- Style to be used for painting the line.public Element drawText(String text, int x, int y, int w, int h, Map<String,Object> style)
text
- Text to be painted.x
- X-coordinate of the text.y
- Y-coordinate of the text.w
- Width of the text.h
- Height of the text.style
- Style to be used for painting the text.
|
JGraph X 1.2.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |