Package | Description |
---|---|
student |
This package provides classes written for use in introductory
computer science courses.
|
student.testingsupport |
Modifier and Type | Method and Description |
---|---|
<T extends objectdraw.DrawableInterface> |
ObjectdrawTestCase.getAllDrawablesMatching(Class<T> type,
ObjectdrawFilter filter)
Look up all
DrawableInterface objects on the canvas of the
WindowController being tested by specifying their
class and an ObjectdrawFilter . |
List<objectdraw.DrawableInterface> |
ObjectdrawTestCase.getAllDrawablesMatching(ObjectdrawFilter filter)
Look up all
DrawableInterface objects on the canvas of the
WindowController being tested by specifying
an ObjectdrawFilter . |
<T extends objectdraw.DrawableInterface> |
ObjectdrawTestCase.getDrawable(Class<T> type,
ObjectdrawFilter filter)
Look up a
DrawableInterface object on the canvas of the
WindowController being tested by specifying its class
and an ObjectdrawFilter . |
objectdraw.DrawableInterface |
ObjectdrawTestCase.getDrawable(ObjectdrawFilter filter)
Look up a
DrawableInterface object on the canvas of the
WindowController being tested, using a filter to
specify which object you want. |
<T extends objectdraw.DrawableInterface> |
ObjectdrawTestCase.getFirstDrawableMatching(Class<T> type,
ObjectdrawFilter filter)
Look up a
DrawableInterface object on the canvas of the
WindowController being tested by specifying its class
and an ObjectdrawFilter . |
objectdraw.DrawableInterface |
ObjectdrawTestCase.getFirstDrawableMatching(ObjectdrawFilter filter)
Look up a
DrawableInterface object on the canvas of the
WindowController being tested by specifying
an ObjectdrawFilter . |
Modifier and Type | Method and Description |
---|---|
ObjectdrawFilter |
ObjectdrawFilter.and(ObjectdrawFilter otherFilter)
The "and" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|
protected abstract ObjectdrawFilter |
ObjectdrawFilter.Operator.applySelfTo(ObjectdrawFilter otherFilter)
Concrete subclasses must override this to implement an
operation on the filter being passed in to transform it into
another filter.
|
protected ObjectdrawFilter |
ObjectdrawFilter.BinaryOperator.applySelfTo(ObjectdrawFilter otherFilter)
Implements a composite filter based on a binary operation,
where the "left"/"first" filter is the parent from which this
class was created, and the "right"/"second" filter is the
argument supplied to this operation.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.colorIs(Color color)
Create a filter that checks a shape's color.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.heightIs(int value)
Create a filter that checks a shape's height.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.hiddenIs(boolean hidden)
Create a filter that checks whether a shape is hidden.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.isContainedWithin(Rectangle region)
Create a filter that checks whether a shape's bounding box
lies within a specific rectangle--that is, whether the entire
shape's area rather than just its top left corner, lies within
the specified region.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.isLocatedWithin(Rectangle region)
Create a filter that checks whether a shape's location (its
top left corner) lies within a specific rectangle.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.lineEndLocationIs(int x,
int y)
Create a filter that checks whether a line ends at a given
coordinate.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.lineEndLocationIs(objectdraw.Location location)
Create a filter that checks whether a line starts at a given
location.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.lineStartLocationIs(int x,
int y)
Create a filter that checks whether a line starts at a given
coordinate.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.lineStartLocationIs(objectdraw.Location location)
Create a filter that checks whether a line starts at a given
location.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.locationIs(int x,
int y)
Create a filter that checks a shape's location.
|
ObjectdrawFilter |
ObjectdrawFilter.BinaryOperator.not(ObjectdrawFilter otherFilter)
The "not" operator for negating an existing filter, when you
want to use parentheses to group its righthand argument.
|
static ObjectdrawFilter |
ObjectdrawFilter.ClientImports.not(ObjectdrawFilter otherFilter)
The "not" operator for negating an existing filter, when the not
operation is at the very beginning of the expression.
|
ObjectdrawFilter |
ObjectdrawFilter.or(ObjectdrawFilter otherFilter)
The "or" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.sizeIs(int width,
int height)
Create a filter that checks a shape's size.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.sizeIsWithin(int maxWidth,
int maxHeight)
Create a filter that checks a shape's size.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.textIs(String text)
Create a filter that checks the text of a shape by calling the
shape's
getText() method, if it has one. |
ObjectdrawFilter |
ObjectdrawFilter.Operator.typeIs(Class<? extends objectdraw.DrawableInterface> aClass)
Create a filter that checks the class of a shape.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.widthIs(int value)
Create a filter that checks a shape's width.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.xLocationIs(int x)
Create a filter that checks a shape's x-coordinate.
|
ObjectdrawFilter |
ObjectdrawFilter.Operator.yLocationIs(int y)
Create a filter that checks a shape's y-coordinate.
|
Modifier and Type | Method and Description |
---|---|
ObjectdrawFilter |
ObjectdrawFilter.and(ObjectdrawFilter otherFilter)
The "and" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|
protected abstract ObjectdrawFilter |
ObjectdrawFilter.Operator.applySelfTo(ObjectdrawFilter otherFilter)
Concrete subclasses must override this to implement an
operation on the filter being passed in to transform it into
another filter.
|
protected ObjectdrawFilter |
ObjectdrawFilter.BinaryOperator.applySelfTo(ObjectdrawFilter otherFilter)
Implements a composite filter based on a binary operation,
where the "left"/"first" filter is the parent from which this
class was created, and the "right"/"second" filter is the
argument supplied to this operation.
|
ObjectdrawFilter |
ObjectdrawFilter.BinaryOperator.not(ObjectdrawFilter otherFilter)
The "not" operator for negating an existing filter, when you
want to use parentheses to group its righthand argument.
|
static ObjectdrawFilter |
ObjectdrawFilter.ClientImports.not(ObjectdrawFilter otherFilter)
The "not" operator for negating an existing filter, when the not
operation is at the very beginning of the expression.
|
ObjectdrawFilter |
ObjectdrawFilter.or(ObjectdrawFilter otherFilter)
The "or" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|