|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectEnvironment2D.Environment2D
public class Environment2D
Represents a 2D euclidean plane on which objects can be placed and manipulated.
| Constructor Summary | |
|---|---|
Environment2D()
|
|
| Method Summary | |
|---|---|
void |
addMember(Shape2D p_shape)
Adds a member to the plane so that it may be manipulated or displayed. |
void |
removeMember(Shape2D p_shape)
Removes a member from the plane. |
void |
view(java.awt.Graphics g,
Viewport2D p_view,
java.awt.Dimension p_graphicsSize)
Draws a set viewport onto a graphics plane, applying transformatinos as necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Environment2D()
| Method Detail |
|---|
public void addMember(Shape2D p_shape)
p_shape - A shape to add to the planepublic void removeMember(Shape2D p_shape)
p_shape - A reference to the shape to remove.
public void view(java.awt.Graphics g,
Viewport2D p_view,
java.awt.Dimension p_graphicsSize)
g - The graphics object on which to draw.p_view - A viewport defining the x, y, width and height to output from the plane.p_graphicsSize - The size of the graphics plane you wish to output onto (or the segment on it).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||