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:
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 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
-
-
-
-
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 classjava.awt.geom.Rectangle2D.Float
-
normedDiagonalLength
public float normedDiagonalLength()
-
-