Interface ScreenSpaceCanvas
public interface ScreenSpaceCanvas
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic interfacestatic enumstatic classHorizontal coordinate described in universal way.static classVertical coordinate described in universal way.static interfacestatic classWrapper for an image.static classHorizontal coordinate offset certain number of data levels pointstatic classVertical coordinate offset certain number of data levels from base pointstatic classHorizontal coordinate offset in a certain way relative to base pointstatic classHorizontal coordinate offset certain number of pixels from base pointstatic classVertical coordinate offset certain number of pixels from base pointstatic classVertical coordinate offset in a certain way relative to base pointstatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextMenuProvider(CanvasContextMenuProvider contextMenuProvider) Allows to add custom menu items into the right-click menuvoidaddMouseListener(CanvasMouseListener listener) Add a mouse listener to this canvas.voidaddShape(ScreenSpaceCanvas.CanvasShape canvasShape) voiddispose()longvoidremoveShape(ScreenSpaceCanvas.CanvasShape canvasShape)
-
Method Details
-
getUniqueId
long getUniqueId() -
dispose
void dispose() -
addShape
-
removeShape
-
addMouseListener
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
Allows to add custom menu items into the right-click menu- Parameters:
contextMenuProvider-
-