Class ViewBox

  • All Implemented Interfaces:
    java.awt.Shape, java.io.Serializable, java.lang.Cloneable

    public final class ViewBox
    extends java.awt.geom.Rectangle2D.Float
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D

        java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
    • Field Summary

      • Fields inherited from class java.awt.geom.Rectangle2D.Float

        height, width, x, y
      • Fields inherited from class java.awt.geom.Rectangle2D

        OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewBox​(float[] viewBox)  
      ViewBox​(float w, float h)  
      ViewBox​(float x, float y, float w, float h)  
      ViewBox​(@NotNull java.awt.geom.Rectangle2D bounds)  
      ViewBox​(FloatSize size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasSpecifiedHeight()  
      boolean hasSpecifiedWidth()  
      boolean hasSpecifiedX()  
      boolean hasSpecifiedY()  
      java.awt.geom.Point2D.Float location()  
      float normedDiagonalLength()  
      void setSize​(@NotNull FloatSize size)  
      @NotNull FloatSize size()  
      java.lang.String toString()  
      • Methods inherited from class java.awt.geom.Rectangle2D.Float

        createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, setRect
      • Methods inherited from class java.awt.geom.Rectangle2D

        add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
      • Methods inherited from class java.awt.geom.RectangularShape

        clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ViewBox

        public ViewBox​(float[] viewBox)
      • ViewBox

        public ViewBox​(float x,
                       float y,
                       float w,
                       float h)
      • ViewBox

        public ViewBox​(float w,
                       float h)
      • ViewBox

        public ViewBox​(FloatSize size)
      • ViewBox

        public ViewBox​(@NotNull
                       @NotNull java.awt.geom.Rectangle2D bounds)
    • Method Detail

      • setSize

        public void setSize​(@NotNull
                            @NotNull FloatSize size)
      • size

        @NotNull
        public @NotNull FloatSize size()
      • location

        @NotNull
        public java.awt.geom.Point2D.Float location()
      • hasSpecifiedX

        public boolean hasSpecifiedX()
      • hasSpecifiedY

        public boolean hasSpecifiedY()
      • hasSpecifiedWidth

        public boolean hasSpecifiedWidth()
      • hasSpecifiedHeight

        public boolean hasSpecifiedHeight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.awt.geom.Rectangle2D.Float
      • normedDiagonalLength

        public float normedDiagonalLength()