Documentation of 'com.mxgraph.reader.mxGraphViewReader' Java class
mxGraphViewReader
com.mxgraph.reader

Class mxGraphViewReader

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
    Direct Known Subclasses:
    mxGraphViewImageReader


    public abstract class mxGraphViewReader
    extends org.xml.sax.helpers.DefaultHandler
    An abstract converter that renders display XML data onto a canvas.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract mxICanvas createCanvas(java.util.Map<java.lang.String,java.lang.Object> attrs)
      Returns the canvas to be used for rendering.
      mxICanvas getCanvas()
      Returns the canvas that is used for rendering the graph.
      boolean isHtmlLabels()
      Returns the htmlLabels switch.
      void parseElement(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.Object> attrs)
      Parses the given element and paints it onto the canvas.
      static java.util.List<mxPoint> parsePoints(java.lang.String pts)
      Parses the list of points into an object-oriented representation.
      java.lang.String parseState(mxCellState state, boolean edge)
      Parses the bounds, absolute points and label information from the style of the state into its respective fields and returns the label of the cell.
      void setHtmlLabels(boolean value)
      Sets the htmlLabels switch.
      void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • mxGraphViewReader

        public mxGraphViewReader()
    • Method Detail

      • setHtmlLabels

        public void setHtmlLabels(boolean value)
        Sets the htmlLabels switch.
      • isHtmlLabels

        public boolean isHtmlLabels()
        Returns the htmlLabels switch.
      • createCanvas

        public abstract mxICanvas createCanvas(java.util.Map<java.lang.String,java.lang.Object> attrs)
        Returns the canvas to be used for rendering.
        Parameters:
        attrs - Specifies the attributes of the new canvas.
        Returns:
        Returns a new canvas.
      • getCanvas

        public mxICanvas getCanvas()
        Returns the canvas that is used for rendering the graph.
        Returns:
        Returns the canvas.
      • startElement

        public void startElement(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes atts)
                          throws org.xml.sax.SAXException
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • parseElement

        public void parseElement(java.lang.String tagName,
                                 java.util.Map<java.lang.String,java.lang.Object> attrs)
        Parses the given element and paints it onto the canvas.
        Parameters:
        tagName - Name of the node to be parsed.
        attrs - Attributes of the node to be parsed.
      • parseState

        public java.lang.String parseState(mxCellState state,
                                           boolean edge)
        Parses the bounds, absolute points and label information from the style of the state into its respective fields and returns the label of the cell.
      • parsePoints

        public static java.util.List<mxPoint> parsePoints(java.lang.String pts)
        Parses the list of points into an object-oriented representation.
        Parameters:
        pts - String containing a list of points.
        Returns:
        Returns the points as a list of mxPoints.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.