|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.Primitive
algoanim.primitives.Rect
public class Rect
Represents a simple rectangle defined by its upper left and its lower right corners.
| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.Primitive |
|---|
gen |
| Constructor Summary | |
|---|---|
Rect(RectGenerator rg,
Node upperLeftCorner,
Node lowerRightCorner,
java.lang.String name,
DisplayOptions display,
RectProperties rp)
Instantiates the Rect and calls the create() method of the
associated RectGenerator. |
|
| Method Summary | |
|---|---|
Node |
getLowerRight()
Returns the lower right corner of this Rect. |
RectProperties |
getProperties()
Returns the properties of this Rect. |
Node |
getUpperLeft()
Returns the upper left corner of this Rect. |
void |
setName(java.lang.String newName)
Sets the name of this Primitive. |
| Methods inherited from class algoanim.primitives.Primitive |
|---|
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, show, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rect(RectGenerator rg,
Node upperLeftCorner,
Node lowerRightCorner,
java.lang.String name,
DisplayOptions display,
RectProperties rp)
throws java.lang.IllegalArgumentException
Rect and calls the create() method of the
associated RectGenerator.
rg - the appropriate code Generator.upperLeftCorner - the upper left corner of this Rect.lowerRightCorner - the lower right corner of this Rect.name - the name of this Rect.display - [optional] the DisplayOptions of this
Rect.rp - [optional] the properties of this Rect.
java.lang.IllegalArgumentException| Method Detail |
|---|
public Node getUpperLeft()
Rect.
Rect.public Node getLowerRight()
Rect.
Rect.public RectProperties getProperties()
Rect.
Rect.public void setName(java.lang.String newName)
PrimitivePrimitive.
setName in class PrimitivenewName - the new name for this Primitive.Primitive.setName(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||