Package snap.gfx
Class ImageBox
java.lang.Object
snap.geom.Shape
snap.geom.RectBase
snap.geom.RoundRect
snap.gfx.ImageBox
- All Implemented Interfaces:
Cloneable
A class to manage an image rendered in a rectangular area.
-
Field Summary
Fields inherited from class snap.geom.Shape
_bounds, WIND_EVEN_ODD, WIND_NON_ZERO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetImage()
Returns the image.Returns the image bounds.void
paintImageBox
(Painter aPntr, double aX, double aY) Paints the image box at given point.void
setImageBounds
(double aX, double aY, double aW, double aH) Sets the image bounds.void
setImageBounds
(Rect aRect) Sets the image bounds.Methods inherited from class snap.geom.RoundRect
copyForCorners, copyForPosition, copyForRadius, equals, getPathIter, getRadius, hashCode, setRadius
Methods inherited from class snap.geom.RectBase
clone, copyFor, copyFor, equals, getBoundsImpl, getHeight, getMaxX, getMaxY, getMidX, getMidY, getMinX, getMinY, getSize, getSvgString, getWidth, getX, getXY, getY, inset, inset, inset, isEmpty, offset, setCenteredXY, setHeight, setRect, setRect, setSize, setWidth, setX, setXY, setY, toString
Methods inherited from class snap.geom.Shape
addShapes, contains, contains, contains, contains, containsSeg, copyForBounds, crossesSeg, getArcLength, getBounds, getCrossings, getDistance, getFlattenedShape, getFlattenedShape, getNotSelfIntersectingShape, intersectShapes, intersectsSeg, intersectsShape, intersectsShape, intersectsXY, isClosed, isFlat, isMultiCycle, isSelfIntersecting, isSingleCycle, shapeChanged, subtractShapes
-
Constructor Details
-
ImageBox
Constructor. -
ImageBox
Constructor. -
ImageBox
Constructor. -
ImageBox
Constructor.
-
-
Method Details
-
getImage
Returns the image. -
getImageBounds
Returns the image bounds. -
setImageBounds
Sets the image bounds. -
setImageBounds
public void setImageBounds(double aX, double aY, double aW, double aH) Sets the image bounds. -
paintImageBox
Paints the image box at given point.
-