ScreenSpaceCanvas
Package: velox.api.layer1.layers.strategies.interfaces
Type: Interface
Nested Classes​
ScreenSpaceCanvas.BasicCanvasShapeScreenSpaceCanvas.CanvasIconScreenSpaceCanvas.CanvasShape(interface)ScreenSpaceCanvas.CompositeCoordinateBase(enum)ScreenSpaceCanvas.CompositeHorizontalCoordinate- Horizontal coordinate described in universal wayScreenSpaceCanvas.CompositeVerticalCoordinate- Vertical coordinate described in universal wayScreenSpaceCanvas.HorizontalCoordinate(interface)ScreenSpaceCanvas.PreparedImage- Wrapper for an imageScreenSpaceCanvas.RelativeDataHorizontalCoordinate- Horizontal coordinate offset certain number of data levels pointScreenSpaceCanvas.RelativeDataVerticalCoordinate- Vertical coordinate offset certain number of data levels from base pointScreenSpaceCanvas.RelativeHorizontalCoordinate- Horizontal coordinate offset in a certain way relative to base pointScreenSpaceCanvas.RelativePixelHorizontalCoordinate- Horizontal coordinate offset certain number of pixels from base pointScreenSpaceCanvas.RelativePixelVerticalCoordinate- Vertical coordinate offset certain number of pixels from base pointScreenSpaceCanvas.RelativeVerticalCoordinate- Vertical coordinate offset in a certain way relative to base pointScreenSpaceCanvas.VerticalCoordinate(interface)
Methods​
getUniqueId​
long getUniqueId()
dispose​
void dispose()
addShape​
void addShape(ScreenSpaceCanvas.CanvasShape canvasShape)
removeShape​
void removeShape(ScreenSpaceCanvas.CanvasShape canvasShape)
addMouseListener​
void addMouseListener(CanvasMouseListener listener)
Add a mouse listener to this canvas. You can modify shapes based on mouse hover/click, e.g. highlight your icons, scale them up or provide more info at the point of interest.
Parameters:
listener-
addContextMenuProvider​
void addContextMenuProvider(CanvasContextMenuProvider contextMenuProvider)
Allows to add custom menu items into the right-click menu
Parameters:
contextMenuProvider-