Documentation of 'com.mxgraph.shape.mxStencilShape' Java class
mxStencilShape
com.mxgraph.shape

Class mxStencilShape

  • All Implemented Interfaces:
    mxIShape


    public class mxStencilShape
    extends mxBasicShape
    Stencil shape drawing that takes an XML definition of the shape and renders it. See http://projects.gnome.org/dia/custom-shapes for specs. See http://dia-installer.de/shapes_de.html for shapes.
    • Constructor Detail

      • mxStencilShape

        public mxStencilShape()
      • mxStencilShape

        public mxStencilShape(java.lang.String shapeXml)
        Constructs a new stencil for the given Dia shape description.
      • mxStencilShape

        public mxStencilShape(org.w3c.dom.Document document)
    • Method Detail

      • paintNode

        public void paintNode(mxGraphics2DCanvas canvas,
                              mxCellState state,
                              com.mxgraph.shape.mxStencilShape.svgShape shape,
                              double widthRatio,
                              double heightRatio)
      • createShape

        public void createShape(org.w3c.dom.Node root,
                                com.mxgraph.shape.mxStencilShape.svgShape shape)
      • createElement

        public com.mxgraph.shape.mxStencilShape.svgShape createElement(org.w3c.dom.Node root)
        Forms an internal representation of the specified SVG element and returns that representation
        Parameters:
        root - the SVG element to represent
        Returns:
        the internal representation of the element, or null if an error occurs
      • getName

        public java.lang.String getName()
      • setName

        public void setName(java.lang.String name)
      • getIconPath

        public java.lang.String getIconPath()
      • setIconPath

        public void setIconPath(java.lang.String iconPath)
      • getBoundingBox

        public java.awt.geom.Rectangle2D getBoundingBox()
      • setBoundingBox

        public void setBoundingBox(java.awt.geom.Rectangle2D boundingBox)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.