public interface SpaceLayer
A SpaceLayer renders visuals either in front of or behind those of the SpaceObjects in the SpaceStates to which it is assigned. SpaceLayers are intended to be used to display objects in the foreground or background of a SpaceState's space.
Modifier and Type | Method and Description |
---|---|
void |
renderActions(Graphics g,
long cx,
long cy,
int x,
int y,
int x1,
int y1,
int x2,
int y2)
Actions for this SpaceLayer to take to render its visuals through a
Viewport's camera.
|
void renderActions(Graphics g, long cx, long cy, int x, int y, int x1, int y1, int x2, int y2)
g
- The Graphics context to which this SpaceLayer is rendering its
visuals this framecx
- The camera's center x-coordinatecy
- The camera's center y-coordinatex
- The x-coordinate in pixels on the Graphics context that
corresponds to the camera's center x-coordinatey
- The y-coordinate in pixels on the Graphics context that
corresponds to the camera's center y-coordinatex1
- The x-coordinate in pixels of the Viewport's left edge on the
Graphics contexty1
- The y-coordinate in pixels of the Viewport's top edge on the
Graphics contextx2
- The x-coordinate in pixels of the Viewport's right edge on the
Graphics contexty2
- The y-coordinate in pixels of the Viewport's bottom edge on the
Graphics context