Class Drawing

  • All Implemented Interfaces:
    Visual

    public class Drawing
    extends Image
    Image encapsulating an SVG diagram.
    • Constructor Detail

      • Drawing

        public Drawing​(com.kitfox.svg.SVGDiagram diagram)
    • Method Detail

      • getDiagram

        public com.kitfox.svg.SVGDiagram getDiagram()
      • getWidth

        public int getWidth()
        Description copied from interface: Visual
        Returns the visual's width.
        Returns:
        Current width of this visual.
      • getHeight

        public int getHeight()
        Description copied from interface: Visual
        Returns the visual's height.
        Returns:
        Current height of this visual.
      • setSize

        public void setSize​(int width,
                            int height)
      • paint

        public void paint​(java.awt.Graphics2D graphics)
        Description copied from interface: Visual
        Paints the visual.
        Parameters:
        graphics - The graphics context in which to paint the visual.