- java.lang.Object
-
- java.awt.geom.RectangularShape
-
- java.awt.geom.Rectangle2D
-
- java.awt.geom.Rectangle2D.Float
-
- com.github.weisj.jsvg.view.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasSpecifiedHeight()booleanhasSpecifiedWidth()booleanhasSpecifiedX()booleanhasSpecifiedY()java.awt.geom.Point2D.Floatlocation()voidsetSize(@NotNull FloatSize size)@NotNull FloatSizesize()@NotNull java.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
ViewBox
public ViewBox(float @NotNull [] viewBox)
-
ViewBox
public ViewBox(float x, float y, float w, float h)
-
ViewBox
public ViewBox(float w, float h)
-
ViewBox
public ViewBox(@NotNull @NotNull 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
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.awt.geom.Rectangle2D.Float
-
-