Package org.jfree.svg

Class ViewBox


  • public class ViewBox
    extends java.lang.Object
    Represents a view box in SVG.
    Since:
    3.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double height  
      private double minX  
      private double minY  
      private double width  
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewBox​(double minX, double minY, double width, double height)
      Creates a new instance with the specified dimensions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String valueStr​(java.util.function.DoubleFunction<java.lang.String> df)
      Returns a string containing the view box coordinates and dimensions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • minX

        private final double minX
      • minY

        private final double minY
      • width

        private final double width
      • height

        private final double height
    • Constructor Detail

      • ViewBox

        public ViewBox​(double minX,
                       double minY,
                       double width,
                       double height)
        Creates a new instance with the specified dimensions.
        Parameters:
        minX - the x coordinate.
        minY - the y coordinate.
        width - the width.
        height - the height.
    • Method Detail

      • valueStr

        public java.lang.String valueStr​(java.util.function.DoubleFunction<java.lang.String> df)
        Returns a string containing the view box coordinates and dimensions.
        Parameters:
        df - the converter function (null not permitted).
        Returns:
        A string containing the view box coordinates and dimensions.