|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.coordsystem.CoordSystemUtilities
public class CoordSystemUtilities
Static class used by Charts for defining and building the default coordinate system throughout Openchart2.
| Field Summary | |
|---|---|
static int |
CLASSIC_COORD_SYSTEM
Indicator for using the ClassicCoordSystem by default |
private static int |
DefaultCoordSystem
The actual indicator for coordinate system defaults |
static int |
MAX
Internal constant refering to the max value index of a 2-element constraint array |
static int |
MIN
Internal constant refering to the min value index of a 2-element constraint array |
| Constructor Summary | |
|---|---|
CoordSystemUtilities()
|
|
| Method Summary | |
|---|---|
static CoordSystem |
BuildDefaultCoordSystem(ChartDataModel cdm)
Constructs the default coordinate system |
static int |
GetDefaultCoordSystem()
Returns the curret default coordinate system |
static double[] |
SafeMaxMin(double max,
double min)
Returns a safe estimate of min and max drawing values for an axis. |
static void |
SetDefaultCoordSystem(int i)
Sets the default coordinate system to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX
public static final int MIN
public static final int CLASSIC_COORD_SYSTEM
private static int DefaultCoordSystem
| Constructor Detail |
|---|
public CoordSystemUtilities()
| Method Detail |
|---|
public static int GetDefaultCoordSystem()
public static void SetDefaultCoordSystem(int i)
i - the identifier of the coordinate system stylepublic static CoordSystem BuildDefaultCoordSystem(ChartDataModel cdm)
cdm - the associated chart data model for the system
public static double[] SafeMaxMin(double max,
double min)
max - the original max valuemin - the originial min value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||