|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.scenario.scenegraph.SGNode
com.sun.scenario.scenegraph.SGParent
com.sun.scenario.scenegraph.SGFilter
com.sun.scenario.scenegraph.SGTransform
com.sun.scenario.scenegraph.SGTransform.Translate
public abstract static class SGTransform.Translate
A subclass of SGTransform that applies a simple translation
transform.
A translation transform simply adds a constant value to the X
and Y coordinates of the source coordinates.
The transform x',y' of a source point x,y is
represented by the equations:
x' = x + transx;
y' = y + transy;
Instances of this class can only be created by calling the
SGTransform.createTranslation(double, double, com.sun.scenario.scenegraph.SGNode) factory method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.scenario.scenegraph.SGTransform |
|---|
SGTransform.Affine, SGTransform.Rotate, SGTransform.Scale, SGTransform.Shear, SGTransform.Translate |
| Field Summary |
|---|
| Fields inherited from class com.sun.scenario.scenegraph.SGFilter |
|---|
BOTH, CACHED, NONE, TRANSFORMED, UNTRANSFORMED |
| Method Summary | |
|---|---|
abstract double |
getTranslateX()
Returns the translation offset applied to the X coordinates. |
abstract double |
getTranslateY()
Returns the translation offset applied to the Y coordinates. |
void |
reset()
Resets this transform node to an identity operation which has no effect on the input points. |
abstract void |
setTranslateX(double tx)
Sets the translation offset applied to the X coordinates. |
abstract void |
setTranslateY(double ty)
Sets the translation offset applied to the Y coordinates. |
abstract void |
setTranslation(double tx,
double ty)
Sets the X and Y translation offets to the specified
new values. |
abstract void |
translateBy(double tx,
double ty)
Offsets the X and Y translation offets by the specified
additional offset values. |
| Methods inherited from class com.sun.scenario.scenegraph.SGTransform |
|---|
canSkipRendering, concatenateInto, createAffine, createAffineTransform, createRotation, createScale, createShear, createTranslation, getBounds, getTransform, invalidateTransform, inverseTransform, transform |
| Methods inherited from class com.sun.scenario.scenegraph.SGFilter |
|---|
canExpandBounds, canSkipChildren, getChild, getChildren, needsSourceContent, remove, remove, renderFinalImage, renderFromCache, setChild, setupRenderGraphics |
| Methods inherited from class com.sun.scenario.scenegraph.SGNode |
|---|
addFocusListener, addKeyListener, addMouseListener, addNodeListener, contains, getAttribute, getBounds, getCursor, getID, getPanel, getParent, globalToLocal, isMouseBlocker, isVisible, localToGlobal, pick, putAttribute, removeFocusListener, removeKeyListener, removeMouseListener, removeNodeListener, render, requestFocus, setCursor, setID, setMouseBlocker, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public abstract double getTranslateX()
X coordinates.
X translationpublic abstract double getTranslateY()
Y coordinates.
Y translationpublic abstract void setTranslateX(double tx)
X coordinates.
tx - the new X translationpublic abstract void setTranslateY(double ty)
Y coordinates.
ty - the new Y translation
public abstract void setTranslation(double tx,
double ty)
X and Y translation offets to the specified
new values.
tx - the new X translation offsetty - the new Y translation offset
public abstract void translateBy(double tx,
double ty)
X and Y translation offets by the specified
additional offset values.
This method is equivalent to:
tt.setTranslation(tt.getTranslateX() + tx, tt.getTranslateY() + ty);
tx - the additional X translation offsetty - the additional Y translation offsetpublic void reset()
SGTransform
reset in class SGTransform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||