|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiTransforms
| Field Summary |
| Constructor Summary | |
MiTransforms()
|
|
| Method Summary | |
boolean |
boundsClipped(MiBounds bounds)
Return 'True' if rejected, i.e. |
void |
clearClipBounds()
|
void |
clearTransforms()
|
void |
dtow(MiBounds dBounds,
MiBounds wBounds)
Convert the given device space bounds to world space bounds. |
void |
dtow(MiDeviceBounds dBounds,
MiBounds wBounds)
Convert the given integer device space bounds to world space bounds. |
void |
dtow(MiDevicePoint dPoint,
MiDeviceVector dVector,
MiVector wVector)
Convert the vector at the given location in device space to the corresponding vector in world space. |
void |
dtow(MiDevicePoint dPoint,
MiPoint wPoint)
Convert the coordinate in integer device space to it's corresponding coordinate in world space. |
void |
dtow(MiPoint dPoint,
MiPoint wPoint)
Convert the coordinate in device space to it's corresponding coordinate in world space. |
void |
dtow(MiPoint dPoint,
MiVector dVector,
MiVector wVector)
Convert the vector at the given location in device space to the corresponding vector in world space. |
MiBounds |
getClipBounds()
|
MiBounds |
getClipBounds(MiBounds b)
|
MiVector |
getDeviceTranslation(MiVector vector)
Get the device translation. |
int |
getIndentX()
|
MiiCommandHandler |
getObserver()
Gets the observer that will be notified whenever this transform changes. |
double |
getRotation()
Get the current rotation in radians. |
MiPoint |
getRotationPoint(MiPoint center)
Get the point to rotate about. |
MiScale |
getScale(MiScale scale)
Get the horizontal and vertical scale factors. |
void |
getTotalDeviceTranslation(MiVector dVector)
|
MiVector |
getWorldTranslation(MiVector vector)
Get the world translation. |
void |
invalidateTransform()
|
boolean |
isPositionDependent()
Returns whether this transform has constant scaleFactors and translations across the world space. |
void |
popTransform()
|
void |
processCommand(java.lang.String command)
Processes the given command. |
void |
pushTransform(MiiTransform transform)
|
void |
rotate(double radians)
Adjust the rotation by the given amount. |
void |
scale(MiScale scale)
Increase/decrease the scale factor by the given amount. |
void |
setClipBounds(MiBounds bounds)
|
void |
setDeviceTranslation(MiVector vector)
Set the device translation to the given amount. |
void |
setIndentX(int indent)
|
void |
setObserver(MiiCommandHandler handler)
Specifies the observer that will be notified whenever this transform changes. |
void |
setRotation(double radians)
Set the rotation to the given amount. |
void |
setRotationPoint(MiPoint center)
Set the point to rotate about. |
void |
setScale(MiScale scale)
Set the scale factor to the given amount. |
void |
setWorldTranslation(MiVector vector)
Set the world translation to the given amount. |
java.lang.String |
toString()
Prints information about this transform. |
void |
translate(MiDeviceVector vector)
|
void |
translate(MiVector vector)
Adjust the world translation by the given amount. |
void |
validateTransform()
|
void |
wtod(MiBounds wBounds,
MiBounds dBounds)
Convert the given world space bounds to device space bounds. |
void |
wtod(MiBounds wBounds,
MiDeviceBounds dBounds)
Convert the given world space bounds to integer device space bounds. |
void |
wtod(MiPoint wPoint,
MiDevicePoint dPoint)
Convert the coordinate in world space to it's corresponding coordinate in device space. |
void |
wtod(MiPoint wPoint,
MiPoint dPoint)
Convert the coordinate in world space to it's corresponding coordinate in device space. |
void |
wtod(MiPoint wPoint,
MiVector wVector,
MiDeviceVector dVector)
Convert the vector at the given location in world space to the corresponding vector in device space. |
void |
wtod(MiPoint wPoint,
MiVector wVector,
MiVector dVector)
Convert the vector at the given location in world space to the corresponding vector in device space. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiTransforms()
| Method Detail |
public void setObserver(MiiCommandHandler handler)
setObserver in interface MiiTransformhandler - the observergetObserver()public MiiCommandHandler getObserver()
getObserver in interface MiiTransformsetObserver(com.swfm.mica.commands.MiiCommandHandler)public void setIndentX(int indent)
public int getIndentX()
public void setClipBounds(MiBounds bounds)
public MiBounds getClipBounds()
public MiBounds getClipBounds(MiBounds b)
public void clearClipBounds()
public void pushTransform(MiiTransform transform)
public void invalidateTransform()
public void validateTransform()
public void processCommand(java.lang.String command)
MiiCommandHandler
processCommand in interface MiiCommandHandlerpublic void popTransform()
public void clearTransforms()
public boolean boundsClipped(MiBounds bounds)
public boolean isPositionDependent()
isPositionDependent in interface MiiTransformpublic void scale(MiScale scale)
scale in interface MiiTransformscale - the scale that is combined with
the current scale factor.public void translate(MiVector vector)
translate in interface MiiTransformvector - the translation that is combined with
the current translation.public void rotate(double radians)
rotate in interface MiiTransformradians - the angle that is combined with
the current rotation.public void setScale(MiScale scale)
setScale in interface MiiTransformscale - the new scale factor.public MiScale getScale(MiScale scale)
getScale in interface MiiTransformscale - the (returned) scale factor.
public void setWorldTranslation(MiVector vector)
setWorldTranslation in interface MiiTransformvector - the new translation.public MiVector getWorldTranslation(MiVector vector)
getWorldTranslation in interface MiiTransformvector - the (returned) translation.
public void setDeviceTranslation(MiVector vector)
setDeviceTranslation in interface MiiTransformvector - the new translation.public MiVector getDeviceTranslation(MiVector vector)
getDeviceTranslation in interface MiiTransformvector - the (returned) translation.
public void setRotation(double radians)
setRotation in interface MiiTransformradians - the new angle of rotation.public double getRotation()
getRotation in interface MiiTransformpublic void setRotationPoint(MiPoint center)
setRotationPoint in interface MiiTransformcenter - the center of rotation.public MiPoint getRotationPoint(MiPoint center)
getRotationPoint in interface MiiTransformcenter - the (returned) center of rotation.
public void translate(MiDeviceVector vector)
public void dtow(MiDevicePoint dPoint,
MiPoint wPoint)
dtow in interface MiiTransformdPoint - the device space coordinatewPoint - the (returned) world space coordinate
public void dtow(MiPoint dPoint,
MiPoint wPoint)
dtow in interface MiiTransformdPoint - the device space coordinatewPoint - the (returned) world space coordinate
public void dtow(MiPoint dPoint,
MiVector dVector,
MiVector wVector)
dtow in interface MiiTransformdPoint - the device space coordinatedVector - the device space vectorwVector - the (returned) world space vector
public void dtow(MiDevicePoint dPoint,
MiDeviceVector dVector,
MiVector wVector)
dtow in interface MiiTransformdPoint - the device space coordinatedVector - the device space vectorwVector - the (returned) world space vector
public void dtow(MiBounds dBounds,
MiBounds wBounds)
dtow in interface MiiTransformdBounds - the device space boundswBounds - the (returned) world space bounds
public void dtow(MiDeviceBounds dBounds,
MiBounds wBounds)
dtow in interface MiiTransformdBounds - the device space boundswBounds - the (returned) world space bounds
public void wtod(MiPoint wPoint,
MiDevicePoint dPoint)
wtod in interface MiiTransformwPoint - the world space coordinatedPoint - the (returned) device space coordinate
public void wtod(MiPoint wPoint,
MiPoint dPoint)
wtod in interface MiiTransformwPoint - the world space pointdPoint - the device space point
public void wtod(MiPoint wPoint,
MiVector wVector,
MiVector dVector)
wtod in interface MiiTransformwPoint - the world space coordinatewVector - the world space vectordVector - the (returned) device space vector
public void wtod(MiPoint wPoint,
MiVector wVector,
MiDeviceVector dVector)
wtod in interface MiiTransformwPoint - the world space coordinatewVector - the world space vectordVector - the (returned) device space vector
public void wtod(MiBounds wBounds,
MiBounds dBounds)
wtod in interface MiiTransformwBounds - the world space boundsdBounds - the (returned) device space bounds
public void wtod(MiBounds wBounds,
MiDeviceBounds dBounds)
wtod in interface MiiTransformwBounds - the world space boundsdBounds - the (returned) device space boundspublic java.lang.String toString()
public void getTotalDeviceTranslation(MiVector dVector)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||