Documentation of 'org.jhotdraw.samples.svg.io.DefaultSVGFigureFactory' Java class
DefaultSVGFigureFactory
org.jhotdraw.samples.svg.io

Class DefaultSVGFigureFactory

  • All Implemented Interfaces:
    SVGFigureFactory


    public class DefaultSVGFigureFactory
    extends java.lang.Object
    implements SVGFigureFactory
    DefaultSVGFigureFactory.
    • Constructor Detail

      • DefaultSVGFigureFactory

        public DefaultSVGFigureFactory()
        Creates a new instance.
    • Method Detail

      • createImage

        public Figure createImage(double x,
                                  double y,
                                  double w,
                                  double h,
                                  byte[] imageData,
                                  java.awt.image.BufferedImage bufferedImage,
                                  java.util.Map<AttributeKey,java.lang.Object> a)
        Description copied from interface: SVGFigureFactory
        Creates a Figure from an image element.
        Specified by:
        createImage in interface SVGFigureFactory
        Parameters:
        x - The x coordinate.
        y - The y coordinate.
        w - The width.
        h - The height.
        imageData - Holds the image data. Can be null, if the buffered image has not been created from a file.
        bufferedImage - Holds the buffered image. Can be null, if the image data has not been interpreted.
        a - Figure attributes.
      • createTextArea

        public Figure createTextArea(double x,
                                     double y,
                                     double w,
                                     double h,
                                     javax.swing.text.StyledDocument doc,
                                     java.util.Map<AttributeKey,java.lang.Object> attributes)
        Specified by:
        createTextArea in interface SVGFigureFactory
      • createText

        public Figure createText(java.awt.geom.Point2D.Double[] coordinates,
                                 double[] rotates,
                                 javax.swing.text.StyledDocument text,
                                 java.util.Map<AttributeKey,java.lang.Object> a)
        Specified by:
        createText in interface SVGFigureFactory
      • createRadialGradient

        public Gradient createRadialGradient(double cx,
                                             double cy,
                                             double fx,
                                             double fy,
                                             double r,
                                             double[] stopOffsets,
                                             java.awt.Color[] stopColors,
                                             double[] stopOpacities,
                                             boolean isRelativeToFigureBounds,
                                             java.awt.geom.AffineTransform tx)
        Specified by:
        createRadialGradient in interface SVGFigureFactory
      • createLinearGradient

        public Gradient createLinearGradient(double x1,
                                             double y1,
                                             double x2,
                                             double y2,
                                             double[] stopOffsets,
                                             java.awt.Color[] stopColors,
                                             double[] stopOpacities,
                                             boolean isRelativeToFigureBounds,
                                             java.awt.geom.AffineTransform tx)
        Specified by:
        createLinearGradient in interface SVGFigureFactory

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.