A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes All Packages

A

accept(Drawable<?>) - Method in interface paintingcanvas.misc.ElementContainer.DrawableConsumer
 
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 and wait for it to finish.
add(Drawable<?>) - Method in class paintingcanvas.misc.ElementContainer
 
Amber - paintingcanvas.misc.Hue
 
Anchor - Enum in paintingcanvas.misc
The Anchor enum represents what point, relative to the center of an element, the element is draw about.
Anchorable<T extends Drawable<T>> - Interface in paintingcanvas.drawable
 
Animatable - Interface in paintingcanvas.animation
An interface to call animation methods on animatable objects.
animate() - Method in interface 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 - Static variable in class paintingcanvas.InternalCanvas
the list of animations that are currently running
animationSync - Static variable in class paintingcanvas.InternalCanvas
Sync with animations: Notifies on animation finish
antiAlias - Variable in class paintingcanvas.canvas.CanvasOptions
Whether to do antialiasing when drawing shapes
antiAlias(boolean) - Method in class paintingcanvas.canvas.CanvasOptions
Default: true
AntiAliasingLifecycle() - Constructor for class paintingcanvas.canvas.RenderLifecycle.AntiAliasingLifecycle
 
asFrames(double) - Method in enum paintingcanvas.misc.TimeUnit
Get the number of frames in time units.
atomic(Runnable) - Method in class paintingcanvas.canvas.Canvas
Runs the specified code all on the same frame.
atomic(Runnable) - Static method in class paintingcanvas.misc.ElementContainer
ALL MODIFICATIONS TO DRAWABLES MUST BE DONE THROUGH THIS METHOD
atomic(Callable<T>) - Static method in class paintingcanvas.misc.ElementContainer
ALL MODIFICATIONS TO DRAWABLES MUST BE DONE THROUGH THIS METHOD
attach() - Method in interface paintingcanvas.canvas.RenderLifecycle
Attach this lifecycle to the canvas
autoAdd - Variable in class paintingcanvas.canvas.CanvasOptions
Whether to automatically add Drawable's upon construction / instantiation.
autoAdd(boolean) - Method in class paintingcanvas.canvas.CanvasOptions
Default: true
autoCenter - Variable in class paintingcanvas.canvas.CanvasOptions
Whether to automatically center what's on screen whenever the screen is resized
autoCenter(boolean) - Method in class paintingcanvas.canvas.CanvasOptions
Default: true

B

backgroundColor - Variable in class paintingcanvas.canvas.CanvasOptions
The background color of the canvas
backgroundColor(Color) - Method in class paintingcanvas.canvas.CanvasOptions
Default: Color.WHITE
Black - paintingcanvas.misc.Hue
 
Blue - paintingcanvas.misc.Hue
 
BOTTOM_CENTER - paintingcanvas.misc.Anchor
 
BOTTOM_LEFT - paintingcanvas.misc.Anchor
 
BOTTOM_RIGHT - paintingcanvas.misc.Anchor
 
bringToFront() - Method in interface paintingcanvas.drawable.Drawable
Brings the object in front of all other objects.

C

canvas - Variable in class paintingcanvas.canvas.CanvasPanel
 
canvas - Static variable in class paintingcanvas.InternalCanvas
 
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
Initialize the canvas
Canvas(int, int, String, CanvasOptions) - Constructor for class paintingcanvas.canvas.Canvas
Initialize the canvas with more options
CanvasNotInitializedException - Exception in paintingcanvas.canvas
 
CanvasNotInitializedException() - Constructor for exception paintingcanvas.canvas.CanvasNotInitializedException
 
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
castDrawable(Drawable<?>, Class<T>) - Static method in class paintingcanvas.misc.Misc
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Circle
 
center(Graphics2D) - Method in interface paintingcanvas.drawable.Drawable
Get the object's centerpoint
center(Graphics2D) - Method in class paintingcanvas.drawable.Ellipse
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Image
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Line
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Path
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Polygon
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Rectangle
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Square
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Text
 
center(Graphics2D) - Method in class paintingcanvas.drawable.Triangle
 
CENTER - paintingcanvas.misc.Anchor
 
CENTER_LEFT - paintingcanvas.misc.Anchor
 
CENTER_RIGHT - paintingcanvas.misc.Anchor
 
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 hue name or hex code
clamp(N, N, N) - Static method in class paintingcanvas.misc.Misc
 
clicked() - Method in class paintingcanvas.canvas.Canvas
 
clicked() - Method in class paintingcanvas.drawable.DrawableBase.InteractableShape
 
clicked() - Method in interface paintingcanvas.drawable.Interactable
Check if the element has been clicked by the mouse.
Colorable<T extends Drawable<T>> - Interface in paintingcanvas.drawable
Elements that can be colored in with a Color
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
Create an animation that changes the color of this to the specified color.
colorTo(int, double) - Method in interface paintingcanvas.animation.Animatable
Change the color of this to the specified color over duration seconds.
colorTo(int, int, int) - Static method in class paintingcanvas.animation.Animation
Create an animation that changes the color of this to the specified color.
colorTo(int, int, int, double) - Method in interface paintingcanvas.animation.Animatable
Change the color of this to the specified color over duration seconds.
colorTo(int, int, int, int) - Static method in class paintingcanvas.animation.Animation
Create an animation that changes the color of this to the specified color.
colorTo(int, int, int, int, double) - Method in interface paintingcanvas.animation.Animatable
Change the color of this to the specified color over duration seconds.
colorTo(Color) - Static method in class paintingcanvas.animation.Animation
Create an animation that changes the color of this to the specified color.
colorTo(Color, double) - Method in interface paintingcanvas.animation.Animatable
Change the color of this to the specified color over duration seconds.
colorTo(String) - Static method in class paintingcanvas.animation.Animation
Create an animation that changes the color of this to the specified color.
colorTo(String, double) - Method in interface paintingcanvas.animation.Animatable
Change the color of this to the specified color over duration seconds.
colorTo(Hue) - Static method in class paintingcanvas.animation.Animation
Create an animation that changes the color of this to the specified color.
colorTo(Hue, double) - Method in interface paintingcanvas.animation.Animatable
Change the color of this to the specified color over duration 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 this Animatable.
drawable() - Method in interface paintingcanvas.drawable.Drawable
 
Drawable<T extends Drawable<T>> - Interface in paintingcanvas.drawable
An interface to connect to any objects that can be considered "painter.drawable.Drawable".
DrawableBase<T extends Drawable<T>> - Class in paintingcanvas.drawable
 
DrawableBase(int, int, Color) - Constructor for class paintingcanvas.drawable.DrawableBase
 
DrawableBase.InteractableShape<T extends Drawable<T>> - Class in paintingcanvas.drawable
 
DrawableBase.OutlineableDrawableBase<T extends Drawable<T>> - Class in paintingcanvas.drawable
 
DrawableBase.Shape<T extends Drawable<T>> - Class in paintingcanvas.drawable
 
drawableSync - Static variable in class paintingcanvas.InternalCanvas
Sync with drawables: Use when modifying a drawable
drawFill(Graphics2D) - Method in class paintingcanvas.drawable.Circle
 
drawFill(Graphics2D) - Method in class paintingcanvas.drawable.Ellipse
 
drawFill(Graphics2D) - Method in class paintingcanvas.drawable.Path
 
drawFill(Graphics2D) - Method in class paintingcanvas.drawable.Triangle
 
drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Circle
 
drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Ellipse
 
drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Image
 
drawOutline(Graphics2D) - Method in class paintingcanvas.drawable.Path
 
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
Ease in
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
Ease in cubically
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
Exponentially ease in and out
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
Ease in and out cubically
easeInOutElastic() - Static method in interface paintingcanvas.animation.Easing
 
easeInOutExpo() - Static method in interface paintingcanvas.animation.Easing
 
easeInOutQuad() - Static method in interface paintingcanvas.animation.Easing
Ease in and out quadratically
easeInOutQuart() - Static method in interface paintingcanvas.animation.Easing
 
easeInOutQuint() - Static method in interface paintingcanvas.animation.Easing
 
easeInOutSine() - Static method in interface paintingcanvas.animation.Easing
Ease in and out sinusoidally
easeInQuad() - Static method in interface paintingcanvas.animation.Easing
Ease in quadratically
easeInQuart() - Static method in interface paintingcanvas.animation.Easing
 
easeInQuint() - Static method in interface paintingcanvas.animation.Easing
 
easeInSine() - Static method in interface paintingcanvas.animation.Easing
Ease in sinusoidally
easeOut(double) - Static method in interface paintingcanvas.animation.Easing
Ease out
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
Ease out cubically
easeOutElastic() - Static method in interface paintingcanvas.animation.Easing
 
easeOutExpo() - Static method in interface paintingcanvas.animation.Easing
 
easeOutQuad() - Static method in interface paintingcanvas.animation.Easing
Ease out quadratically
easeOutQuart() - Static method in interface paintingcanvas.animation.Easing
 
easeOutQuint() - Static method in interface paintingcanvas.animation.Easing
 
easeOutSine() - Static method in interface paintingcanvas.animation.Easing
Ease out sinusoidally
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.
ElementContainer - Class in paintingcanvas.misc
 
ElementContainer() - Constructor for class paintingcanvas.misc.ElementContainer
 
ElementContainer.AtomicExecutor - Interface in paintingcanvas.misc
 
ElementContainer.DrawableConsumer - Interface in paintingcanvas.misc
 
elements - Static variable in class paintingcanvas.InternalCanvas
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 hue name or hex code
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
 
equality(N, N, N) - Static method in class paintingcanvas.misc.Misc
 
erase() - Method in interface paintingcanvas.drawable.Drawable
Erase this object from the canvas.
execute() - Method in interface paintingcanvas.misc.ElementContainer.AtomicExecutor
 

F

fadeIn() - Static method in class paintingcanvas.animation.Animation
Create an animation that fades this in.
fadeIn(double) - Method in interface paintingcanvas.animation.Animatable
Fade this in over duration seconds.
fadeOut() - Static method in class paintingcanvas.animation.Animation
Create an animation that fades this out.
fadeOut(double) - Method in interface paintingcanvas.animation.Animatable
Fade this out over duration seconds.
first - Variable in class paintingcanvas.misc.Tuple
 
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.
foreach(ElementContainer.DrawableConsumer) - Method in class paintingcanvas.misc.ElementContainer
 
fps - Variable in class paintingcanvas.canvas.CanvasOptions
The FPS to run rendering at
frame - Static variable in class paintingcanvas.InternalCanvas
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 - Static variable in class paintingcanvas.InternalCanvas
Sync with frame: Notifies on end of frame
Fuchsia - paintingcanvas.misc.Hue
 

G

getAnchor() - Method in interface paintingcanvas.drawable.Anchorable
Get the current anchor of the element.
getAnchor() - Method in class paintingcanvas.drawable.DrawableBase.Shape
 
getAnchor() - Method in class paintingcanvas.drawable.Text
 
getBackgroundColor() - Method in class paintingcanvas.canvas.CanvasOptions
 
getColor() - Method in interface paintingcanvas.drawable.Colorable
Get the current color of an element as a Color
getColor() - Method in class paintingcanvas.drawable.DrawableBase
 
getColor() - Method in enum paintingcanvas.misc.Hue
Get the associated Color for this Hue.
getColor(String) - Static method in enum paintingcanvas.misc.Hue
Get the associated Color when given a String as the name of the color.
getEndpoint() - Method in class paintingcanvas.drawable.Line
Get the endpoint of the line
getFontMetrics() - Method in class paintingcanvas.drawable.Text
If you need more information about the text, such as ascent, descent, leading, etc.
getFontSize() - Method in class paintingcanvas.drawable.Text
Get the current font size of the text.
getFrame() - Method in class paintingcanvas.canvas.Canvas
Get the current frame count
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.Text
Note that the computed height of the text only gets updated when the text is drawn.
getHeight() - Method in class paintingcanvas.drawable.Triangle
Gets the height of the triangle.
getLayer() - Method in interface paintingcanvas.drawable.Drawable
Gets the current layer of the object.
getLayer() - Method in class paintingcanvas.drawable.DrawableBase
 
getLine() - Method in interface paintingcanvas.extensions.FrameCounter.GetLine
 
getLines() - Method in interface paintingcanvas.extensions.FrameCounter.GetLines
 
getMaxLayer() - Method in class paintingcanvas.misc.ElementContainer
 
getMinLayer() - Method in class paintingcanvas.misc.ElementContainer
 
getMousePos() - Method in class paintingcanvas.canvas.Canvas
Get the mouse position in the canvas.
getOptions() - Method in class paintingcanvas.canvas.Canvas
Get the current configured options
getOutlineColor() - Method in class paintingcanvas.drawable.DrawableBase.OutlineableDrawableBase
 
getOutlineColor() - Method in interface paintingcanvas.drawable.Outlineable
Gets the outline color
getOutlineStroke() - Method in class paintingcanvas.drawable.DrawableBase.OutlineableDrawableBase
 
getOutlineStroke() - Method in interface paintingcanvas.drawable.Outlineable
Gets the outline stroke
getPos() - Method in class paintingcanvas.drawable.DrawableBase
 
getPos() - Method in interface paintingcanvas.drawable.Positionable
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.DrawableBase
 
getRotation() - Method in interface paintingcanvas.drawable.Positionable
Get an elements rotation
getSize() - Method in class paintingcanvas.drawable.Square
Gets the size / side length 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 interface 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.Text
Note that the computed width of the text only gets updated when the text is drawn.
getWidth() - Method in class paintingcanvas.drawable.Triangle
Gets the width of the triangle.
getX() - Method in interface paintingcanvas.drawable.Positionable
Get the X-position of the element
getY() - Method in interface paintingcanvas.drawable.Positionable
Get the Y-position of the element.
Gray - paintingcanvas.misc.Hue
 
Green - paintingcanvas.misc.Hue
 

H

hex - Variable in enum paintingcanvas.misc.Hue
 
hide() - Method in interface paintingcanvas.drawable.Drawable
Hide the Object.
hide() - Method in class paintingcanvas.drawable.DrawableBase
 
hovered() - Method in class paintingcanvas.canvas.Canvas
 
hovered() - Method in class paintingcanvas.drawable.DrawableBase.InteractableShape
 
hovered() - Method in interface paintingcanvas.drawable.Interactable
Check if the element is currently being hovered over by the mouse.
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
 
initialized - Static variable in class paintingcanvas.InternalCanvas
Whether this has been initialized yet
Interactable - Interface in paintingcanvas.drawable
Allows for interaction with elements on the canvas.
InteractableShape(int, int, Color) - Constructor for class paintingcanvas.drawable.DrawableBase.InteractableShape
 
InternalCanvas - Class in paintingcanvas
Static class that handles all the internal stuff in the package; Cleans up documentation for Canvas
InternalCanvas() - Constructor for class paintingcanvas.InternalCanvas
 
internalGetRotation() - Method in class paintingcanvas.drawable.DrawableBase
 
internalGetRotation() - Method in interface paintingcanvas.drawable.Positionable
 
internalSetAnchor(Anchor) - Method in interface paintingcanvas.drawable.Anchorable
 
internalSetAnchor(Anchor) - Method in class paintingcanvas.drawable.DrawableBase.Shape
 
internalSetAnchor(Anchor) - Method in class paintingcanvas.drawable.Text
 
internalSetColor(Color) - Method in interface paintingcanvas.drawable.Colorable
 
internalSetColor(Color) - Method in class paintingcanvas.drawable.DrawableBase
 
internalSetFilled(boolean) - Method in class paintingcanvas.drawable.DrawableBase.OutlineableDrawableBase
 
internalSetFilled(boolean) - Method in interface paintingcanvas.drawable.Outlineable
 
internalSetLayer(int) - Method in interface paintingcanvas.drawable.Drawable
 
internalSetLayer(int) - Method in class paintingcanvas.drawable.DrawableBase
 
internalSetOutlineColor(Color) - Method in class paintingcanvas.drawable.DrawableBase.OutlineableDrawableBase
 
internalSetOutlineColor(Color) - Method in interface paintingcanvas.drawable.Outlineable
 
internalSetOutlineStroke(Stroke) - Method in class paintingcanvas.drawable.DrawableBase.OutlineableDrawableBase
 
internalSetOutlineStroke(Stroke) - Method in interface paintingcanvas.drawable.Outlineable
 
internalSetPos(int, int) - Method in class paintingcanvas.drawable.DrawableBase
 
internalSetPos(int, int) - Method in interface paintingcanvas.drawable.Positionable
 
internalSetRotation(double) - Method in class paintingcanvas.drawable.DrawableBase
 
internalSetRotation(double) - Method in interface paintingcanvas.drawable.Positionable
 
intersects(Point) - Method in class paintingcanvas.canvas.Canvas
 
intersects(Point) - Method in class paintingcanvas.drawable.DrawableBase.InteractableShape
 
intersects(Point) - Method in interface paintingcanvas.drawable.Interactable
Check if the point intersects with the element.
isAntiAlias() - Method in class paintingcanvas.canvas.CanvasOptions
 
isAutoAdd() - Method in class paintingcanvas.canvas.CanvasOptions
 
isAutoCenter() - Method in class paintingcanvas.canvas.CanvasOptions
 

J

jframe - Variable in class paintingcanvas.canvas.CanvasPanel
 

K

keyDown(char) - Method in class paintingcanvas.canvas.Canvas
Check if a key is currently held down using the character representation of the key.
keyDown(int) - Method in class paintingcanvas.canvas.Canvas
Check if a key is currently held down using the key code, the definitions of which can be found in KeyEvent.
keysHeld - Static variable in class paintingcanvas.InternalCanvas
A set of keys that are currently pressed down.

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 hue name or hex code
linear() - Static method in interface paintingcanvas.animation.Easing
Linear easing, aka 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
 
mouseClickEvents - Static variable in class paintingcanvas.InternalCanvas
The list of mouse clicked events that have been fired
mousePosition - Static variable in class paintingcanvas.InternalCanvas
The current mouse position on the canvas, if anything.
move(int, int) - Method in interface paintingcanvas.drawable.Positionable
Moves this drawable by the specified x and y.
moveBy(int, int) - Static method in class paintingcanvas.animation.Animation
Create an animation that moves this by the specified x and y
moveBy(int, int, double) - Method in interface paintingcanvas.animation.Animatable
Move this by the specified x and y over duration seconds.
moveHorizontal(int) - Method in interface paintingcanvas.drawable.Positionable
Moves this drawable by the specified x and y.
moveHorizontalBy(int) - Static method in class paintingcanvas.animation.Animation
Create an animation that moves this by the specified x horizontally.
moveHorizontalBy(int, double) - Method in interface paintingcanvas.animation.Animatable
Move this by the specified x horizontally over duration seconds.
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
Create an animation that moves this to the specified x and y
moveTo(int, int, double) - Method in interface paintingcanvas.animation.Animatable
Move this to the specified x and y over duration seconds
moveVertical(int) - Method in interface paintingcanvas.drawable.Positionable
Moves this drawable by the specified x and y.
moveVerticalBy(int) - Static method in class paintingcanvas.animation.Animation
Create an animation that moves this by the specified y vertically.
moveVerticalBy(int, double) - Method in interface paintingcanvas.animation.Animatable
Move this by the specified y vertically over duration seconds.

N

name - Variable in enum paintingcanvas.misc.Hue
 
Neutral - paintingcanvas.misc.Hue
 

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 - Static variable in class paintingcanvas.InternalCanvas
The options for the behavior of the canvas, see CanvasOptions
Orange - paintingcanvas.misc.Hue
 
Outlineable<T extends Drawable<T>> - Interface in paintingcanvas.drawable
Elements that can be outlined.
OutlineableDrawableBase(int, int, Color) - Constructor for class paintingcanvas.drawable.DrawableBase.OutlineableDrawableBase
 
outlineStart - Variable in class paintingcanvas.animation.OpacityAnimation
 

P

paintComponent(Graphics) - Method in class paintingcanvas.canvas.CanvasPanel
The function that actually renders stuff
paintingcanvas - package paintingcanvas
PaintingCanvas! A library that provides you with a simple, but powerful way to draw and animate various shapes.
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 - Static variable in class paintingcanvas.InternalCanvas
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 hue name or hex code
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.
Positionable<T extends Drawable<T>> - Interface in paintingcanvas.drawable
Elements that can be translated and rotated
postRender(Graphics2D) - Method in interface paintingcanvas.canvas.RenderLifecycle
Runs after everything else; the image in CanvasPanel will reflect your changes.
preRender(Graphics2D) - Method in class paintingcanvas.canvas.RenderLifecycle.AntiAliasingLifecycle
 
preRender(Graphics2D) - Method in interface paintingcanvas.canvas.RenderLifecycle
Runs before everything else; the image in CanvasPanel 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

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 hue name or hex code
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
 
remove(Drawable<?>) - Method in class paintingcanvas.misc.ElementContainer
 
removeOutline() - Method in interface paintingcanvas.drawable.Outlineable
Removes the outline from the shape
render() - Method in class paintingcanvas.canvas.Canvas
 
render(Graphics2D) - Method in interface paintingcanvas.drawable.Drawable
Actually render the object itself
render(Graphics2D) - Method in class paintingcanvas.drawable.DrawableBase
 
renderEnd(Graphics2D) - Method in interface paintingcanvas.canvas.RenderLifecycle
Runs after everything else; the image in CanvasPanel will not reflect your changes.
renderEnd(Graphics2D) - Method in class paintingcanvas.extensions.FrameCounter
 
renderEnd(Graphics2D) - Method in class paintingcanvas.extensions.InfoDisplay
 
renderEnd(Graphics2D) - 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 - Static variable in class paintingcanvas.InternalCanvas
The RenderLifecycle: allows you to write code to run before and after a frame is rendered
renderStart(Graphics2D) - Method in class paintingcanvas.canvas.RenderLifecycle.AntiAliasingLifecycle
 
renderStart(Graphics2D) - Method in interface paintingcanvas.canvas.RenderLifecycle
Runs before everything else; the image in CanvasPanel will not reflect your changes.
Rose - paintingcanvas.misc.Hue
 
rotate(double) - Method in interface paintingcanvas.drawable.Positionable
Rotate this element by rotation degrees.
rotateBy(double) - Static method in class paintingcanvas.animation.Animation
Create an animation that rotates this by angle degrees.
rotateBy(int, double) - Method in interface paintingcanvas.animation.Animatable
Rotate this by angle degrees over duration seconds.
rotateTo(double) - Static method in class paintingcanvas.animation.Animation
Create an animation that rotates this to the specified angle degrees.
rotateTo(int, double) - Method in interface paintingcanvas.animation.Animatable
Rotate this to the specified angle degrees over duration seconds.
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
 
second - Variable in class paintingcanvas.misc.Tuple
 
Seconds - paintingcanvas.misc.TimeUnit
 
sendToBack() - Method in interface paintingcanvas.drawable.Drawable
Puts the object behind all other objects.
setAnchor(Anchor) - Method in interface paintingcanvas.drawable.Anchorable
Set the anchor of the element.
setBackgroundColor(Color) - Method in class paintingcanvas.canvas.Canvas
Sets the background color of the canvas
setColor(int) - Method in interface paintingcanvas.drawable.Colorable
Set the color of this to the specified color.
setColor(int, int, int) - Method in interface paintingcanvas.drawable.Colorable
Set the color of this to the specified color.
setColor(int, int, int, int) - Method in interface paintingcanvas.drawable.Colorable
Set the color of this to the specified color See Wikipedia for how this works.
setColor(Color) - Method in interface paintingcanvas.drawable.Colorable
Set the color of the object with a Color object.
setColor(String) - Method in interface paintingcanvas.drawable.Colorable
Set the color of the object with a hue name or hex code.
setColor(Hue) - Method in interface paintingcanvas.drawable.Colorable
Set the color of the object with a Hue object.
setDirty() - Method in class paintingcanvas.misc.ElementContainer
 
setEndpoint(int, int) - Method in class paintingcanvas.drawable.Line
Set the endpoint of the line
setFilled(boolean) - Method in interface paintingcanvas.drawable.Outlineable
Set whether this object is filled or not
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.
setLayer(int) - Method in interface paintingcanvas.drawable.Drawable
Puts the object on a specific layer.
setLineColor(Color) - Method in class paintingcanvas.drawable.Path
Set the color of the line, equivalent to setOutline(thickness, color);
setOutline(int) - Method in interface paintingcanvas.drawable.Outlineable
Sets the parameters for the outline of the shape, with the color defaulting to black
setOutline(int, Color) - Method in interface paintingcanvas.drawable.Outlineable
Sets the parameters for the outline of the shape
setOutline(Color) - Method in interface paintingcanvas.drawable.Outlineable
Sets the outline color of the shape
setPos(int, int) - Method in interface paintingcanvas.drawable.Positionable
Set the position of the element.
setRadius(int) - Method in class paintingcanvas.drawable.Circle
Sets the radius of the circle.
setRotation(double) - Method in interface paintingcanvas.drawable.Positionable
Set an elements rotation to rotation degrees.
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 / side length of the square.
setStartpoint(int, int) - Method in class paintingcanvas.drawable.Line
Get the startpoint of the line
setStroke(int, Color) - Method in class paintingcanvas.drawable.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 interface paintingcanvas.drawable.Positionable
Set the X-position of the object
setY(int) - Method in interface paintingcanvas.drawable.Positionable
Set the Y-position of the element
Shape(int, int, Color) - Constructor for class paintingcanvas.drawable.DrawableBase.Shape
 
show() - Method in interface paintingcanvas.drawable.Drawable
Show the Object
show() - Method in class paintingcanvas.drawable.DrawableBase
 
size() - Method in class paintingcanvas.misc.ElementContainer
 
Sky - paintingcanvas.misc.Hue
 
Slate - paintingcanvas.misc.Hue
 
sleep() - Method in class paintingcanvas.canvas.Canvas
Sleeps until all animations finish, or, if there are no animations, sleep until the next frame.
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 hue name or hex code
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 - Static variable in class paintingcanvas.InternalCanvas
the initial size of the Canvas
Stone - paintingcanvas.misc.Hue
 
stop() - Method in class paintingcanvas.extensions.Recorder
 
stringToColor(String) - Static method in class paintingcanvas.misc.Misc
Set the color of the object with a certain color by name, or by a hex code.

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 hue name or hex code
TimeUnit - Enum in paintingcanvas.misc
Some common time units.
TOP_CENTER - paintingcanvas.misc.Anchor
 
TOP_LEFT - paintingcanvas.misc.Anchor
 
TOP_RIGHT - paintingcanvas.misc.Anchor
 
toString() - Method in exception paintingcanvas.canvas.CanvasNotInitializedException
 
toString() - Method in class paintingcanvas.misc.Tuple
 
translation - Static variable in class paintingcanvas.InternalCanvas
The translation of the canvas, used for centering and panning
translationSync - Static variable in class paintingcanvas.InternalCanvas
Sync for translation: Use when modifying the translation
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 hue name or hex code
Tuple<X,​Y> - Class in paintingcanvas.misc
 
Tuple(X, Y) - Constructor for class paintingcanvas.misc.Tuple
 

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.Anchor
Returns the enum constant of this type with the specified name.
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.Anchor
Returns an array containing the constants of this enum type, in the order they are declared.
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
 
with(Animation, double) - Method in class paintingcanvas.animation.AnimationBuilder
Add the animation to run at the same time as the previous animation, without waiting for it to finish.
with(Animation, double, TimeUnit) - Method in class paintingcanvas.animation.AnimationBuilder
Add the animation to run at the same time as the previous animation, without waiting for it to finish.

X

x - Variable in enum paintingcanvas.misc.Anchor
 

Y

y - Variable in enum paintingcanvas.misc.Anchor
 
Yellow - paintingcanvas.misc.Hue
 

Z

Zinc - paintingcanvas.misc.Hue
 
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes All Packages