ScreenSpaceCanvas.CanvasIcon
Package: velox.api.layer1.layers.strategies.interfaces
Type: Class
Enclosing Interface: ScreenSpaceCanvas
Inheritance​
Inheritance Tree:
- java.lang.Object
- velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.BasicCanvasShape
- velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.CanvasIcon
All Implemented Interfaces: ScreenSpaceCanvas.CanvasShape
Fields​
Fields inherited from class velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.BasicCanvasShape:
uniqueId
Constructors​
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