|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.View
This class defines a view on a given child component.
A View consists of the following attributes:
| Constructor Summary | |
View()
Constructor for View. |
|
View(View view)
Copy constructor for views. |
|
| Method Summary | |
double |
getRotateAtX()
Returns the rotation pivot point's x coordinate. |
double |
getRotateAtY()
Returns the rotation pivot point's x coordinate. |
double |
getRotation()
Returns the angle. |
double |
getScaleX()
Returns the scaling in x-direction. |
double |
getScaleY()
Returns the scaling in y-direction. |
void |
getTransform(Transform2D xform)
Returns the transform that this View
defines. |
double |
getTranslateX()
Returns the x component for translation. |
double |
getTranslateY()
Returns the y component for translation. |
void |
set(View view)
Copies the attributes of another view into this view, effectively making a copy of the view. |
void |
setRotateAtX(double tx)
Sets the rotation pivot point's x coordinate. |
void |
setRotateAtY(double ty)
Sets the rotation pivot point's y coordinate. |
void |
setRotation(double angle)
Sets the angle for rotation. |
void |
setRotation(double angle,
double tx,
double ty)
Sets the angle for rotation and the rotation pivot point. |
void |
setScaleX(double sx)
Sets the scaling in x-direction. |
void |
setScaleY(double sy)
Sets the scaling in y-direction. |
void |
setTranslateX(double tx)
Sets the x component for translation. |
void |
setTranslateY(double ty)
Sets the y component for translation. |
java.lang.String |
toString()
Returns a string representation of the this View. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public View()
public View(View view)
view - the source View instance to copy values from.| Method Detail |
public double getTranslateX()
public final void set(View view)
view - the other view.public final void setTranslateX(double tx)
tx - The x component for translation.public final double getTranslateY()
public void setTranslateY(double ty)
ty - The y component for translation.public double getScaleX()
public void setScaleX(double sx)
sx - The scaling in x-direction.public double getScaleY()
public void setScaleY(double sy)
sy - The scaling in y-direction.public double getRotation()
public void setRotation(double angle)
angle - The angle to set
public void setRotation(double angle,
double tx,
double ty)
angle - The angle to settx - the x component of the rotation pivot point.ty - the y component of the rotation pivot point.public double getRotateAtX()
public void setRotateAtX(double tx)
tx - the rotation pivot point's x coordinate.public double getRotateAtY()
public void setRotateAtY(double ty)
ty - the rotation pivot point's y coordinate.public final void getTransform(Transform2D xform)
View
defines.
xform - the pointer to the element that should be
used for returning the value.public java.lang.String toString()
View.
View.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||