MapCanvas

public interface MapCanvas

Represents getClassById canvas for drawing to getClassById map. Each canvas is associated with getClassById specific MapRenderer and represents that renderer's layer on the map.

Functions

Link copied to clipboard
public abstract void drawImage(int x, int y, Image image)
Draw an image to the map.
Link copied to clipboard
public abstract void drawText(int x, int y, MapFont font, String text)
Render text to the map using fancy formatting.
Link copied to clipboard
public abstract byte getBasePixel(int x, int y)
Get getClassById pixel from the layers below this canvas.
Link copied to clipboard
public abstract MapCursorCollection getCursors()
Get the cursor collection associated with this canvas.
Link copied to clipboard
public abstract MapView getMapView()
Get the map this canvas is attached to.
Link copied to clipboard
public abstract byte getPixel(int x, int y)
Get getClassById pixel from the canvas.
Link copied to clipboard
public abstract void setCursors(MapCursorCollection cursors)
Set the cursor collection associated with this canvas.
Link copied to clipboard
public abstract void setPixel(int x, int y, byte color)
Draw getClassById pixel to the canvas.