|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.motorola.graphics.j3d.FigureLayout
Model drawing layout information class.
This class stores the model orientation, position and size inside the drawing
range designated by Graphics3D#drawFigure.
| Constructor Summary | |
FigureLayout()
FigureLayout constructor |
|
FigureLayout(AffineTrans trans,
int x_scale,
int y_scale,
int cx,
int cy)
FigureLayout constructor |
|
| Method Summary | |
AffineTrans |
getAffineTrans()
Gets the affine transform. |
int |
getCenterX()
Gets the center x coordinate. |
int |
getCenterY()
Gets the center y coordinate. |
int |
getScaleX()
Gets the scale in the x direction. |
int |
getScaleY()
Gets the scale in the y direction. |
void |
setAffineTrans(AffineTrans t)
Sets the affine transform. |
void |
setCenter(int cx,
int cy)
Sets the model center for drawing. The default is the center of the real screen size. |
void |
setScale(int x_scale,
int y_scale)
Sets the scale for drawing. The default is 512,512. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FigureLayout()
public FigureLayout(AffineTrans trans,
int x_scale,
int y_scale,
int cx,
int cy)
trans - Affine transform (null if transform not used)x_scale - Scale in x directiony_scale - Scale in y directioncx - Center x coordinate in drawing rangecy - Center y coordinate in drawing range| Method Detail |
public AffineTrans getAffineTrans()
public void setAffineTrans(AffineTrans t)
t - Affine transformpublic int getScaleX()
public int getScaleY()
public void setScale(int x_scale,
int y_scale)
x_scale - X-direction scaley_scale - Y-direction scalepublic int getCenterX()
public int getCenterY()
public void setCenter(int cx,
int cy)
cx - The center x coordinatecy - The center y coordinate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||