|
JGraph X 1.0.2.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.mxgraph.reader.mxGraphViewReader
public abstract class mxGraphViewReader
An abstract converter that renders display XML data onto a canvas.
Field Summary | |
---|---|
protected mxICanvas |
canvas
Holds the canvas to be used for rendering the graph. |
protected boolean |
htmlLabels
Specifies if labels should be rendered as HTML markup. |
protected double |
scale
Holds the global scale of the graph. |
Constructor Summary | |
---|---|
mxGraphViewReader()
|
Method Summary | |
---|---|
abstract mxICanvas |
createCanvas(Hashtable attrs)
Returns the canvas to be used for rendering. |
void |
drawEdge(Hashtable attrs)
Draws the specified edge using the canvas. |
void |
drawLabel(boolean isEdge,
Hashtable attrs)
Draws the specified label using the canvas. |
void |
drawVertex(Hashtable attrs)
Draws the specified vertex using the canvas. |
mxICanvas |
getCanvas()
Returns the canvas that is used for rendering the graph. |
boolean |
isHtmlLabels()
Returns the htmlLabels switch. |
void |
parseElement(String tagName,
Hashtable attrs)
Parses the given element and paints it onto the canvas. |
static List |
parsePoints(String pts)
Parses the list of points into an object-oriented representation. |
void |
setHtmlLabels(boolean value)
Sets the htmlLabels switch. |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected mxICanvas canvas
protected double scale
protected boolean htmlLabels
Constructor Detail |
---|
public mxGraphViewReader()
Method Detail |
---|
public void setHtmlLabels(boolean value)
public boolean isHtmlLabels()
public abstract mxICanvas createCanvas(Hashtable attrs)
attrs
- Specifies the attributes of the new canvas.
public mxICanvas getCanvas()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void parseElement(String tagName, Hashtable attrs)
tagName
- Name of the node to be parsed.attrs
- Attributes of the node to be parsed.public void drawVertex(Hashtable attrs)
attrs
- Specifies the attributes of the vertex.public void drawEdge(Hashtable attrs)
attrs
- Specifies the attribute of the edge.public void drawLabel(boolean isEdge, Hashtable attrs)
attrs
- Specifies the attributes of the label.public static List parsePoints(String pts)
pts
- String containing a list of points.
|
JGraph X 1.0.2.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |