|
Java Statistical Classes | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.geom.AffineTransform
|
+--jsc.swt.virtualgraphics.VirtualTransform
This class represents a 2D transformation from virtual co-ordinates
to device (pixel) co-ordinates. It provides a simpler version of the
AffineTransform class for transformations from a rectangular virtual
co-ordinate system to device co-ordinates (e.g. the pixel co-ordinates of a
panel or window). The simplified transformation
consists of a scaling and translation such that a rectangular area
is defined with an arbitrary origin in its lower-left corner and
arbitrary x (horizontal) and y (vertical) scales. The x direction
is from left to right and the y direction is from bottom to top.
| Field Summary |
| Fields inherited from class java.awt.geom.AffineTransform |
TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE |
| Constructor Summary | |
VirtualTransform(VRectangle vr,
Dimension deviceSize)
Creates the virtual transformation. |
|
| Method Summary | |
VDimension |
pixelToVirtual(Dimension d)
Returns the virtual dimension corresponding to a device (pixel) dimension d. |
VPoint |
pixelToVirtual(Point p)
Returns the virtual point corresponding to a device (pixel) point p. |
| Methods inherited from class java.awt.geom.AffineTransform |
clone, concatenate, createInverse, createTransformedShape, deltaTransform, deltaTransform, equals, getDeterminant, getMatrix, getRotateInstance, getRotateInstance, getScaleInstance, getScaleX, getScaleY, getShearInstance, getShearX, getShearY, getTranslateInstance, getTranslateX, getTranslateY, getType, hashCode, inverseTransform, inverseTransform, isIdentity, preConcatenate, rotate, rotate, scale, setToIdentity, setToRotation, setToRotation, setToScale, setToShear, setToTranslation, setTransform, setTransform, shear, toString, transform, transform, transform, transform, transform, transform, translate |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VirtualTransform(VRectangle vr,
Dimension deviceSize)
vr - the virtual rectangle.deviceSize - the size of the device in pixels.| Method Detail |
public VDimension pixelToVirtual(Dimension d)
d - the device (pixel) dimension.
public VPoint pixelToVirtual(Point p)
p - the device (pixel) point.
|
Java Statistical Classes | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||