Gav
Class JPGraphTools

java.lang.Object
  |
  +--Gav.JPGraphTools

class JPGraphTools
extends java.lang.Object

class JPGraphTools : Various Graphic functions


Field Summary
(package private)  float lHeight
          Logical size (theorical size for calculation)
(package private)  float lWidth
          Logical size (theorical size for calculation)
(package private)  int MaxX
          Current Canvas size
(package private)  int MaxY
          Current Canvas size
(package private)  int OrigOffsetX
          Origin Offsets
(package private)  int OrigOffsetY
          Origin Offsets
(package private)  float pHeight
          Pixel size according to logical and real sizes
(package private)  float pWidth
          Pixel size according to logical and real sizes
(package private) static int REPRANISOTROPIC
           
(package private) static int REPRBASE
          Type of Representation
(package private)  int ReprCrt
          Current Reprensentation
(package private) static int REPRISOTROPIC
           
 
Constructor Summary
JPGraphTools()
          default constructor.
JPGraphTools(int mx, int my, int repr)
          Constructor.
 
Method Summary
 int GetRepresentation()
          Get Representation
 int LToRX(float x_)
          Logical to system display conversion Return : x=x, y=MaxY-y
 int LToRY(float y_)
           
 void Resize(int mx, int my)
          set current working size
 void Resize(int mx, int my, float lx, float ly)
          set current working and logical size
 float RToLX(int x_)
          System display to Logical conversion
 float RToLY(int y_)
           
 void SetLogicSize(float w, float h)
          set logical size
 void SetOrigOffset(int x, int y)
          set current origin offsets
 void SetRepresentation(int r)
          set Representation
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

REPRBASE

static final int REPRBASE
Type of Representation

REPRANISOTROPIC

static final int REPRANISOTROPIC

REPRISOTROPIC

static final int REPRISOTROPIC

ReprCrt

int ReprCrt
Current Reprensentation

lWidth

float lWidth
Logical size (theorical size for calculation)

lHeight

float lHeight
Logical size (theorical size for calculation)

pWidth

float pWidth
Pixel size according to logical and real sizes

pHeight

float pHeight
Pixel size according to logical and real sizes

MaxX

int MaxX
Current Canvas size

MaxY

int MaxY
Current Canvas size

OrigOffsetX

int OrigOffsetX
Origin Offsets

OrigOffsetY

int OrigOffsetY
Origin Offsets
Constructor Detail

JPGraphTools

public JPGraphTools()
default constructor. Init size to 0

JPGraphTools

public JPGraphTools(int mx,
                    int my,
                    int repr)
Constructor. Receives size of the working Canvas
Method Detail

SetOrigOffset

public void SetOrigOffset(int x,
                          int y)
set current origin offsets

Resize

public void Resize(int mx,
                   int my)
set current working size

Resize

public void Resize(int mx,
                   int my,
                   float lx,
                   float ly)
set current working and logical size

SetRepresentation

public void SetRepresentation(int r)
set Representation

GetRepresentation

public int GetRepresentation()
Get Representation

SetLogicSize

public void SetLogicSize(float w,
                         float h)
set logical size

LToRX

public int LToRX(float x_)
Logical to system display conversion Return : x=x, y=MaxY-y

LToRY

public int LToRY(float y_)

RToLX

public float RToLX(int x_)
System display to Logical conversion

RToLY

public float RToLY(int y_)