Class PairOfEyes
-
- All Implemented Interfaces:
-
crackers.kobots.graphics.animation.Ocular
public final class PairOfEyes implements Ocular
-
-
Constructor Summary
Constructors Constructor Description PairOfEyes(Eye left, Eye right, Color backgroundColor)
-
Method Summary
Modifier and Type Method Description <Error class: unknown class>getBounds()final EyegetLeft()final EyegetRight()final ColorgetBackgroundColor()<Error class: unknown class>clear(Graphics2D graphics)Clear the area bounded by bounds to the backgroundColor. Unitdraw(Graphics2D graphics)Draw both eyes. final Unitinvoke(Expression leftExpression, Expression rightExpression)Operator to apply an expression to both eyes. final Unitinvoke(Pair<Expression, Expression> expressions)Convenience operator to apply expressions to the eyes. final Unitinvoke(Expression expression)Convenience operator to apply the same expression to both eyes. -
-
Method Detail
-
getBounds
<Error class: unknown class> getBounds()
-
getBackgroundColor
final Color getBackgroundColor()
-
clear
<Error class: unknown class> clear(Graphics2D graphics)
Clear the area bounded by bounds to the backgroundColor.
-
draw
Unit draw(Graphics2D graphics)
Draw both eyes.
-
invoke
final Unit invoke(Expression leftExpression, Expression rightExpression)
Operator to apply an expression to both eyes. Example:
eyes(CannedExpressions.CLOSED.expression, CannedExpressions.NORMAL.expression)
-
invoke
final Unit invoke(Pair<Expression, Expression> expressions)
Convenience operator to apply expressions to the eyes. Example:
eyes(Pair(CannedExpressions.CLOSED.expression, CannedExpressions.NORMAL.expression))
-
invoke
final Unit invoke(Expression expression)
Convenience operator to apply the same expression to both eyes. Example:
eyes(CannedExpressions.EYE_ROLL.expression)
-
-
-
-