Class mxGraphViewImageReader

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class mxGraphViewImageReader extends mxGraphViewReader
A converter that renders display XML data onto a graphics canvas. This reader can only be used to generate images for encoded graph views.
  • Field Details

    • background

      protected Color background
      Specifies the background color. Default is null.
    • antiAlias

      protected boolean antiAlias
      Specifies if the image should be anti-aliased. Default is true.
    • border

      protected int border
      Specifies the border which is added to the size of the graph. Default is 0.
    • cropping

      protected boolean cropping
      Specifies the border which is added to the size of the graph. Default is true.
    • clip

      protected mxRectangle clip
      Defines the clip to be drawn. Default is null.
  • Constructor Details

    • mxGraphViewImageReader

      public mxGraphViewImageReader()
      Constructs a new reader with a transparent background.
    • mxGraphViewImageReader

      public mxGraphViewImageReader(Color background)
      Constructs a new reader with the given background color.
    • mxGraphViewImageReader

      public mxGraphViewImageReader(Color background, int border)
      Constructs a new reader with a transparent background.
    • mxGraphViewImageReader

      public mxGraphViewImageReader(Color background, int border, boolean antiAlias)
      Constructs a new reader with a transparent background.
    • mxGraphViewImageReader

      public mxGraphViewImageReader(Color background, int border, boolean antiAlias, boolean cropping)
      Constructs a new reader with a transparent background.
  • Method Details