com.vodafone.v10.graphics.j3d
Class FigureLayout

java.lang.Object
  |
  +--com.vodafone.v10.graphics.j3d.FigureLayout

public class FigureLayout
extends java.lang.Object

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

FigureLayout

public FigureLayout()
FigureLayout constructor

FigureLayout

public FigureLayout(AffineTrans trans,
                    int x_scale,
                    int y_scale,
                    int cx,
                    int cy)
FigureLayout constructor
Parameters:
trans - Affine transform (null if transform not used)
x_scale - Scale in x direction
y_scale - Scale in y direction
cx - Center x coordinate in drawing range
cy - Center y coordinate in drawing range
Method Detail

getAffineTrans

public AffineTrans getAffineTrans()
Gets the affine transform.
Returns:
AffineTrans - The current affine transform

setAffineTrans

public void setAffineTrans(AffineTrans t)
Sets the affine transform.
Parameters:
t - Affine transform

getScaleX

public int getScaleX()
Gets the scale in the x direction.
Returns:
int - The current x-direction scale.

getScaleY

public int getScaleY()
Gets the scale in the y direction.
Returns:
int - The current y-direction scale.

setScale

public void setScale(int x_scale,
                     int y_scale)
Sets the scale for drawing.
The default is 512,512.
Parameters:
x_scale - X-direction scale
y_scale - Y-direction scale

getCenterX

public int getCenterX()
Gets the center x coordinate.
Returns:
int - The current center x coordinate

getCenterY

public int getCenterY()
Gets the center y coordinate.
Returns:
int - The current center y coordinate

setCenter

public void setCenter(int cx,
                      int cy)
Sets the model center for drawing.
The default is the center of the real screen size.
Parameters:
cx - The center x coordinate
cy - The center y coordinate


Copyright 2002,2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.