Package com.github.weisj.jsvg.attributes
Class ViewBox
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Float
com.github.weisj.jsvg.attributes.ViewBox
- All Implemented Interfaces:
Shape
,Serializable
,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, 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 -
Method Summary
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
-
Constructor Details
-
ViewBox
public ViewBox(float[] viewBox) -
ViewBox
public ViewBox(float x, float y, float w, float h) -
ViewBox
public ViewBox(float w, float h) -
ViewBox
-
ViewBox
-
-
Method Details
-
setSize
-
size
-
location
-
hasSpecifiedX
public boolean hasSpecifiedX() -
hasSpecifiedY
public boolean hasSpecifiedY() -
hasSpecifiedWidth
public boolean hasSpecifiedWidth() -
hasSpecifiedHeight
public boolean hasSpecifiedHeight() -
toString
- Overrides:
toString
in classRectangle2D.Float
-
normedDiagonalLength
public float normedDiagonalLength()
-