Index

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 and Interfaces|All Packages

A

A - Enum constant in enum class edu.macalester.graphics.events.Key
 
AbstractEvent - Class in edu.macalester.graphics.events
 
add(GraphicsObject) - Method in class edu.macalester.graphics.CanvasWindow
Adds the given graphics object to the objects that will be drawn on the canvas.
add(GraphicsObject) - Method in class edu.macalester.graphics.GraphicsGroup
Adds given graphical object to the list of objects drawn on the canvas.
add(GraphicsObject, double, double) - Method in class edu.macalester.graphics.CanvasWindow
Adds the graphical object to the list of objects drawn on the canvas at the position x, y.
add(GraphicsObject, double, double) - Method in class edu.macalester.graphics.GraphicsGroup
Adds the graphical object to the list of objects drawn on the canvas at the position x, y.
add(Point) - Method in class edu.macalester.graphics.Point
Treats the given point like a displacement vector and adds it to the current point.
addObserver(GraphicsObserver) - Method in class edu.macalester.graphics.GraphicsObject
Adds an observer to be notified of visual changes to this graphics object (typically for the purpose of knowing when to draw it).
ALT - Enum constant in enum class edu.macalester.graphics.events.Key
 
angle() - Method in class edu.macalester.graphics.Point
Returns the angle in radians counterclockwise (or clockwise if you view y as up) from the x-axis to this point.
animate(Runnable) - Method in class edu.macalester.graphics.CanvasWindow
Call the given callback repeatedly forever, up to 60 times per second.
animate(DoubleConsumer) - Method in class edu.macalester.graphics.CanvasWindow
Call the given callback repeatedly forever, up to 60 times per second, passing the time delta since the last time it was called.
APOSTROPHE - Enum constant in enum class edu.macalester.graphics.events.Key
 
Arc - Class in edu.macalester.graphics
A partial section of an ellipse.
Arc(double, double, double, double, double, double) - Constructor for class edu.macalester.graphics.Arc
This is an arc, based on Java's Arc2D.Double, which Java describes as follows: The arc is a partial section of a full ellipse which inscribes the framing rectangle of its parent RectangularShape.
ARGB - Enum constant in enum class edu.macalester.graphics.Image.PixelFormat
Four array elements per pixel: [alpha, red, green, blue, alpha, red, green, blue…].
atAngle(double) - Static method in class edu.macalester.graphics.Point
Returns the unit vector at the given angle in radians.

B

B - Enum constant in enum class edu.macalester.graphics.events.Key
 
BACKSLASH - Enum constant in enum class edu.macalester.graphics.events.Key
 
BACKTICK - Enum constant in enum class edu.macalester.graphics.events.Key
 
BOLD - Enum constant in enum class edu.macalester.graphics.FontStyle
 
BOLD_ITALIC - Enum constant in enum class edu.macalester.graphics.FontStyle
 
Button - Class in edu.macalester.graphics.ui
 
Button(String) - Constructor for class edu.macalester.graphics.ui.Button
 

C

C - Enum constant in enum class edu.macalester.graphics.events.Key
 
CANCEL - Enum constant in enum class edu.macalester.graphics.events.Key
 
CanvasWindow - Class in edu.macalester.graphics
A window frame that can contain graphical objects.
CanvasWindow(String, int, int) - Constructor for class edu.macalester.graphics.CanvasWindow
Opens a new window for drawing.
CAPS_LOCK - Enum constant in enum class edu.macalester.graphics.events.Key
 
CENTER - Enum constant in enum class edu.macalester.graphics.TextAlignment
The x coordinate of the GraphicsText is the center of each line of text.
changed() - Method in class edu.macalester.graphics.GraphicsGroup
 
changed() - Method in class edu.macalester.graphics.GraphicsObject
Triggers a notifications to observers that this object's appearance has changed.
changed() - Method in class edu.macalester.graphics.GraphicsText
 
changed() - Method in class edu.macalester.graphics.ui.Button
 
CLEAR - Enum constant in enum class edu.macalester.graphics.events.Key
 
closeWindow() - Method in class edu.macalester.graphics.CanvasWindow
Closes the canvas window.
COMMA - Enum constant in enum class edu.macalester.graphics.events.Key
 
COMMAND_OR_META - Enum constant in enum class edu.macalester.graphics.events.Key
 
COMMAND_OR_META - Enum constant in enum class edu.macalester.graphics.events.ModifierKey
The command key on macOS.
CONTEXT_MENU - Enum constant in enum class edu.macalester.graphics.events.Key
 
CONTROL - Enum constant in enum class edu.macalester.graphics.events.Key
 
CONTROL - Enum constant in enum class edu.macalester.graphics.events.ModifierKey
The control (or ctrl) key.

D

D - Enum constant in enum class edu.macalester.graphics.events.Key
 
DELETE_OR_BACKSPACE - Enum constant in enum class edu.macalester.graphics.events.Key
 
distance(Point) - Method in class edu.macalester.graphics.Point
Returns the distance between this point and another point.
DOWN_ARROW - Enum constant in enum class edu.macalester.graphics.events.Key
 
draw() - Method in class edu.macalester.graphics.CanvasWindow
Immediately draws the currently added graphics objects to the screen.
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.Arc
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.Ellipse
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.GraphicsGroup
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.GraphicsObject
For internal use.
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.GraphicsText
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.Image
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.Line
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.Path
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.Rectangle
 
drawInLocalCoordinates(Graphics2D) - Method in class edu.macalester.graphics.ui.Button
 

E

E - Enum constant in enum class edu.macalester.graphics.events.Key
 
edu.macalester.graphics - package edu.macalester.graphics
 
edu.macalester.graphics.events - package edu.macalester.graphics.events
 
edu.macalester.graphics.ui - package edu.macalester.graphics.ui
 
Ellipse - Class in edu.macalester.graphics
An ellipse that can be drawn on the screen.
Ellipse(double, double, double, double) - Constructor for class edu.macalester.graphics.Ellipse
Creates an ellipse whose upper left is at (x,y), and which has the specified width and height.
enabled - Static variable in class edu.macalester.graphics.FrameRateReporter
 
END - Enum constant in enum class edu.macalester.graphics.events.Key
 
equals(Object) - Method in class edu.macalester.graphics.GraphicsObject
Two GraphicsObjects are equal if are of the same class and have the same shape (position, rotation, scale, vertices), regardless of appearance (color and stroke width).
equals(Object) - Method in class edu.macalester.graphics.Point
Two points are equal if they have the same coordinates.
EQUALS - Enum constant in enum class edu.macalester.graphics.events.Key
 
ESCAPE - Enum constant in enum class edu.macalester.graphics.events.Key
 

F

F - Enum constant in enum class edu.macalester.graphics.events.Key
 
F1 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F10 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F11 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F12 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F13 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F14 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F15 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F16 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F17 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F18 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F19 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F2 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F20 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F21 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F22 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F23 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F24 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F3 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F4 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F5 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F6 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F7 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F8 - Enum constant in enum class edu.macalester.graphics.events.Key
 
F9 - Enum constant in enum class edu.macalester.graphics.events.Key
 
Fillable - Interface in edu.macalester.graphics
A graphical object with an interior than can be filled with a color or pattern.
FontStyle - Enum Class in edu.macalester.graphics
A typography style.
FORWARD_DELETE - Enum constant in enum class edu.macalester.graphics.events.Key
 
FrameRateReporter - Class in edu.macalester.graphics
 
FrameRateReporter() - Constructor for class edu.macalester.graphics.FrameRateReporter
 

G

G - Enum constant in enum class edu.macalester.graphics.events.Key
 
getAdvance() - Method in class edu.macalester.graphics.GraphicsText
Returns how far after this text any subsequent text should appear.
getAlignment() - Method in class edu.macalester.graphics.GraphicsText
Determines how each line of this text is aligned horizontally relative to the x coordinate of GraphicsObject.getPosition().
getAnchor() - Method in class edu.macalester.graphics.GraphicsObject
The point relative to which scaling and rotation occur.
getBounds() - Method in class edu.macalester.graphics.Arc
 
getBounds() - Method in class edu.macalester.graphics.Ellipse
 
getBounds() - Method in class edu.macalester.graphics.GraphicsGroup
 
getBounds() - Method in class edu.macalester.graphics.GraphicsObject
Returns the bounding box of this graphics object in its local coordinates.
getBounds() - Method in class edu.macalester.graphics.GraphicsText
 
getBounds() - Method in class edu.macalester.graphics.Image
 
getBounds() - Method in class edu.macalester.graphics.Line
 
getBounds() - Method in class edu.macalester.graphics.Path
 
getBounds() - Method in class edu.macalester.graphics.Rectangle
 
getBounds() - Method in class edu.macalester.graphics.ui.Button
 
getBoundsInParent() - Method in class edu.macalester.graphics.GraphicsObject
Returns an axis-aligned bounding rectangle for this graphics object in its parent’s coordinate space, accounting for this object’s scaling and rotation.
getCanvas() - Method in class edu.macalester.graphics.GraphicsObject
Returns the window that this Object is inside, or null if it does not belong to a window.
getCenter() - Method in class edu.macalester.graphics.CanvasWindow
Returns the center of the window’s visible content area.
getCenter() - Method in class edu.macalester.graphics.GraphicsObject
Returns the center of this shape's bounding box.
getDelta() - Method in class edu.macalester.graphics.events.MouseMotionEvent
Returns the difference between the mouse's previous and current positions.
getElementAt(double, double) - Method in class edu.macalester.graphics.CanvasWindow
Returns the topmost graphical object underneath position x, y.
getElementAt(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Returns the topmost graphical object that touches the given position in the parent’s coordinate space.
getElementAt(Point) - Method in class edu.macalester.graphics.CanvasWindow
Returns the topmost graphical object underneath position x, y.
getElementAt(Point) - Method in class edu.macalester.graphics.GraphicsGroup
Returns the topmost graphical object that touches the given position.
getElementAtLocalCoordinates(double, double) - Method in class edu.macalester.graphics.GraphicsGroup
Returns the topmost child of this group that touches position x, y.
getElementAtLocalCoordinates(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Returns the topmost graphical object that touches the given position in this object’s coordinate space.
getEmbeddedComponent() - Method in class edu.macalester.graphics.GraphicsObject
For internal use only.
getEmbeddedComponent() - Method in class edu.macalester.graphics.ui.Button
 
getEqualityAttributes() - Method in class edu.macalester.graphics.Arc
 
getEqualityAttributes() - Method in class edu.macalester.graphics.Ellipse
 
getEqualityAttributes() - Method in class edu.macalester.graphics.GraphicsGroup
 
getEqualityAttributes() - Method in class edu.macalester.graphics.GraphicsObject
For internal use only.
getEqualityAttributes() - Method in class edu.macalester.graphics.GraphicsText
 
getEqualityAttributes() - Method in class edu.macalester.graphics.Image
 
getEqualityAttributes() - Method in class edu.macalester.graphics.Line
 
getEqualityAttributes() - Method in class edu.macalester.graphics.Path
 
getEqualityAttributes() - Method in class edu.macalester.graphics.Rectangle
 
getEqualityAttributes() - Method in class edu.macalester.graphics.ui.Button
 
getFillColor() - Method in class edu.macalester.graphics.Ellipse
 
getFillColor() - Method in interface edu.macalester.graphics.Fillable
Returns the color to fillColor that will be used to fill this shape if it is filled.
getFillColor() - Method in class edu.macalester.graphics.GraphicsText
 
getFillColor() - Method in class edu.macalester.graphics.Path
 
getFillColor() - Method in class edu.macalester.graphics.Rectangle
 
getHeight() - Method in class edu.macalester.graphics.CanvasWindow
Returns the height of the window's visible content area, not including any title bar and border.
getHeight() - Method in class edu.macalester.graphics.GraphicsObject
Returns the height of this graphics object, in its local coordinates.
getImageHeight() - Method in class edu.macalester.graphics.Image
Get the height of the underlying image in pixels.
getImageWidth() - Method in class edu.macalester.graphics.Image
Get the width of the underlying image in pixels.
getKey() - Method in class edu.macalester.graphics.events.KeyboardEvent
The key that was pressed or released.
getKeysPressed() - Method in class edu.macalester.graphics.CanvasWindow
Returns all keys currently pressed on the keyboard.
getLineHeight() - Method in class edu.macalester.graphics.GraphicsText
Returns the standard spacing between lines of text in the current font, regardless of the height of the actual characters present.
getModifiers() - Method in class edu.macalester.graphics.events.AbstractEvent
Returns the set of modifier keys that were pressed when this event occurred.
getPosition() - Method in class edu.macalester.graphics.events.MouseButtonEvent
Returns the location of the mouse pointer when the button event occurred, in CanvasWindow coordinates.
getPosition() - Method in class edu.macalester.graphics.events.MouseMotionEvent
Returns mouse pointer's current location at the time of the event, in CanvasWindow coordinates.
getPosition() - Method in class edu.macalester.graphics.GraphicsObject
Gets the position of the object on the canvas.
getPreviousPosition() - Method in class edu.macalester.graphics.events.MouseMotionEvent
Returns mouse pointer's location at the time of the previously reported event, in CanvasWindow coordinates.
getRotation() - Method in class edu.macalester.graphics.GraphicsObject
This graphic object’s visual rotation in degrees from its neutral position.
getScale() - Method in class edu.macalester.graphics.GraphicsObject
Returns the scaling factor for this graphics object.
getScaleX() - Method in class edu.macalester.graphics.GraphicsObject
Returns the horizontal scaling factor for this graphics object.
getScaleY() - Method in class edu.macalester.graphics.GraphicsObject
Returns the vertical scaling factor for this graphics object.
getSize() - Method in class edu.macalester.graphics.GraphicsObject
Returns the width and height of this graphics object, in its local coordinates.
getSizeInParent() - Method in class edu.macalester.graphics.GraphicsObject
Returns an upper limit on the width and height of this graphics object as it appears in its parent’s coordinate space, after applying this object’s scaling and rotation.
getStrokeColor() - Method in class edu.macalester.graphics.Arc
 
getStrokeColor() - Method in class edu.macalester.graphics.Ellipse
 
getStrokeColor() - Method in class edu.macalester.graphics.GraphicsText
 
getStrokeColor() - Method in class edu.macalester.graphics.Line
 
getStrokeColor() - Method in class edu.macalester.graphics.Path
 
getStrokeColor() - Method in class edu.macalester.graphics.Rectangle
 
getStrokeColor() - Method in interface edu.macalester.graphics.Strokable
Returns the color to strokeColor that will be used to stroke this shape if it is stroked.
getStrokeWidth() - Method in class edu.macalester.graphics.Arc
 
getStrokeWidth() - Method in class edu.macalester.graphics.Ellipse
 
getStrokeWidth() - Method in class edu.macalester.graphics.GraphicsText
 
getStrokeWidth() - Method in class edu.macalester.graphics.Line
 
getStrokeWidth() - Method in class edu.macalester.graphics.Path
 
getStrokeWidth() - Method in class edu.macalester.graphics.Rectangle
 
getStrokeWidth() - Method in interface edu.macalester.graphics.Strokable
Returns the thickness of the stroke in pixels.
getText() - Method in class edu.macalester.graphics.GraphicsText
The text that will appear on the screen as graphics.
getText() - Method in class edu.macalester.graphics.ui.TextField
 
getWidth() - Method in class edu.macalester.graphics.CanvasWindow
Returns the width of the window's visible content area, not including any title bar and border.
getWidth() - Method in class edu.macalester.graphics.GraphicsObject
Returns the width of this graphics object, in its local coordinates.
getWindowFrame() - Method in class edu.macalester.graphics.CanvasWindow
Deprecated.
Do not mix Swing and kilt-graphics APIs
getWrappingWidth() - Method in class edu.macalester.graphics.GraphicsText
Inserts word wraps (soft line breaks) so that no line of text is wider than the given width.
getX() - Method in class edu.macalester.graphics.GraphicsObject
Returns the object's current horizontal position.
getX() - Method in class edu.macalester.graphics.Point
The vertical position of this point.
getX1() - Method in class edu.macalester.graphics.Line
Get the shape's x1 position
getX2() - Method in class edu.macalester.graphics.Line
Get the shape's x2 position
getY() - Method in class edu.macalester.graphics.GraphicsObject
Returns the object's current vertical position.
getY() - Method in class edu.macalester.graphics.Point
The horizontal position of this point.
getY1() - Method in class edu.macalester.graphics.Line
Get the shape's y1 position
getY2() - Method in class edu.macalester.graphics.Line
Get the shape's y2 position
graphicChanged(GraphicsObject) - Method in class edu.macalester.graphics.GraphicsGroup
Implementation of GraphicsObserver method.
graphicChanged(GraphicsObject) - Method in interface edu.macalester.graphics.GraphicsObserver
Called after any graphic state change.
GraphicsGroup - Class in edu.macalester.graphics
A group of graphical objects that can be added, moved, and removed as a single unit.
GraphicsGroup() - Constructor for class edu.macalester.graphics.GraphicsGroup
Constructs a new group positioned at (0, 0).
GraphicsGroup(double, double) - Constructor for class edu.macalester.graphics.GraphicsGroup
Constructs a new group.
GraphicsObject - Class in edu.macalester.graphics
Abstract class representing some sort of graphical object that can be drawn and positioned on a canvas.
GraphicsObject() - Constructor for class edu.macalester.graphics.GraphicsObject
 
GraphicsObserver - Interface in edu.macalester.graphics
Observer pattern interface used to notify a canvas to repaint if a graphical object has changed.
GraphicsText - Class in edu.macalester.graphics
A string of text that can be drawn to the screen.
GraphicsText() - Constructor for class edu.macalester.graphics.GraphicsText
Creates an instance with null text at (0,0)
GraphicsText(String) - Constructor for class edu.macalester.graphics.GraphicsText
Creates an instance with the given text at (0,0).
GraphicsText(String, double, double) - Constructor for class edu.macalester.graphics.GraphicsText
Creates drawable text at position (x,y)
GRAYSCALE - Enum constant in enum class edu.macalester.graphics.Image.PixelFormat
One array element per pixel, mapping to shades of gray.

H

H - Enum constant in enum class edu.macalester.graphics.events.Key
 
handleEvent(KeyboardEvent) - Method in interface edu.macalester.graphics.events.KeyboardEventHandler
 
handleEvent(MouseButtonEvent) - Method in interface edu.macalester.graphics.events.MouseButtonEventHandler
 
handleEvent(MouseMotionEvent) - Method in interface edu.macalester.graphics.events.MouseMotionEventHandler
 
hashCode() - Method in class edu.macalester.graphics.GraphicsObject
 
hashCode() - Method in class edu.macalester.graphics.Point
 
HELP - Enum constant in enum class edu.macalester.graphics.events.Key
 
HOME - Enum constant in enum class edu.macalester.graphics.events.Key
 

I

I - Enum constant in enum class edu.macalester.graphics.events.Key
 
Image - Class in edu.macalester.graphics
A bitmap image that can be drawn to the screen.
Image(double, double) - Constructor for class edu.macalester.graphics.Image
Creates an Image placeholder with no current image.
Image(double, double, BufferedImage) - Constructor for class edu.macalester.graphics.Image
Creates a bitmap image from the given BufferedImage.
Image(double, double, String) - Constructor for class edu.macalester.graphics.Image
Creates a bitmap image from the given file.
Image(int, int, byte[], Image.PixelFormat) - Constructor for class edu.macalester.graphics.Image
Creates a new image using raw pixel data from the given array.
Image(int, int, float[], Image.PixelFormat) - Constructor for class edu.macalester.graphics.Image
Creates a new image using raw pixel data from the given array.
Image(BufferedImage) - Constructor for class edu.macalester.graphics.Image
Creates a bitmap image from the given BufferedImage, positioned at (0, 0).
Image(String) - Constructor for class edu.macalester.graphics.Image
Creates a bitmap image from the given file, positioned at (0,0).
Image.PixelFormat - Enum Class in edu.macalester.graphics
Describes the presence and order of color channels in an array of pixels.
INSERT - Enum constant in enum class edu.macalester.graphics.events.Key
 
interpolate(Point, Point, double) - Static method in class edu.macalester.graphics.Point
Linearly interpolates by alpha between the two points.
intersects(GraphicsText) - Method in class edu.macalester.graphics.GraphicsText
Returns true if this text visually overlaps the given other text.
isClosed() - Method in class edu.macalester.graphics.Path
Returns true if this path loops back to its starting point.
isFilled() - Method in class edu.macalester.graphics.Ellipse
 
isFilled() - Method in interface edu.macalester.graphics.Fillable
Returns true if the interior of this shape will be filled with the fill color.
isFilled() - Method in class edu.macalester.graphics.GraphicsText
 
isFilled() - Method in class edu.macalester.graphics.Path
 
isFilled() - Method in class edu.macalester.graphics.Rectangle
 
isInBounds(Point) - Method in class edu.macalester.graphics.GraphicsObject
Returns true if the given point in the parent's coordinate space is within the bounds of this object.
isStroked() - Method in class edu.macalester.graphics.Arc
 
isStroked() - Method in class edu.macalester.graphics.Ellipse
 
isStroked() - Method in class edu.macalester.graphics.GraphicsText
 
isStroked() - Method in class edu.macalester.graphics.Line
 
isStroked() - Method in class edu.macalester.graphics.Path
 
isStroked() - Method in class edu.macalester.graphics.Rectangle
 
isStroked() - Method in interface edu.macalester.graphics.Strokable
Returns true if the interior of this shape will be stroked with the stroke color.
ITALIC - Enum constant in enum class edu.macalester.graphics.FontStyle
 
iterator() - Method in class edu.macalester.graphics.GraphicsGroup
Returns an iterator over the contents of this group, in the order they will be drawn.

J

J - Enum constant in enum class edu.macalester.graphics.events.Key
 

K

K - Enum constant in enum class edu.macalester.graphics.events.Key
 
Key - Enum Class in edu.macalester.graphics.events
A key on the keyboard.
KeyboardEvent - Class in edu.macalester.graphics.events
Carries information about a key being pressed or released.
KeyboardEvent(KeyEvent) - Constructor for class edu.macalester.graphics.events.KeyboardEvent
For internal use.
KeyboardEventHandler - Interface in edu.macalester.graphics.events
A listener that can receive events when the mouse moves.

L

L - Enum constant in enum class edu.macalester.graphics.events.Key
 
LEFT - Enum constant in enum class edu.macalester.graphics.TextAlignment
The x coordinate of the GraphicsText is the left edge of each line of text.
LEFT_ARROW - Enum constant in enum class edu.macalester.graphics.events.Key
 
LEFT_SQUARE_BRACKET - Enum constant in enum class edu.macalester.graphics.events.Key
 
Line - Class in edu.macalester.graphics
A line segment that can be drawn on the screen.
Line(double, double, double, double) - Constructor for class edu.macalester.graphics.Line
Creates a line starting at position (x1,y1) and ending at (x2,y2).
Line(Point, Point) - Constructor for class edu.macalester.graphics.Line
Creates a line starting at point1 and ending at point2.

M

M - Enum constant in enum class edu.macalester.graphics.events.Key
 
magnitude() - Method in class edu.macalester.graphics.Point
Returns the distance from this point to the origin.
makeTriangle(double, double, double, double, double, double) - Static method in class edu.macalester.graphics.Path
Convenience method to create a triangle from three individual coordinates.
max(Point, Point) - Static method in class edu.macalester.graphics.Point
Returns a point whose x is the maximum of the two given points' x coordinates, and whose y is the maximum of the two given points' y coordinates.
MAX - Static variable in class edu.macalester.graphics.Point
A point at (∞,∞).
min(Point, Point) - Static method in class edu.macalester.graphics.Point
Returns a point whose x is the minimum of the two given points' x coordinates, and whose y is the minimum of the two given points' y coordinates.
MIN - Static variable in class edu.macalester.graphics.Point
A point at (-∞,-∞).
MINUS - Enum constant in enum class edu.macalester.graphics.events.Key
 
ModifierKey - Enum Class in edu.macalester.graphics.events
 
MouseButtonEvent - Class in edu.macalester.graphics.events
Carries information about the mouse button being pressed or released.
MouseButtonEvent(MouseEvent) - Constructor for class edu.macalester.graphics.events.MouseButtonEvent
For internal use.
MouseButtonEventHandler - Interface in edu.macalester.graphics.events
A listener that can receive events when the mouse button is clicked or released.
MouseMotionEvent - Class in edu.macalester.graphics.events
Carries information about the mouse moving from one location to another.
MouseMotionEvent(MouseEvent, Point) - Constructor for class edu.macalester.graphics.events.MouseMotionEvent
For internal use.
MouseMotionEventHandler - Interface in edu.macalester.graphics.events
A listener that can receive events when the mouse moves.
moveBy(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Move the shape from its current (x, y) position to (x + dx, y + dy).
moveBy(Point) - Method in class edu.macalester.graphics.GraphicsObject
Offsets the shape from its current position within its parent by the given delta.

N

N - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_0 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_1 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_2 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_3 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_4 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_5 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_6 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_7 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_8 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_9 - Enum constant in enum class edu.macalester.graphics.events.Key
 
NUM_LOCK - Enum constant in enum class edu.macalester.graphics.events.Key
 

O

O - Enum constant in enum class edu.macalester.graphics.events.Key
 
onChange(Consumer<String>) - Method in class edu.macalester.graphics.ui.TextField
 
onCharacterTyped(Consumer<Character>) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will be notified when the use types a combination of keys that produce a character.
onClick(MouseButtonEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when the mouse button goes down and then up inside the window without moving significantly (i.e.
onClick(Runnable) - Method in class edu.macalester.graphics.ui.Button
 
onDrag(MouseMotionEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when the mouse moves over the window with the button down.
ONE_ONE - Static variable in class edu.macalester.graphics.Point
The point (1,1).
onKeyDown(KeyboardEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when a key on the keyboard is pressed.
onKeyUp(KeyboardEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when a key on the keyboard is released.
onMouseDown(MouseButtonEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when the mouse button goes down inside the window.
onMouseMove(MouseMotionEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when the mouse moves over the window with the button up.
onMouseUp(MouseButtonEventHandler) - Method in class edu.macalester.graphics.CanvasWindow
Adds a listener that will receive an event when the mouse button goes up inside the window.
OPTION_OR_ALT - Enum constant in enum class edu.macalester.graphics.events.ModifierKey
The option key on macOS, or alt key on Windows.
ORIGIN - Static variable in class edu.macalester.graphics.Point
The point (0,0).

P

P - Enum constant in enum class edu.macalester.graphics.events.Key
 
PAGE_DOWN - Enum constant in enum class edu.macalester.graphics.events.Key
 
PAGE_UP - Enum constant in enum class edu.macalester.graphics.events.Key
 
Path - Class in edu.macalester.graphics
An arbitrary path or polygon with straight sides, possibly self-intersecting.
Path(Point...) - Constructor for class edu.macalester.graphics.Path
Creates a closed polygon from vertices passed as separate arguments.
Path(List<Point>) - Constructor for class edu.macalester.graphics.Path
Create a closed polygon whose vertices comes from the given list of points.
Path(List<Point>, boolean) - Constructor for class edu.macalester.graphics.Path
Create an optionally closed path whose vertices comes from the given list of points.
pause(double) - Method in class edu.macalester.graphics.CanvasWindow
Pauses the program for the given time in milliseconds.
pause(long) - Method in class edu.macalester.graphics.CanvasWindow
Pauses the program for the given time in milliseconds.
PAUSE - Enum constant in enum class edu.macalester.graphics.events.Key
 
performEventAction(Runnable) - Method in class edu.macalester.graphics.CanvasWindow
For internal use.
PERIOD - Enum constant in enum class edu.macalester.graphics.events.Key
 
PLAIN - Enum constant in enum class edu.macalester.graphics.FontStyle
 
Point - Class in edu.macalester.graphics
A point in two-dimensional space.
Point(double, double) - Constructor for class edu.macalester.graphics.Point
Creates a point with the given horizontal and vertical components.
Point(Point2D) - Constructor for class edu.macalester.graphics.Point
Converts a Java AWT Point2D to a kilt-graphics Point.
Polygon - Class in edu.macalester.graphics
Deprecated.
Use Path instead
Polygon(Point...) - Constructor for class edu.macalester.graphics.Polygon
Deprecated.
 
Polygon(List<Point>) - Constructor for class edu.macalester.graphics.Polygon
Deprecated.
 
PRINTSCREEN - Enum constant in enum class edu.macalester.graphics.events.Key
 

Q

Q - Enum constant in enum class edu.macalester.graphics.events.Key
 

R

R - Enum constant in enum class edu.macalester.graphics.events.Key
 
Rectangle - Class in edu.macalester.graphics
A rectangle that can be drawn on the screen.
Rectangle(double, double, double, double) - Constructor for class edu.macalester.graphics.Rectangle
Creates a rectangle whose upper left is at (x,y) with the specified width and height.
Rectangle(Point, Point) - Constructor for class edu.macalester.graphics.Rectangle
Creates a rectangle with the given upper left corner and size.
remove(GraphicsObject) - Method in class edu.macalester.graphics.CanvasWindow
Removes the object from being drawn
remove(GraphicsObject) - Method in class edu.macalester.graphics.GraphicsGroup
Removes the object from being drawn
removeAll() - Method in class edu.macalester.graphics.CanvasWindow
Removes all of the objects currently drawn on the canvas.
removeAll() - Method in class edu.macalester.graphics.GraphicsGroup
Removes all of the objects in this group
removeObserver(GraphicsObserver) - Method in class edu.macalester.graphics.GraphicsObject
Removes the given observer.
renderToBuffer(BufferedImage) - Method in class edu.macalester.graphics.GraphicsObject
Renders this graphics object to an offscreen pixel buffer.
RETURN_OR_ENTER - Enum constant in enum class edu.macalester.graphics.events.Key
 
RGB - Enum constant in enum class edu.macalester.graphics.Image.PixelFormat
Three array elements per pixel: [red, green, blue, red, green, blue…].
RIGHT - Enum constant in enum class edu.macalester.graphics.TextAlignment
The x coordinate of the GraphicsText is the right edge of each line of text.
RIGHT_ARROW - Enum constant in enum class edu.macalester.graphics.events.Key
 
RIGHT_SQUARE_BRACKET - Enum constant in enum class edu.macalester.graphics.events.Key
 
rotate(double) - Method in class edu.macalester.graphics.Point
Returns the point rotated around the origin by the given angle in radians.
rotate(double, Point) - Method in class edu.macalester.graphics.Point
Returns the point rotated around a given axis point by the given angle in radians.
rotateBy(double) - Method in class edu.macalester.graphics.GraphicsObject
Rotates the object around its anchor point by the given number of degrees.

S

S - Enum constant in enum class edu.macalester.graphics.events.Key
 
scale(double) - Method in class edu.macalester.graphics.Point
Multiplies this point's coordinates by a scalar.
scale(double, double) - Method in class edu.macalester.graphics.Point
Multiplies x by sx and y by sy.
screenShot() - Method in class edu.macalester.graphics.CanvasWindow
Captures a screenshot of the currently drawn canvas' contents to an image.
screenShot(String) - Method in class edu.macalester.graphics.CanvasWindow
Saves a screenshot of the currently drawn canvas' contents to the filename specified as a parameter
SCROLL_LOCK - Enum constant in enum class edu.macalester.graphics.events.Key
 
SEMICOLON - Enum constant in enum class edu.macalester.graphics.events.Key
 
setAlignment(TextAlignment) - Method in class edu.macalester.graphics.GraphicsText
 
setAnchor(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Fixes scaling and rotation around the given coordinate.
setAnchor(Point) - Method in class edu.macalester.graphics.GraphicsObject
Changes the point relative to which scaling and rotation occur.
setBackground(Color) - Method in class edu.macalester.graphics.ui.TextField
 
setBackground(Paint) - Method in class edu.macalester.graphics.CanvasWindow
Changes the background color of the window.
setCenter(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Moves the shape so its bounding box is centered at the given point.
setCenter(Point) - Method in class edu.macalester.graphics.GraphicsObject
Moves the shape so its bounding box is centered at the given point.
setEndPosition(double, double) - Method in class edu.macalester.graphics.Line
Sets the line's ending position to (x, y) without affecting the start position.
setEndPosition(Point) - Method in class edu.macalester.graphics.Line
Sets the line's ending position to the given point without affecting the end position.
setFillColor(Paint) - Method in class edu.macalester.graphics.Ellipse
 
setFillColor(Paint) - Method in interface edu.macalester.graphics.Fillable
Sets the fill color to the given color.
setFillColor(Paint) - Method in class edu.macalester.graphics.GraphicsText
 
setFillColor(Paint) - Method in class edu.macalester.graphics.Path
 
setFillColor(Paint) - Method in class edu.macalester.graphics.Rectangle
 
setFilled(boolean) - Method in class edu.macalester.graphics.Ellipse
 
setFilled(boolean) - Method in interface edu.macalester.graphics.Fillable
Causes the shape to be filled with the fill color when it is drawn.
setFilled(boolean) - Method in class edu.macalester.graphics.GraphicsText
 
setFilled(boolean) - Method in class edu.macalester.graphics.Path
 
setFilled(boolean) - Method in class edu.macalester.graphics.Rectangle
 
setFont(FontStyle, double) - Method in class edu.macalester.graphics.GraphicsText
Changes the size and style of the font while preserving the font family.
setFont(Font) - Method in class edu.macalester.graphics.GraphicsText
Deprecated.
Use setFont(family, style, size) instead
setFont(String, FontStyle, double) - Method in class edu.macalester.graphics.GraphicsText
Changes the font in which the text is rendered.
setFontSize(double) - Method in class edu.macalester.graphics.GraphicsText
Changes the size of text displayed, preserving the font family and style.
setFontStyle(FontStyle) - Method in class edu.macalester.graphics.GraphicsText
Changes the font style of text displayed, preserving the font family and size.
setImagePath(String) - Method in class edu.macalester.graphics.Image
Changes the image displayed by this graphics element.
setMaxHeight(double) - Method in class edu.macalester.graphics.Image
Causes the image to shrink (preserving aspect ratio) if the image height is larger than the given maximum height.
setMaxWidth(double) - Method in class edu.macalester.graphics.Image
Causes the image to shrink (preserving aspect ratio) if the image width is larger than the given maximum width.
setPosition(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Moves this object to the given position.
setPosition(Point) - Method in class edu.macalester.graphics.GraphicsObject
Moves this object to the given position.
setRotation(double) - Method in class edu.macalester.graphics.GraphicsObject
Changes this graphic object’s visual rotation from its neutral position.
setScale(double) - Method in class edu.macalester.graphics.GraphicsObject
Scales this object uniformly, setting both the horizontal and vertical scaling factor to the given value.
setScale(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Stretches / shrinks this graphics object by the given factor.
setScale(Point) - Method in class edu.macalester.graphics.GraphicsObject
Changes this graphics object's scaling factor.
setSize(double, double) - Method in class edu.macalester.graphics.Ellipse
Changes the width and height of the ellipse, preserving its upper left corner's position.
setSize(double, double) - Method in class edu.macalester.graphics.Rectangle
Changes the width and height of the rectangle, preserving its upper left corner's position.
setSize(Point) - Method in class edu.macalester.graphics.Ellipse
Changes the width and height of the ellipse, preserving the position of its upper left corner.
setSize(Point) - Method in class edu.macalester.graphics.Rectangle
Changes the width and height of the rectangle, preserving its upper left corner's position.
setStartPosition(double, double) - Method in class edu.macalester.graphics.Line
Sets the line's starting position to (x, y) without affecting the end position.
setStartPosition(Point) - Method in class edu.macalester.graphics.Line
Sets the line's starting position to the given point without affecting the end position.
setStrokeColor(Paint) - Method in class edu.macalester.graphics.Arc
 
setStrokeColor(Paint) - Method in class edu.macalester.graphics.Ellipse
 
setStrokeColor(Paint) - Method in class edu.macalester.graphics.GraphicsText
 
setStrokeColor(Paint) - Method in class edu.macalester.graphics.Line
 
setStrokeColor(Paint) - Method in class edu.macalester.graphics.Path
 
setStrokeColor(Paint) - Method in class edu.macalester.graphics.Rectangle
 
setStrokeColor(Paint) - Method in interface edu.macalester.graphics.Strokable
Sets the stroke color to the given color.
setStroked(boolean) - Method in class edu.macalester.graphics.Arc
 
setStroked(boolean) - Method in class edu.macalester.graphics.Ellipse
 
setStroked(boolean) - Method in class edu.macalester.graphics.GraphicsText
 
setStroked(boolean) - Method in class edu.macalester.graphics.Line
 
setStroked(boolean) - Method in class edu.macalester.graphics.Path
 
setStroked(boolean) - Method in class edu.macalester.graphics.Rectangle
 
setStroked(boolean) - Method in interface edu.macalester.graphics.Strokable
Causes the shape to be stroked with the stroke color when it is drawn.
setStrokeWidth(double) - Method in class edu.macalester.graphics.Arc
 
setStrokeWidth(double) - Method in class edu.macalester.graphics.Ellipse
 
setStrokeWidth(double) - Method in class edu.macalester.graphics.GraphicsText
 
setStrokeWidth(double) - Method in class edu.macalester.graphics.Line
 
setStrokeWidth(double) - Method in class edu.macalester.graphics.Path
 
setStrokeWidth(double) - Method in class edu.macalester.graphics.Rectangle
 
setStrokeWidth(double) - Method in interface edu.macalester.graphics.Strokable
Sets how thick the stroke is.
setText(String) - Method in class edu.macalester.graphics.GraphicsText
 
setText(String) - Method in class edu.macalester.graphics.ui.TextField
 
setVertices(List<Point>) - Method in class edu.macalester.graphics.Path
Replaces the path's coordinates, preserving its open/close status.
setVertices(List<Point>, boolean) - Method in class edu.macalester.graphics.Path
Changes the verices of this path, replacing any existing ones.
setWrappingWidth(double) - Method in class edu.macalester.graphics.GraphicsText
 
setX(double) - Method in class edu.macalester.graphics.GraphicsObject
Changes this object's horizontal position while preserving its vertical position.
setY(double) - Method in class edu.macalester.graphics.GraphicsObject
Changes this object's vertical position while preserving its horizontal position.
SHIFT - Enum constant in enum class edu.macalester.graphics.events.Key
 
SHIFT - Enum constant in enum class edu.macalester.graphics.events.ModifierKey
The shift key.
SHORTCUT - Enum constant in enum class edu.macalester.graphics.events.ModifierKey
The platform-dependent primary modifier key for menu shortcuts: command (cloverleaf-like symbol) on macOS, control on Windows.
SLASH - Enum constant in enum class edu.macalester.graphics.events.Key
 
SPACE - Enum constant in enum class edu.macalester.graphics.events.Key
 
Strokable - Interface in edu.macalester.graphics
A graphical object that has an outline, which can have a color and thickness.
subtract(Point) - Method in class edu.macalester.graphics.Point
Treats p like a displacement vector and subtracts it from the current point

T

T - Enum constant in enum class edu.macalester.graphics.events.Key
 
TAB - Enum constant in enum class edu.macalester.graphics.events.Key
 
testHit(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Tests whether the given point is on the boundary or interior of this graphic object’s shape.
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.Arc
 
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.Ellipse
 
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.GraphicsGroup
Tests whether the point (x, y) hits some shape inside this group.
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.GraphicsObject
Tests whether the given point is inside the boundary or interior of this object’s shape.
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.GraphicsText
 
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.Image
Tests whether the point (x, y) touches the image.
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.Line
 
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.Path
Tests whether the given point is on the interior of this path.
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.Rectangle
 
testHitInLocalCoordinates(double, double) - Method in class edu.macalester.graphics.ui.Button
 
TextAlignment - Enum Class in edu.macalester.graphics
Describes how GraphicsText horizontally aligns text relative to its x position.
TextField - Class in edu.macalester.graphics.ui
 
TextField() - Constructor for class edu.macalester.graphics.ui.TextField
 
tick() - Method in class edu.macalester.graphics.FrameRateReporter
 
toByteArray(Image.PixelFormat) - Method in class edu.macalester.graphics.Image
Returns the pixels in this image as an array of bytes, one byte per color channel per pixel, interleaved in the order specified by format.
toFloatArray(Image.PixelFormat) - Method in class edu.macalester.graphics.Image
Returns the pixels in this image as an array of floats, one number per color channel per pixel, interleaved in the order specified by format.
toPoint2D() - Method in class edu.macalester.graphics.Point
Converts this point to the Java AWT Point2D.
toString() - Method in class edu.macalester.graphics.Ellipse
 
toString() - Method in class edu.macalester.graphics.events.KeyboardEvent
 
toString() - Method in class edu.macalester.graphics.events.MouseButtonEvent
 
toString() - Method in class edu.macalester.graphics.events.MouseMotionEvent
 
toString() - Method in class edu.macalester.graphics.GraphicsGroup
 
toString() - Method in class edu.macalester.graphics.Image
 
toString() - Method in class edu.macalester.graphics.Line
 
toString() - Method in class edu.macalester.graphics.Path
Returns a string representation of the Polygon
toString() - Method in class edu.macalester.graphics.Point
 
toString() - Method in class edu.macalester.graphics.Rectangle
Returns a string representation of the rectangle
toString() - Method in class edu.macalester.graphics.ui.TextField
 

U

U - Enum constant in enum class edu.macalester.graphics.events.Key
 
UNIT_X - Static variable in class edu.macalester.graphics.Point
The point (1,0).
UNIT_Y - Static variable in class edu.macalester.graphics.Point
The point (0,1).
UNKNOWN - Enum constant in enum class edu.macalester.graphics.events.Key
A key that either Java or kilt-graphics does not recognize.
UP_ARROW - Enum constant in enum class edu.macalester.graphics.events.Key
 

V

V - Enum constant in enum class edu.macalester.graphics.events.Key
 
valueOf(String) - Static method in enum class edu.macalester.graphics.events.Key
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.macalester.graphics.events.ModifierKey
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.macalester.graphics.FontStyle
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.macalester.graphics.Image.PixelFormat
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.macalester.graphics.TextAlignment
Returns the enum constant of this class with the specified name.
values() - Static method in enum class edu.macalester.graphics.events.Key
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.macalester.graphics.events.ModifierKey
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.macalester.graphics.FontStyle
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.macalester.graphics.Image.PixelFormat
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.macalester.graphics.TextAlignment
Returns an array containing the constants of this enum class, in the order they are declared.

W

W - Enum constant in enum class edu.macalester.graphics.events.Key
 
WINDOWS - Enum constant in enum class edu.macalester.graphics.events.Key
 
withX(double) - Method in class edu.macalester.graphics.Point
Returns a point with the same y as this one, but a different x.
withY(double) - Method in class edu.macalester.graphics.Point
Returns a point with the same x as this one, but a different y.
wrapAround(Point) - Method in class edu.macalester.graphics.Point
Makes the coordinates of the input point “wrap around” as if moving in a toroidal space extending from 0 to maxBounds.x, and from 0 to maxBounds.y: coordinates that go off one edge move to the other edge.
wrapAround(Point, Point) - Method in class edu.macalester.graphics.Point
Makes the coordinates of the input point “wrap around” as if moving in a toroidal space: coordinates that go off one side move to the other side.

X

X - Enum constant in enum class edu.macalester.graphics.events.Key
 

Y

Y - Enum constant in enum class edu.macalester.graphics.events.Key
 

Z

Z - Enum constant in enum class edu.macalester.graphics.events.Key
 
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 and Interfaces|All Packages