Jcalcomp:Calcomp Simulator in Java


Preface

The language

Class and Method

Coordinate system

1) Screen coordinates

2) World coordinates

3) User's coordinates


Class and Method description

Jcalcomp


Syntax
public abstract class Jcalcomp

Description
This Jcalcomp class is basic engineering drawing tool by usage of Graphics. It provides user's riginal coordinates, contour line graph and 3D graph.
Jcalcomp is extended from Applet class and user should make thier own class extended from Jcalcomp.
This class is named after Calcomp plotter library, which has been used as a flatbet plotter library in FORTRAN library.


MEMBER SUMMARY


Constructors & Destructors



Basic 2D Drawing Methods



2D Function Drawing Methods



2D Contour Line Drawing Methods



3D Drawing Methods



3D Contour Line Drawing Methods




void Jcalcomp()




PURPOSE : Construct a new Calcomp simulator area

SYNTAX : Jcalcomp(int igx0,int igy0,int igx1,int igy1,double gx0,double gy0,double wid,double hei,int iback,int ibord)
Jcalcomp(int igx0,int igy0,int igx1,int igy1,double gx0,double gy0,double wid,double hei,int iback,int ibord)

DESCRIPTION : Fix 2 points specified by left-up and right down corners. Corresponding world coordinate system is developed.

PARAMETERS : int igx0,int igy0,int igx1,int igy1,double gx0,double gy0,double wid,double hei,int iback,int ibord

RETURNS : none

SEEALSO :

EXAMPLE :


void u_plot()


PURPOSE : 2D Plotting in User's Coordinates

SYNTAX : plot(Graphics g,double x,double y,int n)

DESCRIPTION : Fix 2 points specified by left-up and right down corners. Corresponding world coordinate system is developed.

PARAMETERS :

RETURNS : none

SEEALSO :

EXAMPLE


void symbol()


PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void number()


PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void marker()


PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS : x,y,n

RETURNS :

SEEALSO :

EXAMPLE :


void newpen() 
PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void axis()


PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void lgaxis() 

PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void lline() 

PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void lgline() 

PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void lstyle() 

PURPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void scale() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

x,n,dx

RETURNS :

SEEALSO :

EXAMPLE


void lgscal() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void wcircle() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void wpieslice() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void wlattice() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void box_plt() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void mshplt() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void fmxmn() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void contor() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


int find() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void bprep() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void pplot() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void prect() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void phline() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE


void pcontor() 
URPOSE :

SYNTAX :

DESCRIPTION :

PARAMETERS :

RETURNS :

SEEALSO :

EXAMPLE