Class ScreenSpaceCanvas.CanvasIcon
java.lang.Object
velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.BasicCanvasShape
velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.CanvasIcon
- All Implemented Interfaces:
ScreenSpaceCanvas.CanvasShape
- Enclosing interface:
ScreenSpaceCanvas
-
Field Summary
Fields inherited from class velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.BasicCanvasShape
uniqueId -
Constructor Summary
ConstructorsConstructorDescriptionCanvasIcon(ScreenSpaceCanvas.PreparedImage image, ScreenSpaceCanvas.HorizontalCoordinate x1, ScreenSpaceCanvas.VerticalCoordinate y1, ScreenSpaceCanvas.HorizontalCoordinate x2, ScreenSpaceCanvas.VerticalCoordinate y2) Creates new icon with specified coordinates and texture (can be changed later) -
Method Summary
Methods inherited from class velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.BasicCanvasShape
getUniqueId, publishChange, setShapeListener
-
Constructor Details
-
CanvasIcon
public CanvasIcon(ScreenSpaceCanvas.PreparedImage image, ScreenSpaceCanvas.HorizontalCoordinate x1, ScreenSpaceCanvas.VerticalCoordinate y1, ScreenSpaceCanvas.HorizontalCoordinate x2, ScreenSpaceCanvas.VerticalCoordinate y2) Creates new icon with specified coordinates and texture (can be changed later)- Parameters:
image- image to use as texture for iconx1- horizontal coordinate of bottom left cornery1- vertical coordinate of bottom left cornerx2- horizontal coordinate of top right cornery2- vertical coordinate of top right corner
-
-
Method Details
-
getImage
-
getX1
-
getY1
-
getX2
-
getY2
-
copy
Description copied from interface:ScreenSpaceCanvas.CanvasShapeMake a copy of a shape. Copy must be made in a way that guarantees that copy won't change on itself during normal use -
setImage
-
setX1
-
setX2
-
setY1
-
setY2
-