|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.gauger.ScaleTransform com.cosylab.gui.components.gauger.LinearVerticalTransform
public class LinearVerticalTransform
Defines vertical linear transform.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.cosylab.gui.components.gauger.ScaleTransform |
---|
ScaleTransform.ArcSegment, ScaleTransform.LineSegment, ScaleTransform.RectangleSegment, ScaleTransform.ScaleSegment |
Constructor Summary | |
---|---|
LinearVerticalTransform()
|
Method Summary | |
---|---|
void |
mapUVtoXY(java.awt.geom.Point2D scaleSpace,
java.awt.geom.Point2D cartesianSpace)
Maps the point specified with (u, v) coordinates in the scale space to cartesian space with coordinates (x, y). |
void |
mapXYtoUV(java.awt.geom.Point2D cartesianSpace,
java.awt.geom.Point2D scaleScape)
|
int |
measureTick(java.awt.Graphics g,
double x,
java.lang.String text)
Measues the width of tick label. |
double |
scaleHeight(double u)
Returns the height of scale in pixels at the specified location u in the scale space. |
double |
scaleWidth(double v)
Returns the width of scale in pixels at the specified location v in the scale space. |
void |
setParameters(int w,
int h,
int marginX,
int marginY,
int tickOffset)
Sets the component parameters for this transformation. |
Methods inherited from class com.cosylab.gui.components.gauger.ScaleTransform |
---|
addSegment, getAngle, getLabelPosition, getSegment, getSegmentCount, isPolar, mapUVtoXY, mapUVtoXY, setLabelPosition, setPolar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearVerticalTransform()
Method Detail |
---|
public void setParameters(int w, int h, int marginX, int marginY, int tickOffset)
ScaleTransform
setParameters
in class ScaleTransform
w
- width of the component that will display this transformationh
- height of the component that will display this transformationmarginX
- not usedmarginY
- not usedtickOffset
- space between the edge of the scale and the first tickScaleTransform.setParameters(int, int, int, int, int)
public void mapUVtoXY(java.awt.geom.Point2D scaleSpace, java.awt.geom.Point2D cartesianSpace)
ScaleTransform
mapUVtoXY
in class ScaleTransform
scaleSpace
- point in scale spacecartesianSpace
- point in cartesian spaceScaleTransform#mapUVtoXY(PointDouble, Point)
public void mapXYtoUV(java.awt.geom.Point2D cartesianSpace, java.awt.geom.Point2D scaleScape)
ScaleTransform#maxXYtoUV(Point, PointDouble)
public double scaleWidth(double v)
ScaleTransform
scaleWidth
in class ScaleTransform
ScaleTransform.scaleWidth(double)
public double scaleHeight(double u)
ScaleTransform
scaleHeight
in class ScaleTransform
ScaleTransform.scaleHeight(double)
public int measureTick(java.awt.Graphics g, double x, java.lang.String text)
ScaleTransform
measureTick
in class ScaleTransform
g
- Graphic context.x
- Relative position of tick.text
- Tick label.
ScaleTransform.measureTick(Graphics,
double, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |