org.jmat.gui.plotObjects
Class Base

java.lang.Object
  |
  +--org.jmat.gui.plotObjects.Base
All Implemented Interfaces:
CommandLinePrintable
Direct Known Subclasses:
Base2D, Base3D

public abstract class Base
extends java.lang.Object
implements CommandLinePrintable


Field Summary
protected  int[] axesScales
           
protected  Coord[] baseCoords
           
protected  double borderCoeff
           
static double DEFAULT_BORDER
           
protected  int dimension
           
static int LINEAR
           
static int LOG
           
protected  int[] panelSize
           
protected  double[] precisionUnit
           
protected  double[] Xmax
           
protected  double[] Xmin
           
 
Constructor Summary
Base(Coord[] b)
           
Base(double[] Xmi, double[] Xma, int[] dim, int[] scales, double bC)
           
 
Method Summary
 boolean authorizedLogScale(int i)
           
protected abstract  double[] baseCoordsScreenProjectionRatio(double[] xyz)
           
 void dilate(int[] screenOrigin, double[] screenRatio)
           
 int getAxeScale(int i)
           
 int[] getAxesScales()
           
 double getBorder()
           
 Coord[] getCoords()
           
 int getDimension()
           
 RelativeCoord getGravCenter()
           
 double[] getMaxBounds()
           
 double[] getMinBounds()
           
 double[] getPrecisionUnit()
           
 void includeInBounds(double[] XY)
           
 void includeInBounds(int dim, double XY)
           
 int[] screenProjection(double[] pC)
           
 void setAxesScales(int[] scales)
           
 void setAxesScales(int i, int scale)
           
 void setBaseCoords()
           
 void setFixedBounds(double[] Xmi, double[] Xma)
           
 void setFixedBounds(int i, double Xmi, double Xma)
           
 void setnRoundBounds(double[] Xmi, double[] Xma)
           
 void setnRoundBounds(int i, double Xmi, double Xma)
           
 void setPanelSize(int[] dim)
           
 void toCommandLine(java.lang.String title)
           
 void translate(int[] screenTranslation)
           
 void updateScreenCoord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

LOG

public static final int LOG
See Also:
Constant Field Values

DEFAULT_BORDER

public static double DEFAULT_BORDER

baseCoords

protected Coord[] baseCoords

precisionUnit

protected double[] precisionUnit

Xmin

protected double[] Xmin

Xmax

protected double[] Xmax

panelSize

protected int[] panelSize

dimension

protected int dimension

borderCoeff

protected double borderCoeff

axesScales

protected int[] axesScales
Constructor Detail

Base

public Base(Coord[] b)

Base

public Base(double[] Xmi,
            double[] Xma,
            int[] dim,
            int[] scales,
            double bC)
Method Detail

setPanelSize

public void setPanelSize(int[] dim)

setAxesScales

public void setAxesScales(int[] scales)

setAxesScales

public void setAxesScales(int i,
                          int scale)

getBorder

public double getBorder()

getCoords

public Coord[] getCoords()

getDimension

public int getDimension()

getAxesScales

public int[] getAxesScales()

getAxeScale

public int getAxeScale(int i)

getMinBounds

public double[] getMinBounds()

getMaxBounds

public double[] getMaxBounds()

getPrecisionUnit

public double[] getPrecisionUnit()

setFixedBounds

public void setFixedBounds(int i,
                           double Xmi,
                           double Xma)

setFixedBounds

public void setFixedBounds(double[] Xmi,
                           double[] Xma)

setnRoundBounds

public void setnRoundBounds(int i,
                            double Xmi,
                            double Xma)

setnRoundBounds

public void setnRoundBounds(double[] Xmi,
                            double[] Xma)

includeInBounds

public void includeInBounds(int dim,
                            double XY)

includeInBounds

public void includeInBounds(double[] XY)

translate

public void translate(int[] screenTranslation)

dilate

public void dilate(int[] screenOrigin,
                   double[] screenRatio)

updateScreenCoord

public void updateScreenCoord()

setBaseCoords

public void setBaseCoords()

screenProjection

public int[] screenProjection(double[] pC)

baseCoordsScreenProjectionRatio

protected abstract double[] baseCoordsScreenProjectionRatio(double[] xyz)

getGravCenter

public RelativeCoord getGravCenter()

authorizedLogScale

public boolean authorizedLogScale(int i)

toCommandLine

public void toCommandLine(java.lang.String title)
Specified by:
toCommandLine in interface CommandLinePrintable