|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.gauger.ScaleTransformFactory
public class ScaleTransformFactory
Factory class that creates transform implementations based on dimensions of the gauger.
Field Summary | |
---|---|
static short |
AUTOMATIC_SHAPE
Scale shape |
static short |
FULL_CIRCULAR_SHAPE
Circular polar scale |
static short |
HORIZONTAL_CIRCULAR_SHAPE
Horizontal polar scale |
static short |
HORIZONTAL_LINEAR_SHAPE
Horizontal linear scale |
static short |
VERTICAL_CIRCULAR_SHAPE
Vertical polar scale |
static short |
VERTICAL_LINEAR_SHAPE
Vertical linear scale |
Constructor Summary | |
---|---|
ScaleTransformFactory()
|
Method Summary | |
---|---|
static ScaleTransform |
createTransform(int w,
int h)
Creates a new instance of transform that is best suited for given size. |
protected static int |
getOptimalRenderer(int w,
int h)
Determines the optimal renderer for this scale, given the width and height of the area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short AUTOMATIC_SHAPE
public static final short HORIZONTAL_LINEAR_SHAPE
public static final short HORIZONTAL_CIRCULAR_SHAPE
public static final short FULL_CIRCULAR_SHAPE
public static final short VERTICAL_CIRCULAR_SHAPE
public static final short VERTICAL_LINEAR_SHAPE
Constructor Detail |
---|
public ScaleTransformFactory()
Method Detail |
---|
protected static int getOptimalRenderer(int w, int h)
w
- inth
- int
public static ScaleTransform createTransform(int w, int h)
w
- inth
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |