Package | Description |
---|---|
uwcse.animation | |
uwcse.graphics |
Constructor and Description |
---|
ShapeProp(Shape shape)
Create a new ShapeProp, given a standard shape from the UWCSE
graphics library (e.g., a Rectangle, Oval, Triangle, Line, or
Polygon)
|
Modifier and Type | Class and Description |
---|---|
class |
Arc
An arc shape.
|
class |
CurvedShape
An abstract class for curved shapes that fit within bounding
rectangles.
|
class |
ImageShape
A class for image shapes (e.g.
|
class |
Line
A line shape.
|
class |
Oval
An oval shape.
|
class |
Polygon
A polygon shape.
|
class |
PolyShape
An abstract superclass of various polygonal shapes.
|
class |
Rectangle
A rectangle shape.
|
class |
ShapeImpl
This is an abstract superclass of all shape objects.
|
class |
TextShape
TextShape is used for displaying text onto the GWindow.
|
class |
Triangle
A triangle shape.
|
Modifier and Type | Method and Description |
---|---|
Shape |
GWindow.intersects(Shape aShape)
Return the shape that the argument shape intersects with, or null if none.
|
Shape |
AppletGWindow.intersects(Shape aShape)
Return the shape that the argument shape intersects with, or null if none.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GWindow.add(Shape s)
Add the given shape and paint it onto the screen.
|
boolean |
AppletGWindow.add(Shape s)
Add the given shape and paint it onto the screen.
|
void |
GWindow.display(Shape s)
Simply adds this shape to the to-be-displayed queue.
|
void |
AppletGWindow.display(Shape s)
Simply adds this shape to the to-be-displayed queue.
|
boolean |
ShapeImpl.intersects(Shape s) |
boolean |
Shape.intersects(Shape other)
Return whether this shape's bounding box intersects with the
argument shape's bounding box.
|
Shape |
GWindow.intersects(Shape aShape)
Return the shape that the argument shape intersects with, or null if none.
|
Shape |
AppletGWindow.intersects(Shape aShape)
Return the shape that the argument shape intersects with, or null if none.
|
boolean |
GWindow.remove(Shape s)
Remove the given shape and repaint the screen.
|
boolean |
AppletGWindow.remove(Shape s)
Remove the given shape and repaint the screen.
|