|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsource.ucregents.playground.physics.DrawableAxes
public class DrawableAxes
This class is used for demonstration purposes to draw the axis and project all the polygons in the arena on to them. While drawing, efficiency is highly decreased
Constructor Summary | |
---|---|
DrawableAxes(int x_origin,
int y_origin)
|
|
DrawableAxes(java.awt.geom.Point2D.Double origin)
|
Method Summary | |
---|---|
void |
Draw(java.awt.Graphics2D g,
java.util.Vector<BaseEntity> entitiesToDrawAxes)
|
java.awt.geom.Point2D.Double |
getAxesOrigin()
Gets the current origin of the axes |
void |
setAxesOrigin(int x_origin,
int y_origin)
Moves the center of all of the axes around in the editor and arena |
void |
setAxesOrigin(java.awt.geom.Point2D.Double newOrigin)
Moves the center of all of the axes around in the editor and arena |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawableAxes(int x_origin, int y_origin)
public DrawableAxes(java.awt.geom.Point2D.Double origin)
Method Detail |
---|
public void Draw(java.awt.Graphics2D g, java.util.Vector<BaseEntity> entitiesToDrawAxes)
public java.awt.geom.Point2D.Double getAxesOrigin()
public void setAxesOrigin(int x_origin, int y_origin)
x_origin
- The new x coordinate for the origin of the axesy_origin
- The new y coordinate for the origin of the axespublic void setAxesOrigin(java.awt.geom.Point2D.Double newOrigin)
newOrigin
- The new origin for the axes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |