|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.swing.graphics.Scale
This class contains static methods which are useful for the ScaleBorder class and any potential subclasses.
Field Summary | |
static int |
BOTH_TICKS
|
static int |
LEFT_TICKS
|
protected static float |
primaryTickSize
The size in pixels of the primary tick marks. |
static int |
RIGHT_TICKS
|
protected static float |
secondaryTickSize
The size in pixels of the secondary tick marks. |
Constructor Summary | |
Scale()
|
Method Summary | |
static void |
drawLinearScale(double value0,
double value1,
int scaleSize,
int minPrimary,
int minSeparation,
int location,
GeneralPath primaryTicks,
GeneralPath secondaryTicks,
String[] label,
double[] position)
|
static String |
fixedPrecision(double d,
int ndigits)
|
static float |
getPrimaryTickSize()
Get the primary tick size (in pixels). |
static float |
getSecondaryTickSize()
Get the secondary tick size (in pixels). |
static void |
setTickSizes(float primaryTickSize,
float secondaryTickSize)
Set the tick sizes (in pixels) for the primary and secondary tick marks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEFT_TICKS
public static final int RIGHT_TICKS
public static final int BOTH_TICKS
protected static float primaryTickSize
protected static float secondaryTickSize
Constructor Detail |
public Scale()
Method Detail |
public static void setTickSizes(float primaryTickSize, float secondaryTickSize)
public static float getPrimaryTickSize()
public static float getSecondaryTickSize()
public static void drawLinearScale(double value0, double value1, int scaleSize, int minPrimary, int minSeparation, int location, GeneralPath primaryTicks, GeneralPath secondaryTicks, String[] label, double[] position)
public static String fixedPrecision(double d, int ndigits)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |