Package paintingcanvas
Class InternalCanvas
- java.lang.Object
-
- paintingcanvas.InternalCanvas
-
public class InternalCanvas extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<Animation>
animations
the list of animations that are currently runningstatic java.lang.Object
animationSync
Sync with animations: Notifies on animation finishstatic Canvas
canvas
static java.lang.Object
drawableSync
Sync with drawables: Use when modifying a drawablestatic ElementContainer
elements
the elements that are currently on the canvasstatic int
frame
The current framestatic java.lang.Object
frameSync
Sync with frame: Notifies on end of framestatic boolean
initialized
Whether this has been initialized yetstatic java.util.HashSet<java.lang.Integer>
keysHeld
A set of keys that are currently pressed down.static java.util.Vector<Tuple<java.awt.event.MouseEvent,java.lang.Integer>>
mouseClickEvents
The list of mouse clicked events that have been firedstatic java.awt.Point
mousePosition
The current mouse position on the canvas, if anything.static CanvasOptions
options
The options for the behavior of the canvas, seeCanvasOptions
static CanvasPanel
panel
A CanvasComponent, which handles all the rendering n stuffstatic java.util.List<RenderLifecycle>
renderLifecycles
The RenderLifecycle: allows you to write code to run before and after a frame is renderedstatic java.awt.Dimension
startSize
the initial size of the Canvasstatic java.awt.geom.Point2D.Float
translation
The translation of the canvas, used for centering and panningstatic java.lang.Object
translationSync
Sync for translation: Use when modifying the translation
-
Constructor Summary
Constructors Constructor Description InternalCanvas()
-
-
-
Field Detail
-
drawableSync
public static final java.lang.Object drawableSync
Sync with drawables: Use when modifying a drawable
-
animationSync
public static final java.lang.Object animationSync
Sync with animations: Notifies on animation finish
-
frameSync
public static final java.lang.Object frameSync
Sync with frame: Notifies on end of frame
-
elements
public static final ElementContainer elements
the elements that are currently on the canvas
-
animations
public static final java.util.List<Animation> animations
the list of animations that are currently running
-
frame
public static int frame
The current frame
-
renderLifecycles
public static java.util.List<RenderLifecycle> renderLifecycles
The RenderLifecycle: allows you to write code to run before and after a frame is rendered
-
initialized
public static boolean initialized
Whether this has been initialized yet
-
startSize
public static java.awt.Dimension startSize
the initial size of the Canvas
-
translation
public static java.awt.geom.Point2D.Float translation
The translation of the canvas, used for centering and panning
-
translationSync
public static final java.lang.Object translationSync
Sync for translation: Use when modifying the translation
-
mousePosition
public static java.awt.Point mousePosition
The current mouse position on the canvas, if anything.
-
mouseClickEvents
public static final java.util.Vector<Tuple<java.awt.event.MouseEvent,java.lang.Integer>> mouseClickEvents
The list of mouse clicked events that have been fired
-
keysHeld
public static final java.util.HashSet<java.lang.Integer> keysHeld
A set of keys that are currently pressed down.
-
options
public static CanvasOptions options
The options for the behavior of the canvas, seeCanvasOptions
-
panel
public static CanvasPanel panel
A CanvasComponent, which handles all the rendering n stuff
-
canvas
public static Canvas canvas
-
-