A B C D E F G H I J L M N O P Q R S T U V W Y Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(Animation, double) - Method in class paintingcanvas.animation.AnimationBuilder
-
Add a new animation to the element.
- add(Animation, double, TimeUnit) - Method in class paintingcanvas.animation.AnimationBuilder
-
Add a new animation to the element.
- Amber - paintingcanvas.misc.Hue
- Animatable - Interface in paintingcanvas.animation
-
An interface to call animation methods on animatable objects.
- animate() - Method in class paintingcanvas.drawable.Drawable
-
Start animating this object.
- Animation - Class in paintingcanvas.animation
-
A class that stores information about animations transitions
- Animation() - Constructor for class paintingcanvas.animation.Animation
- Animation(int, int) - Constructor for class paintingcanvas.animation.Animation
- AnimationBuilder - Class in paintingcanvas.animation
-
A builder used to add animations to an element.
- AnimationBuilder(Drawable<?>) - Constructor for class paintingcanvas.animation.AnimationBuilder
- animations - Variable in class paintingcanvas.canvas.Canvas
-
the list of animations that are currently running
- animationSync - Variable in class paintingcanvas.canvas.Canvas
-
Sync with animations: Notifies on animation finish
- antiAlias - Variable in class paintingcanvas.canvas.CanvasOptions
-
Whether to do antialiasing when drawing shapes
- AntiAliasingLifecycle() - Constructor for class paintingcanvas.canvas.RenderLifecycle.AntiAliasingLifecycle
- asFrames(double) - Method in enum paintingcanvas.misc.TimeUnit
-
Get the number of frames in
time
units. - attach() - Method in class paintingcanvas.extensions.FrameCounter
-
Adds system to the default static canvas.
- attach() - Method in class paintingcanvas.extensions.InfoDisplay
- attach() - Method in class paintingcanvas.extensions.Recorder
- autoAdd - Variable in class paintingcanvas.canvas.CanvasOptions
-
Whether to automatically add
Drawable
's upon construction / instantiation. - autoCenter - Variable in class paintingcanvas.canvas.CanvasOptions
-
Whether to automatically center what's on screen whenever the screen is resized
B
- backgroundColor - Variable in class paintingcanvas.canvas.CanvasOptions
-
The background color of the canvas
- Black - paintingcanvas.misc.Hue
- Blue - paintingcanvas.misc.Hue
C
- canvas - Variable in class paintingcanvas.canvas.CanvasPanel
- Canvas - Class in paintingcanvas.canvas
-
The internal canvas component that is used to draw to the screen
- Canvas() - Constructor for class paintingcanvas.canvas.Canvas
-
Initializes the canvas with a default size of 900x600 and a title of "Canvas"
- Canvas(int, int, String) - Constructor for class paintingcanvas.canvas.Canvas
-
Initializes the canvas
- Canvas(int, int, String, CanvasOptions) - Constructor for class paintingcanvas.canvas.Canvas
-
Initializes the canvas
- CanvasOptions - Class in paintingcanvas.canvas
-
A list of options that control the behavior of the canvas
- CanvasOptions() - Constructor for class paintingcanvas.canvas.CanvasOptions
- CanvasPanel - Class in paintingcanvas.canvas
-
Internal class that extends JPanel that does the initial setup of the JFrame
- center(Graphics) - Method in class paintingcanvas.drawable.Circle
- center(Graphics) - Method in class paintingcanvas.drawable.Drawable
-
Get the object's centerpoint
- center(Graphics) - Method in class paintingcanvas.drawable.Line
- center(Graphics) - Method in class paintingcanvas.drawable.Path
- center(Graphics) - Method in class paintingcanvas.drawable.Polygon
- center(Graphics) - Method in class paintingcanvas.drawable.Text
- CenteringLifecycle() - Constructor for class paintingcanvas.canvas.RenderLifecycle.CenteringLifecycle
- Circle - Class in paintingcanvas.drawable
-
A Circle element.
- Circle(int, int, int) - Constructor for class paintingcanvas.drawable.Circle
-
Create a new Circle element.
- Circle(int, int, int, Color) - Constructor for class paintingcanvas.drawable.Circle
-
Create a new Circle element with a specified
Color
. - Circle(int, int, int, String) - Constructor for class paintingcanvas.drawable.Circle
-
Create a new Circle element with a certain color by name (see
Hue
for list of all valid names) - clamp(N, N, N) - Static method in class paintingcanvas.misc.Misc
- ColorAnimation - Class in paintingcanvas.animation
-
Controls animation that is to do with colors
- ColorAnimation(Color) - Constructor for class paintingcanvas.animation.ColorAnimation
- colorTo(int) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that changes the color of
this
to the specifiedcolor
overduration
seconds. - colorTo(int, double) - Method in interface paintingcanvas.animation.Animatable
-
Change the color of
this
to the specifiedcolor
overduration
seconds. - colorTo(int, int, int) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that changes the color of
this
to the specifiedcolor
overduration
seconds. - colorTo(int, int, int, double) - Method in interface paintingcanvas.animation.Animatable
-
Change the color of
this
to the specifiedcolor
overduration
seconds. - colorTo(Color) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that changes the color of
this
to the specifiedcolor
overduration
seconds. - colorTo(Color, double) - Method in interface paintingcanvas.animation.Animatable
-
Change the color of
this
to the specifiedcolor
overduration
seconds. - componentResized(ComponentEvent) - Method in class paintingcanvas.canvas.RenderLifecycle.ResizeListener
- copy() - Method in class paintingcanvas.animation.Animation
- copy() - Method in class paintingcanvas.animation.ColorAnimation
- copy() - Method in class paintingcanvas.animation.MovementAnimation
- copy() - Method in class paintingcanvas.animation.OpacityAnimation
- copy() - Method in class paintingcanvas.animation.RotationAnimation
- cursorTo(int, int) - Method in class paintingcanvas.drawable.Path
-
Move the cursor to a new position
- curveTo(int, int, int, int, int, int) - Method in class paintingcanvas.drawable.Path
-
Make a cubic curve from the current cursor position to a new position.
- Cyan - paintingcanvas.misc.Hue
D
- dataPoints(int) - Method in class paintingcanvas.extensions.FrameCounter
-
The number of data points used for the FPS and FrameTime text / FrameTime graph.
- drawable - Variable in class paintingcanvas.animation.AnimationBuilder
- drawable() - Method in interface paintingcanvas.animation.Animatable
-
Get the
Drawable
element from thisAnimatable
. - drawable() - Method in class paintingcanvas.drawable.Drawable
- Drawable<T extends Drawable<T>> - Class in paintingcanvas.drawable
-
An interface to connect to any objects that can be considered "painter.drawable.Drawable".
- drawableSync - Static variable in class paintingcanvas.canvas.Canvas
-
Sync with drawables: Use when modifying a drawable
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Circle
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Drawable
-
the color is set to `color`
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Ellipse
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Image
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Line
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Path
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Polygon
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Rectangle
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Square
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Text
- drawFilled(Graphics2D) - Method in class paintingcanvas.drawable.Triangle
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Circle
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Drawable
-
the color is set to `outlineColor`, the stroke is set to `outlineStroke`
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Ellipse
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Image
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Line
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Path
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Polygon
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Rectangle
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Square
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Text
- drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Triangle
- duration - Variable in class paintingcanvas.animation.Animation
-
The length of the animation in frames
E
- ease(double) - Method in interface paintingcanvas.animation.Easing
- easeIn(double) - Static method in interface paintingcanvas.animation.Easing
-
easeIn: Start out slow then accelerate up
- easeInBack() - Static method in interface paintingcanvas.animation.Easing
- easeInBounce() - Static method in interface paintingcanvas.animation.Easing
- easeInCirc() - Static method in interface paintingcanvas.animation.Easing
- easeInCubic() - Static method in interface paintingcanvas.animation.Easing
- easeInElastic() - Static method in interface paintingcanvas.animation.Easing
- easeInExpo() - Static method in interface paintingcanvas.animation.Easing
- easeInOut(double) - Static method in interface paintingcanvas.animation.Easing
-
easeInOut: Accelerate up then slow down
- easeInOutBack() - Static method in interface paintingcanvas.animation.Easing
- easeInOutBounce() - Static method in interface paintingcanvas.animation.Easing
- easeInOutCirc() - Static method in interface paintingcanvas.animation.Easing
- easeInOutCubic() - Static method in interface paintingcanvas.animation.Easing
- easeInOutElastic() - Static method in interface paintingcanvas.animation.Easing
- easeInOutExpo() - Static method in interface paintingcanvas.animation.Easing
- easeInOutQuad() - Static method in interface paintingcanvas.animation.Easing
- easeInOutQuart() - Static method in interface paintingcanvas.animation.Easing
- easeInOutQuint() - Static method in interface paintingcanvas.animation.Easing
- easeInOutSine() - Static method in interface paintingcanvas.animation.Easing
- easeInQuad() - Static method in interface paintingcanvas.animation.Easing
- easeInQuart() - Static method in interface paintingcanvas.animation.Easing
- easeInQuint() - Static method in interface paintingcanvas.animation.Easing
- easeInSine() - Static method in interface paintingcanvas.animation.Easing
- easeOut(double) - Static method in interface paintingcanvas.animation.Easing
-
easeOut: Start out fast then Slow down
- easeOutBack() - Static method in interface paintingcanvas.animation.Easing
- easeOutBounce() - Static method in interface paintingcanvas.animation.Easing
- easeOutCirc() - Static method in interface paintingcanvas.animation.Easing
- easeOutCubic() - Static method in interface paintingcanvas.animation.Easing
- easeOutElastic() - Static method in interface paintingcanvas.animation.Easing
- easeOutExpo() - Static method in interface paintingcanvas.animation.Easing
- easeOutQuad() - Static method in interface paintingcanvas.animation.Easing
- easeOutQuart() - Static method in interface paintingcanvas.animation.Easing
- easeOutQuint() - Static method in interface paintingcanvas.animation.Easing
- easeOutSine() - Static method in interface paintingcanvas.animation.Easing
- easing - Variable in class paintingcanvas.animation.Animation
-
The easing function to use
- easing(Easing) - Method in class paintingcanvas.animation.Animation
-
Sets the easing to be used by this animation
- Easing - Interface in paintingcanvas.animation
-
Special easing animations for animations.
- elements - Variable in class paintingcanvas.canvas.Canvas
-
the elements that are currently on the canvas
- Ellipse - Class in paintingcanvas.drawable
-
An ellipse element.
- Ellipse(int, int, int, int) - Constructor for class paintingcanvas.drawable.Ellipse
-
Create a new Ellipse element.
- Ellipse(int, int, int, int, Color) - Constructor for class paintingcanvas.drawable.Ellipse
-
Create a new Ellipse element.
- Ellipse(int, int, int, int, String) - Constructor for class paintingcanvas.drawable.Ellipse
-
Create a new Ellipse element with a certain color by name (see
Hue
for list of all valid names) - Emerald - paintingcanvas.misc.Hue
- enabled(boolean) - Method in class paintingcanvas.extensions.FrameCounter
-
Enabled by default.
- end - Variable in class paintingcanvas.animation.MovementAnimation
- end - Variable in class paintingcanvas.animation.OpacityAnimation
- end - Variable in class paintingcanvas.animation.RotationAnimation
- ended(int) - Method in class paintingcanvas.animation.Animation
- endOffset - Variable in class paintingcanvas.drawable.Line
-
The offset of the endpoint from the startpoint (x, y)
- equality(N, N, N) - Static method in class paintingcanvas.misc.Misc
- erase() - Method in class paintingcanvas.drawable.Drawable
-
Erase this object from the canvas.
F
- fadeIn() - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that fades
this
in over @{code duration} seconds. - fadeIn(double) - Method in interface paintingcanvas.animation.Animatable
-
Fades
this
in over @{code duration} seconds. - fadeOut() - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that fades
this
out over @{code duration} seconds. - fadeOut(double) - Method in interface paintingcanvas.animation.Animatable
-
Fades
this
out over @{code duration} seconds. - font - Variable in class paintingcanvas.drawable.Text
-
The font of the text, you can change this if you want a different font (and have it installed)
- font(Font) - Method in class paintingcanvas.extensions.FrameCounter
-
Sets the font used by the overlay UI.
- fps - Static variable in class paintingcanvas.canvas.Canvas
-
the fps of the canvas
- frame - Variable in class paintingcanvas.canvas.Canvas
-
The current frame
- frameChart(boolean) - Method in class paintingcanvas.extensions.FrameCounter
-
Enabled by default.
- FrameCounter - Class in paintingcanvas.extensions
-
A system to add a debug overlay showing the FPS, frame count, Element count and frame time graph.
- FrameCounter() - Constructor for class paintingcanvas.extensions.FrameCounter
-
Create a new FrameCounter with default settings: Enabled: true FrameChart: true DataPoints: 100 Lines: {}
- FrameCounter.GetLine - Interface in paintingcanvas.extensions
- FrameCounter.GetLines - Interface in paintingcanvas.extensions
- Frames - paintingcanvas.misc.TimeUnit
- frameSync - Variable in class paintingcanvas.canvas.Canvas
-
Sync with frame: Notifies on end of frame
- Fuchsia - paintingcanvas.misc.Hue
G
- getColor() - Method in class paintingcanvas.drawable.Drawable
-
Get the current color of an element as a
Color
- getColor() - Method in enum paintingcanvas.misc.Hue
-
Get the associated
Color
for thisHue
. - getColor(String) - Static method in enum paintingcanvas.misc.Hue
-
Get the associated
Color
when given aString
as the name of the color. - getEndpoint() - Method in class paintingcanvas.drawable.Line
-
Get the endpoint of the line
- getFontSize() - Method in class paintingcanvas.drawable.Text
-
Get the current font size of the text.
- getGlobalInstance() - Static method in class paintingcanvas.canvas.Canvas
-
Get the global instance of the Canvas (used internally to access the Canvas)
- getHeight() - Method in class paintingcanvas.canvas.Canvas
-
Get the height of the canvas
- getHeight() - Method in class paintingcanvas.drawable.Ellipse
-
Gets the height of the ellipse.
- getHeight() - Method in class paintingcanvas.drawable.Rectangle
-
Gets the height of the rectangle.
- getHeight() - Method in class paintingcanvas.drawable.Triangle
-
Gets the height of the triangle.
- getLine() - Method in interface paintingcanvas.extensions.FrameCounter.GetLine
- getLines() - Method in interface paintingcanvas.extensions.FrameCounter.GetLines
- getMousePos() - Method in class paintingcanvas.canvas.Canvas
-
Get the mouse position in the canvas.
- getOutlineColor() - Method in class paintingcanvas.drawable.Drawable
-
Gets the outline color
- getOutlineStroke() - Method in class paintingcanvas.drawable.Drawable
-
Gets the outline stroke
- getPos() - Method in class paintingcanvas.drawable.Drawable
-
Get the position of the element
- getPreferredSize() - Method in class paintingcanvas.canvas.CanvasPanel
- getRadius() - Method in class paintingcanvas.drawable.Circle
-
Gets the radius of the circle.
- getRotation() - Method in class paintingcanvas.drawable.Drawable
-
Get an elements rotation
- getSize() - Method in class paintingcanvas.drawable.Square
-
Gets the size of the square.
- getStartpoint() - Method in class paintingcanvas.drawable.Line
-
Get the startpoint of the line
- getText() - Method in class paintingcanvas.drawable.Text
-
Gets the current text of the element.
- getThis() - Method in class paintingcanvas.drawable.Circle
- getThis() - Method in class paintingcanvas.drawable.Drawable
- getThis() - Method in class paintingcanvas.drawable.Ellipse
- getThis() - Method in class paintingcanvas.drawable.Image
- getThis() - Method in class paintingcanvas.drawable.Line
- getThis() - Method in class paintingcanvas.drawable.Path
- getThis() - Method in class paintingcanvas.drawable.Polygon
- getThis() - Method in class paintingcanvas.drawable.Rectangle
- getThis() - Method in class paintingcanvas.drawable.Square
- getThis() - Method in class paintingcanvas.drawable.Text
- getThis() - Method in class paintingcanvas.drawable.Triangle
- getWidth() - Method in class paintingcanvas.canvas.Canvas
-
Get the width of the canvas
- getWidth() - Method in class paintingcanvas.drawable.Ellipse
-
Gets the width of the ellipse.
- getWidth() - Method in class paintingcanvas.drawable.Rectangle
-
Gets the width of the rectangle.
- getWidth() - Method in class paintingcanvas.drawable.Triangle
-
Gets the width of the triangle.
- getX() - Method in class paintingcanvas.drawable.Drawable
-
Get the X-position of the element
- getY() - Method in class paintingcanvas.drawable.Drawable
-
Get the Y-position of the element.
- globalInstance - Static variable in class paintingcanvas.canvas.Canvas
- Gray - paintingcanvas.misc.Hue
- Green - paintingcanvas.misc.Hue
H
- height - Variable in class paintingcanvas.drawable.Ellipse
-
The height of the ellipse.
- height - Variable in class paintingcanvas.drawable.Rectangle
-
The height of the rectangle.
- height - Variable in class paintingcanvas.drawable.Triangle
-
The height of the triangle.
- hex - Variable in enum paintingcanvas.misc.Hue
- hide() - Method in class paintingcanvas.drawable.Drawable
-
Hide the Object.
- Hue - Enum in paintingcanvas.misc
-
Colors (besides black and white) are taken from the Tailwind CSS Color Palette.
I
- image - Variable in class paintingcanvas.canvas.CanvasPanel
-
The image that is drawn to the screen
- Image - Class in paintingcanvas.drawable
-
Draws an image from the specified path.
- Image(int, int, String) - Constructor for class paintingcanvas.drawable.Image
-
Create a new Image element.
- Indigo - paintingcanvas.misc.Hue
- InfoDisplay - Class in paintingcanvas.extensions
-
Displays some information on the screen, such as the mouse position and color of the hovered pixel.
- InfoDisplay() - Constructor for class paintingcanvas.extensions.InfoDisplay
- initAnimation(Drawable<?>) - Method in class paintingcanvas.animation.Animation
-
Initialize the animation with the affected drawable
- initAnimation(Drawable<?>) - Method in class paintingcanvas.animation.MovementAnimation
- initAnimation(Drawable<? extends Drawable<?>>) - Method in class paintingcanvas.animation.ColorAnimation
- initAnimation(Drawable<? extends Drawable<?>>) - Method in class paintingcanvas.animation.OpacityAnimation
- initAnimation(Drawable<? extends Drawable<?>>) - Method in class paintingcanvas.animation.RotationAnimation
J
- jframe - Variable in class paintingcanvas.canvas.CanvasPanel
L
- Lime - paintingcanvas.misc.Hue
- line(FrameCounter.GetLine) - Method in class paintingcanvas.extensions.FrameCounter
-
The function you supply will be run every frame.
- Line - Class in paintingcanvas.drawable
-
A line: with a startpoint and an endpoint
- Line(int, int, int, int) - Constructor for class paintingcanvas.drawable.Line
-
Create a new Line element.
- Line(int, int, int, int, Color) - Constructor for class paintingcanvas.drawable.Line
-
Create a new Line element.
- Line(int, int, int, int, String) - Constructor for class paintingcanvas.drawable.Line
-
Create a new Line element colored a certain color by name (see
Hue
for list of all valid names) - linear() - Static method in interface paintingcanvas.animation.Easing
-
Linear easing: A.K.A no easing.
- lines(FrameCounter.GetLines) - Method in class paintingcanvas.extensions.FrameCounter
-
The function you supply will be run every frame.
- lineTo(int, int) - Method in class paintingcanvas.drawable.Path
-
Make a line from the current cursor position to a new position
M
- Milliseconds - paintingcanvas.misc.TimeUnit
- Misc - Class in paintingcanvas.misc
- Misc() - Constructor for class paintingcanvas.misc.Misc
- move(int, int) - Method in class paintingcanvas.drawable.Drawable
-
Moves this drawable by the specified x and y.
- moveBy(int, int) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that moves
this
by the specifiedx
andy
- moveBy(int, int, double) - Method in interface paintingcanvas.animation.Animatable
-
This method moves
this
by the specifiedx
andy
- moveHorizontal(int) - Method in class paintingcanvas.drawable.Drawable
-
Moves this drawable by the specified x and y.
- moveHorizontalBy(int, double) - Method in interface paintingcanvas.animation.Animatable
-
This method moves
this
by the specifiedx
horizontally. - MovementAnimation - Class in paintingcanvas.animation
-
Controls animation that is to do with position
- MovementAnimation(Point) - Constructor for class paintingcanvas.animation.MovementAnimation
- moveTo(int, int) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that moves
this
to the specifiedx
andy
overduration
seconds - moveTo(int, int, double) - Method in interface paintingcanvas.animation.Animatable
-
Move
this
to the specifiedx
andy
overduration
seconds - moveVertical(int) - Method in class paintingcanvas.drawable.Drawable
-
Moves this drawable by the specified x and y.
- moveVerticalBy(int, double) - Method in interface paintingcanvas.animation.Animatable
-
This method moves
this
by the specifiedx
horizontally.
N
O
- onResize(CanvasPanel, ComponentEvent) - Method in class paintingcanvas.canvas.RenderLifecycle.CenteringLifecycle
- onResize(CanvasPanel, ComponentEvent) - Method in interface paintingcanvas.canvas.RenderLifecycle
- OpacityAnimation - Class in paintingcanvas.animation
-
Controls animation that is to do with opacity
- OpacityAnimation(double) - Constructor for class paintingcanvas.animation.OpacityAnimation
- OpacityAnimation(int) - Constructor for class paintingcanvas.animation.OpacityAnimation
- options - Variable in class paintingcanvas.canvas.Canvas
-
The options for the behavior of the canvas, see
CanvasOptions
- Orange - paintingcanvas.misc.Hue
- outlineStart - Variable in class paintingcanvas.animation.OpacityAnimation
P
- paintComponent(Graphics) - Method in class paintingcanvas.canvas.CanvasPanel
-
The function that actually renders stuff
- paintingcanvas.animation - package paintingcanvas.animation
-
This package contains the stuff that is used to animate the objects / elements on the canvas.
- paintingcanvas.canvas - package paintingcanvas.canvas
-
This package contains the internal classes used to render the canvas
- paintingcanvas.drawable - package paintingcanvas.drawable
-
This package contains the definitions, and the implementations of different shapes you can draw onto the canvas.
- paintingcanvas.extensions - package paintingcanvas.extensions
-
This package contains built-in extensions for the Canvas class
- paintingcanvas.misc - package paintingcanvas.misc
-
This package contains miscellaneous classes that didn't really fit anywhere else.
- panel - Variable in class paintingcanvas.canvas.Canvas
-
A CanvasComponent, which handles all the rendering n stuff
- Path - Class in paintingcanvas.drawable
-
An SVG-like path used to draw lines and curves.
- Path() - Constructor for class paintingcanvas.drawable.Path
-
Create a new Path element.
- Path(Color) - Constructor for class paintingcanvas.drawable.Path
-
Create a new Path element.
- Path(String) - Constructor for class paintingcanvas.drawable.Path
-
Create a new Path element with a certain color by name (see
Hue
for list of all valid names). - Pink - paintingcanvas.misc.Hue
- point(int, int) - Method in class paintingcanvas.drawable.Polygon
-
Adds a point to this polygon
- polygon - Variable in class paintingcanvas.drawable.Polygon
-
The internal polygon element
- Polygon - Class in paintingcanvas.drawable
-
A Polygon Element.
- Polygon(int[][]) - Constructor for class paintingcanvas.drawable.Polygon
-
Create a new Polygon element from a list of points
- Polygon(int[], int[]) - Constructor for class paintingcanvas.drawable.Polygon
-
Create a new Polygon element from a list of x-positions and y-positions
- Polygon(int, int) - Constructor for class paintingcanvas.drawable.Polygon
-
Create a new empty polygon, meant to be used in conjunction with
Polygon.point(int, int)
- Polygon(int, int, int[][]) - Constructor for class paintingcanvas.drawable.Polygon
-
Create a new Polygon element from a list of points
- Polygon(int, int, int[], int[]) - Constructor for class paintingcanvas.drawable.Polygon
-
Create a new Polygon element from a list of x-positions and y-positions
- Polygon(int, int, Polygon) - Constructor for class paintingcanvas.drawable.Polygon
-
Create a new Polygon element from a
Polygon
. - postRender(Graphics) - Method in interface paintingcanvas.canvas.RenderLifecycle
-
Runs after everything else; the
image
inCanvasPanel
will reflect your changes. - preRender(Graphics) - Method in class paintingcanvas.canvas.RenderLifecycle.AntiAliasingLifecycle
- preRender(Graphics) - Method in interface paintingcanvas.canvas.RenderLifecycle
-
Runs before everything else; the
image
inCanvasPanel
will reflect your changes. - Purple - paintingcanvas.misc.Hue
Q
- quadTo(int, int, int, int) - Method in class paintingcanvas.drawable.Path
-
Make a quadratic curve from the current cursor position to a new position.
R
- radius - Variable in class paintingcanvas.drawable.Circle
-
The radius of the circle
- record(Path, String) - Method in class paintingcanvas.extensions.Recorder
- Recorder - Class in paintingcanvas.extensions
-
A class that allows you to record the canvas to a image sequence, can be combined using ffmpeg or something similar
- Recorder() - Constructor for class paintingcanvas.extensions.Recorder
- Rectangle - Class in paintingcanvas.drawable
-
A Rectangle element.
- Rectangle(int, int, int, int) - Constructor for class paintingcanvas.drawable.Rectangle
-
Create a new Rectangle element.
- Rectangle(int, int, int, int, Color) - Constructor for class paintingcanvas.drawable.Rectangle
-
Create a new Rectangle element.
- Rectangle(int, int, int, int, String) - Constructor for class paintingcanvas.drawable.Rectangle
-
Create a new Rectangle element with a certain color by name (see
Hue
for list of all valid names) - Red - paintingcanvas.misc.Hue
- relative - Variable in class paintingcanvas.animation.MovementAnimation
- relative - Variable in class paintingcanvas.animation.RotationAnimation
- relative() - Method in class paintingcanvas.animation.MovementAnimation
- relative() - Method in class paintingcanvas.animation.RotationAnimation
- removeOutline() - Method in class paintingcanvas.drawable.Drawable
-
Removes the outline from the shape
- render() - Method in class paintingcanvas.canvas.Canvas
- render(Graphics) - Method in class paintingcanvas.drawable.Drawable
-
Actually render the object itself
- renderEnd(Graphics) - Method in interface paintingcanvas.canvas.RenderLifecycle
-
Runs after everything else; the
image
inCanvasPanel
will not reflect your changes. - renderEnd(Graphics) - Method in class paintingcanvas.extensions.FrameCounter
- renderEnd(Graphics) - Method in class paintingcanvas.extensions.InfoDisplay
- renderEnd(Graphics) - Method in class paintingcanvas.extensions.Recorder
- RenderLifecycle - Interface in paintingcanvas.canvas
-
Allows other classes to run code at different points during the rendering process.
- RenderLifecycle.AntiAliasingLifecycle - Class in paintingcanvas.canvas
- RenderLifecycle.CenteringLifecycle - Class in paintingcanvas.canvas
- RenderLifecycle.ResizeListener - Class in paintingcanvas.canvas
- renderLifecycles - Variable in class paintingcanvas.canvas.Canvas
-
The RenderLifecycle: allows you to write code to run before and after a frame is rendered
- renderStart(Graphics) - Method in class paintingcanvas.canvas.RenderLifecycle.AntiAliasingLifecycle
- renderStart(Graphics) - Method in interface paintingcanvas.canvas.RenderLifecycle
-
Runs before everything else; the
image
inCanvasPanel
will not reflect your changes. - Rose - paintingcanvas.misc.Hue
- rotate(double) - Method in class paintingcanvas.drawable.Drawable
-
Rotate this element by
rotation°
. - rotateBy(int) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that rotates
this
byangle°
. - rotateBy(int, double) - Method in interface paintingcanvas.animation.Animatable
-
Rotates
this
byangle°
. - rotateTo(int) - Static method in class paintingcanvas.animation.Animation
-
Creates an animation that rotates
this
to the specifiedangle°
. - rotateTo(int, double) - Method in interface paintingcanvas.animation.Animatable
-
Rotates
this
to the specifiedangle°
. - RotationAnimation - Class in paintingcanvas.animation
-
Controls animation that is to do with rotation
- RotationAnimation(double) - Constructor for class paintingcanvas.animation.RotationAnimation
S
- screenshot(File, String) - Method in class paintingcanvas.extensions.Recorder
- Seconds - paintingcanvas.misc.TimeUnit
- setBackgroundColor(Color) - Method in class paintingcanvas.canvas.Canvas
-
Sets the background color of the canvas
- setColor(int) - Method in class paintingcanvas.drawable.Drawable
-
Set the color of the object with a 8-bit RGB hex literal.
- setColor(int, int, int) - Method in class paintingcanvas.drawable.Drawable
-
Set the color of the element with RGB.
- setColor(Color) - Method in class paintingcanvas.drawable.Drawable
-
Set the color of the object with a
Color
object. - setColor(String) - Method in class paintingcanvas.drawable.Drawable
-
Set the color of the object with a certain color by name (see
Hue
for list of all valid names) - setEndpoint(int, int) - Method in class paintingcanvas.drawable.Line
-
Set the endpoint of the line
- setFilled(boolean) - Method in class paintingcanvas.drawable.Drawable
-
Set whether this object is filled or not
- setFilled(boolean) - Method in class paintingcanvas.drawable.Line
-
DO NOT USE, Overridden
- setFont(Font) - Method in class paintingcanvas.extensions.InfoDisplay
- setFontSize(double) - Method in class paintingcanvas.drawable.Text
-
Set the current font size of the text.
- setFontSize(int) - Method in class paintingcanvas.extensions.InfoDisplay
-
Set the font size of the displayed text
- setHeight(int) - Method in class paintingcanvas.drawable.Ellipse
-
Sets the height of the ellipse.
- setHeight(int) - Method in class paintingcanvas.drawable.Rectangle
-
Sets the height of the rectangle.
- setHeight(int) - Method in class paintingcanvas.drawable.Triangle
-
Sets the height of the triangle.
- setLineColor(Color) - Method in class paintingcanvas.drawable.Path
-
Set the color of the line, equivalent to setOutline(thickness, color);
- setOutline(int) - Method in class paintingcanvas.drawable.Drawable
-
Sets the parameters for the outline of the shape, with the color defaulting to black
- setOutline(int, Color) - Method in class paintingcanvas.drawable.Drawable
-
Sets the parameters for the outline of the shape
- setOutline(int, Color) - Method in class paintingcanvas.drawable.Line
- setOutline(Color) - Method in class paintingcanvas.drawable.Drawable
-
Sets the outline color of the shape
- setPos(int, int) - Method in class paintingcanvas.drawable.Drawable
-
Set the position of the element.
- setRadius(int) - Method in class paintingcanvas.drawable.Circle
-
Sets the radius of the circle.
- setRotation(double) - Method in class paintingcanvas.drawable.Drawable
-
Set an elements rotation to
rotation°
. - setScale(double, double) - Method in class paintingcanvas.drawable.Image
-
Set the scale of the image to the specified multiplier.
- setSize(int) - Method in class paintingcanvas.drawable.Square
-
Sets the size of the square.
- setStartpoint(int, int) - Method in class paintingcanvas.drawable.Line
-
Get the startpoint of the line
- setStroke(Stroke) - Method in class paintingcanvas.drawable.Line
-
Set the stroke of the line
- setStroke(Stroke) - Method in class paintingcanvas.drawable.Path
-
Set the stroke of the line.
- setText(String) - Method in class paintingcanvas.drawable.Text
-
Sets the text of the element.
- setThickness(int) - Method in class paintingcanvas.drawable.Line
-
Set the thickness of the line
- setThickness(int) - Method in class paintingcanvas.drawable.Path
-
Set the thickness of the line, equivalent to setOutline(thickness);
- setTitle(String) - Method in class paintingcanvas.canvas.Canvas
-
Set the title of this canvas
- setWidth(int) - Method in class paintingcanvas.drawable.Ellipse
-
Sets the width of the ellipse.
- setWidth(int) - Method in class paintingcanvas.drawable.Rectangle
-
Sets the width of the rectangle.
- setWidth(int) - Method in class paintingcanvas.drawable.Triangle
-
Sets the width of the triangle.
- setX(int) - Method in class paintingcanvas.drawable.Drawable
-
Set the X-position of the object
- setY(int) - Method in class paintingcanvas.drawable.Drawable
-
Set the Y-position of the element
- show() - Method in class paintingcanvas.drawable.Drawable
-
Show the Object
- size - Variable in class paintingcanvas.drawable.Square
-
The size / side-length of the square.
- Sky - paintingcanvas.misc.Hue
- Slate - paintingcanvas.misc.Hue
- sleep() - Method in class paintingcanvas.canvas.Canvas
-
Sleeps until all animations finish.
- sleep(double) - Method in class paintingcanvas.animation.AnimationBuilder
-
Sleep for the specified amount of time.
- sleep(double) - Method in class paintingcanvas.canvas.Canvas
-
Sleeps for the specified amount of seconds
- Square - Class in paintingcanvas.drawable
-
A Square element.
- Square(int, int, int) - Constructor for class paintingcanvas.drawable.Square
-
Create a new Square element.
- Square(int, int, int, Color) - Constructor for class paintingcanvas.drawable.Square
-
Create a new Square element.
- Square(int, int, int, String) - Constructor for class paintingcanvas.drawable.Square
-
Create a new Square element with a certain color by name (see
Hue
for list of all valid names) - start - Variable in class paintingcanvas.animation.MovementAnimation
- start - Variable in class paintingcanvas.animation.OpacityAnimation
- start - Variable in class paintingcanvas.animation.RotationAnimation
- startFrame - Variable in class paintingcanvas.animation.Animation
-
The frame at which the animation should start
- startSize - Variable in class paintingcanvas.canvas.Canvas
-
the initial size of the Canvas
- Stone - paintingcanvas.misc.Hue
- stop() - Method in class paintingcanvas.extensions.Recorder
T
- Teal - paintingcanvas.misc.Hue
- text - Variable in class paintingcanvas.drawable.Text
-
The text to draw
- Text - Class in paintingcanvas.drawable
-
A Text element, used for drawing text on the canvas.
- Text(int, int, String) - Constructor for class paintingcanvas.drawable.Text
-
Create a new Text element.
- Text(int, int, String, Color) - Constructor for class paintingcanvas.drawable.Text
-
Create a new Text element.
- Text(int, int, String, String) - Constructor for class paintingcanvas.drawable.Text
-
Create a new Text element with a certain color by name (see
Hue
for list of all valid names). - TimeUnit - Enum in paintingcanvas.misc
-
Some common time units.
- translation - Variable in class paintingcanvas.canvas.Canvas
- Triangle - Class in paintingcanvas.drawable
-
A Triangle element.
- Triangle(int, int, int, int) - Constructor for class paintingcanvas.drawable.Triangle
-
Create a new Triangle element.
- Triangle(int, int, int, int, Color) - Constructor for class paintingcanvas.drawable.Triangle
-
Create a new Triangle element.
- Triangle(int, int, int, int, String) - Constructor for class paintingcanvas.drawable.Triangle
-
Create a new Triangle element with a certain color by name (see
Hue
for list of all valid names)
U
- update(int) - Method in class paintingcanvas.animation.Animation
-
Updates the animation with the current frame
- updateAnimation(Drawable<?>, double) - Method in class paintingcanvas.animation.Animation
-
update the animation with the progress (0-1) and affected drawable
- updateAnimation(Drawable<?>, double) - Method in class paintingcanvas.animation.ColorAnimation
- updateAnimation(Drawable<?>, double) - Method in class paintingcanvas.animation.MovementAnimation
- updateAnimation(Drawable<? extends Drawable<?>>, double) - Method in class paintingcanvas.animation.OpacityAnimation
- updateAnimation(Drawable<? extends Drawable<?>>, double) - Method in class paintingcanvas.animation.RotationAnimation
V
- valueOf(String) - Static method in enum paintingcanvas.misc.Hue
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum paintingcanvas.misc.TimeUnit
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum paintingcanvas.misc.Hue
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum paintingcanvas.misc.TimeUnit
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- White - paintingcanvas.misc.Hue
- width - Variable in class paintingcanvas.drawable.Ellipse
-
The width of the ellipse.
- width - Variable in class paintingcanvas.drawable.Rectangle
-
The width of the rectangle.
- width - Variable in class paintingcanvas.drawable.Triangle
-
The width of the triangle.
- with(Animation, double) - Method in class paintingcanvas.animation.AnimationBuilder
-
Add the animation alongside / with the previous animation.
- with(Animation, double, TimeUnit) - Method in class paintingcanvas.animation.AnimationBuilder
-
Add the animation alongside / with the previous animation.
Y
Z
A B C D E F G H I J L M N O P Q R S T U V W Y ZAll Classes All Packages