All Packages Class Hierarchy This Package Previous Next Index
Class figPac.Figure
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----figPac.Figure
- public class Figure
- extends Canvas
- implements MouseListener, MouseMotionListener
A Figure is to be thought of as a sequence of figure elements. Technically,
a figure element is any instance of any class that implements the interface
fElement. Most figure elements will be lines, polygons, arcs and so
on. I have provided classes for these standard figure elements.
As well there is an fElement, called fEnv, that is used to change the drawing
environment (that is, to change fonts, colours and so on) and fElements, like
fRotate, fTranslate and fScale, that are used to change the coordinate system.
Finally there is a special fElement, called fSubFigure, that creates a subfigure,
which itself consists of a sequence of fElements. It is designed to allow recursive
use, so that you can have subfigures of subfigures of subfigures and so on.
-
adobe2tex
- The factor converting Adobe to Tex points.
-
backgroundEnv
- The table of environment variables for the backgroundImg.
-
backgroundImg
- An offscreen Image for use as a background.
-
backgroundUsr2dvc
- The map from user to device coordinates taking into account changes made by the fElements of the background.
-
baseUsr2dvc
- The map from user to device coordinates before any changes are made by fElements or
by dragging or zooming.
-
bottommargin
- The size of the bottom margin in pixels
-
CLOSED
-
-
cm2pix
- The factor converting centimeters to pixels.
-
current_zoom
-
-
defaultBgColor
- The default screen foreground colour.
-
defaultFgColor
- The default screen background colour.
-
defaultFont
- The default screen font.
-
defaultPsFont
- The default PostScript font.
-
dragZoomMap
- The map that implements coordinate changes due to dragging and zooming.
-
elements
- The list of figure elements
-
env
- The table of environment variables.
-
FILLED
-
-
gfx
- The Graphics instance for the offscreen Image img.
-
img
- An offscreen Image for double buffering.
-
in2pix
- The factor converting inches to pixels.
-
leftmargin
- The size of the left margin in pixels
-
max_zoom
-
-
min_zoom
-
-
OPEN
-
-
psFileIsStandAlone
- If you wish your to embed your ps file in, for example, a TeX file,
psFileIsStandAlone should be false; otherwise otherwise, it should be true.
-
pt2pix
- The factor converting Adobe points to pixels.
-
rightmargin
- The size of the right margin in pixels
-
showCanvasBoundary
- Turns display of canvas boundary on/off
-
showCoords
- Turns the coordinate display on/off
-
showFigureBoundary
- Turns display of figure boundary (excluding margins) on/off
-
topmargin
- The size of the top margin in pixels
-
useDrag
- Turns drag on/off
-
useZoom
- Turns zoom on/off
-
usr2dvc
- The map from user to device coordinates taking into account changes made by fElements and
dragging or zooming.
-
xmax
- The largest value of the x coordinate.
-
xmin
- The smallest value of the x coordinate.
-
xsize
- The width of the image, excluding margins, in pixels.
-
Xsize
- The width of the canvas (including margins) in pixels.
-
ymax
- The largest value of the y coordinate.
-
ymin
- The smallest value of the y coordinate.
-
Ysize
- The height of the canvas (including margins) in pixels.
-
ysize
- The height of the image, excluding margins, in pixels.
-
zoom_factor
-
-
Figure()
- This method creates an empty figure that is 5.5 inches wide and 4.5 inches
high that will NOT be displayed on the screen.
-
Figure(Container)
- This method creates an empty figure that is 5.5 inches wide and 4.5 inches
high that will be displayed on the screen.
-
Figure(Container, double, double)
- This method creates an empty figure that is x inches wide and y inches
high and that will be displayed on the screen.
-
Figure(Container, double, double, String)
- This method creates an empty figure that is x units wide and y units
high and that will be displayed on the screen.
-
Figure(double, double)
- This method creates an empty figure that is x inches wide and y inches
high and that will NOT be displayed on the screen.
-
Figure(double, double, String)
- This method creates an empty figure that is x units wide and y units
high and that will NOT be displayed on the screen.
-
addActionListener(ActionListener)
-
-
append(fElement)
- Appends an element to the figure.
-
bottommargin(double)
- Sets the amount of white space at the bottom of the canvas.
-
bottommargin(double, String)
- Sets the amount of white space at the bottom of the canvas.
-
clear()
- Deletes all figure elements from the figure.
-
clearEnv()
- Clears the table of environment variables.
-
fArrow(double, double, double, double)
- Shortform for append(new fArrow(double x1, double y1, double x2, double y2) )
-
fArrow(double[], double[])
- Shortform for append(new fArrow(double from[], double to[]) )
-
fArrowhead(double, double, double)
- Shortform for append(new fArrowhead(double x, double y, double angle) )
-
fArrowhead(double, double, double, double)
- Shortform for append(new fArrowhead(double xcentre, double ycentre, double xto, double yto) )
-
fArrowhead(double[], double)
- Shortform for append(new fArrowhead(double centre[], double angle) )
-
fArrowhead(double[], double[])
- Shortform for append(new fArrowhead(double centre[], double[] to) )
-
fAxes()
- Shortform for append(new fAxes() )
-
fAxes(String, String)
- Shortform for append(new fAxes(String xlabel, String ylabel) )
-
fAxes(String, String, double, double, double, double)
- Shortform for append(new fAxes(String xlabel, String ylabel,
double xmin, double xmax, double ymin, double ymax) )
-
fAxes(String, String, double, double, double, double, double, double, double, double, int, int)
- Shortform for append(new fAxes(String xlabel, String ylabel,
double xmin, double xmax, double ymin, double ymax,
double xintvl, double yintvl,
double firstXtick, double firstYtick,
int xprec, int yprec) )
-
fCurve(S2S)
- Shortform for append(new fCurve(S2S F) )
-
fCurve(S2S, double, double)
- Shortform for append(new fCurve(S2S F, double xmin, double xmax) )
-
fCurve(S2S, double, double, long)
- Shortform for append(new fCurve(S2S F, double xmin, double xmax, long type) )
-
fCurve(S2S, long)
- Shortform for append(new fCurve(S2S F, long type) )
-
fCurve(S2V)
- Shortform for append(new fCurve(S2V XY))
-
fCurve(S2V, double, double)
- Shortform for append(new fCurve(S2V XY, double tmin, double tmax) )
-
fCurve(S2V, double, double, long)
- Shortform for append(new fCurve(S2V XY, double tmin, double tmax, long type) )
-
fCurve(S2V, long)
- Shortform for append(new fCurve(S2V XY, long type) )
-
fDisk(double, double, double)
- Shortform for append(new fDisk(double x, double y, double radius) )
-
fDisk(double, double, double, double)
- Shortform for append(new fDisk(double x, double y, double a, double b) )
-
fDisk(double, double, double, double, long)
- Shortform for append(new fDisk(double x, double y, double a, double b, long type) )
-
fDisk(double, double, double, long)
- Shortform for append(new fDisk(double x, double y, double radius, long type) )
-
fEnv(Object, double)
- Shortform for append(new fEnv(Object key, double value) )
-
fEnv(Object, int)
- Shortform for append(new fEnv(Object key, int value) )
-
fEnv(Object, Object)
- Shortform for append(new fEnv(Object key, Object value) )
-
fLabel(double, double, String)
- Shortform for append(new fLabel(double x, double y, String str) )
-
fLabel(double, double, String, String)
- Shortform for append(new fLabel(double x, double y, String just, String str) )
-
fLine(double, double, double, double)
- Shortform for append(new fLine(double x1, double y1, double x2,double y2) )
-
fLine(double[], double[])
- Shortform for append(new fLine(double from[], double to[]) )
-
fPolygon(double[], double[], int)
- Shortform for append(new fPolygon(double[] xlist, double[] ylist, int nopoints) )
-
fPolygon(double[], double[], int, long)
- Shortform for append(new fPolygon(double[] xlist, double[] ylist, int nopoints, long type) )
-
fPolygon(double[], double[], int, long, Color)
- Shortform for append(new fPolygon(double[] xlist, double[] ylist, int nopoints, long type, Color color) )
-
fPolygon(double[][])
- Shortform for append(new fPolygon(double[][] list) )
-
fPolygon(double[][], int)
- Shortform for append(new fPolygon(double[][] list, int nopoints) )
-
fPolygon(double[][], int, long)
- Shortform for append(new fPolygon(double[][] list, int nopoints, long type) )
-
fPolygon(double[][], int, long, Color)
- Shortform for append(new fPolygon(double[][] list, int nopoints, long type, Color color) )
-
fSetUsr2dvc(V2V)
- Shortform for append(new fSetUsr2dvc(V2V coordmap) )
-
fSquiggle(double, double, double, double)
- Shortform for append(new fSquiggle(double x1, double y1, double x2,double y2) )
-
fSquiggle(double, double, double, double, double, int)
- Shortform for append(new fSquiggle(double x1, double y1, double x2,double y2, double height, int nobumps) )
-
fSquiggle(double[], double[], double, int)
- Shortform for append(new fSquiggle(double from[], double to[], double height, int nobumps) )
-
fSquiggle(S2V, S2V, double, double, double, int)
- Shortform for append(new fSquiggle(S2V centerline, S2V normal , double tmin, double tmax, double height, int nobumps)
-
fSquiggle(S2V, S2V, double, int)
- Shortform for append(new fSquiggle(S2V centerline, S2V normal , double height, int nobumps) )
-
fTeXlabel(double, double, String)
- Shortform for append(new fTeXlabel(double x, double y, String str) )
-
fTeXlabel(double, double, String, String)
- Shortform for append(new fTeXlabel(double x, double y, String just, String str) )
-
fTeXlabel(double, double, String, String, String)
- Shortform for append(new fTeXlabel(double x, double y, String just, String str, String screenStr) )
-
getMinimumSize()
-
-
getPreferredSize()
-
-
initEnv()
- Initializes the table of environment variables.
-
label(double[], String, String, V2V)
- Draws a label to the screen.
-
leftmargin(double)
- Sets the amount of white space at the left of the canvas.
-
leftmargin(double, String)
- Sets the amount of white space at the left of the canvas.
-
limits(double, double, double, double)
- Sets the baseUsr2dvc so that the left hand edge of the figure is x=xmin etc.
-
line(double[], double[], V2V)
- Draws a line to the screen.
-
margins(double, double, double, double, String)
- Sets the margins between the boundary of the canvas and the boundary of the figure.
-
mouseClicked(MouseEvent)
-
-
mouseDragged(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mouseMoved(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
-
-
removeActionListener(ActionListener)
-
-
resetZoom()
-
-
reSizeCanvas(double, double)
-
-
reSizeCanvas(double, double, String)
-
-
rightmargin(double)
- Sets the amount of white space at the right of the canvas.
-
rightmargin(double, String)
- Sets the amount of white space at the right of the canvas.
-
rotate(double)
- Rotates baseUsr2dvc - the initial usr2dvc coordinate map that is used each
time the figure is drawn.
-
scale(double, double)
- Scales baseUsr2dvc - the initial usr2dvc coordinate map that is used each
time the figure is drawn.
-
setBackground(int)
- Draws the first n fElements of elements to the backgroundImg, using the
current drawing environment, margins etc.
-
setBaseUsr2dvc(V2V)
- Sets the baseUsr2dvc to the specified V2V.
-
setPrecision()
-
-
stopZoom()
-
-
toLbl()
- Returns a string containing TeX label information in the
format used by figMac.tex (a macro package for insertion of PostScript
figures in tex files).
-
toLbl(String)
- Returns a string containing TeX label information in the format
used by figMac.tex (a macro package for insertion of PostScript
figures in tex files).
-
toLblFile(String)
- Writes a file containing TeX label information in the format
used by figMac.tex (a macro package for insertion of PostScript
figures in tex files).
-
toLblFile(String, String)
- Writes a file containing TeX label information in the format
used by figMac.tex (a macro package for insertion of PostScript
figures in tex files).
-
topmargin(double)
- Sets the amount of white space at the top of the canvas.
-
topmargin(double, String)
- Sets the amount of white space at the top of the canvas.
-
toPs()
- Returns a string that realises the current figure in PostScript.
-
toPs(String)
- Returns a string that realises the current figure in PostScript.
-
toPsFile(String)
- Writes a file that realises the current figure in PostScript.
-
toPsFile(String, String)
- Writes a file that realises the current figure in PostScript.
-
toPsLblFiles(String)
- Writes two files, one realising the current figure in PostScript
and the other containing TeX label information in the format used by figMac.tex
(a macro package for insertion of PostScript figures in tex files).
-
toScreen()
- Draws the current figure to the screen.
-
translate(double, double)
- Translates baseUsr2dvc - the initial usr2dvc coordinate map that is used each
time the figure is drawn.
-
update(Graphics)
-
img
public Image img
- An offscreen Image for double buffering.
gfx
public Graphics gfx
- The Graphics instance for the offscreen Image img.
backgroundImg
public Image backgroundImg
- An offscreen Image for use as a background.
elements
public Vector elements
- The list of figure elements
env
public Hashtable env
- The table of environment variables.
backgroundEnv
public Hashtable backgroundEnv
- The table of environment variables for the backgroundImg.
xsize
public int xsize
- The width of the image, excluding margins, in pixels.
ysize
public int ysize
- The height of the image, excluding margins, in pixels.
Xsize
public int Xsize
- The width of the canvas (including margins) in pixels.
Ysize
public int Ysize
- The height of the canvas (including margins) in pixels.
topmargin
public double topmargin
- The size of the top margin in pixels
leftmargin
public double leftmargin
- The size of the left margin in pixels
bottommargin
public double bottommargin
- The size of the bottom margin in pixels
rightmargin
public double rightmargin
- The size of the right margin in pixels
baseUsr2dvc
public V2V baseUsr2dvc
- The map from user to device coordinates before any changes are made by fElements or
by dragging or zooming. The default has the origin at the lower left corner of the figure and uses
Adobe point units.
dragZoomMap
public Affine2dV2V dragZoomMap
- The map that implements coordinate changes due to dragging and zooming. The default is
the identity.
usr2dvc
public V2V usr2dvc
- The map from user to device coordinates taking into account changes made by fElements and
dragging or zooming.
backgroundUsr2dvc
public V2V backgroundUsr2dvc
- The map from user to device coordinates taking into account changes made by the fElements of the background.
xmin
public double xmin
- The smallest value of the x coordinate.
xmax
public double xmax
- The largest value of the x coordinate.
ymin
public double ymin
- The smallest value of the y coordinate.
ymax
public double ymax
- The largest value of the y coordinate.
pt2pix
public double pt2pix
- The factor converting Adobe points to pixels.
in2pix
public double in2pix
- The factor converting inches to pixels.
cm2pix
public double cm2pix
- The factor converting centimeters to pixels.
adobe2tex
public static double adobe2tex
- The factor converting Adobe to Tex points.
defaultFgColor
public Color defaultFgColor
- The default screen background colour.
defaultBgColor
public Color defaultBgColor
- The default screen foreground colour.
defaultFont
public Font defaultFont
- The default screen font.
defaultPsFont
public String defaultPsFont
- The default PostScript font.
showCoords
public boolean showCoords
- Turns the coordinate display on/off
useZoom
public boolean useZoom
- Turns zoom on/off
useDrag
public boolean useDrag
- Turns drag on/off
showCanvasBoundary
public boolean showCanvasBoundary
- Turns display of canvas boundary on/off
showFigureBoundary
public boolean showFigureBoundary
- Turns display of figure boundary (excluding margins) on/off
zoom_factor
public double zoom_factor
current_zoom
public double current_zoom
max_zoom
public double max_zoom
min_zoom
public double min_zoom
OPEN
public static long OPEN
CLOSED
public static long CLOSED
FILLED
public static long FILLED
psFileIsStandAlone
public boolean psFileIsStandAlone
- If you wish your to embed your ps file in, for example, a TeX file,
psFileIsStandAlone should be false; otherwise otherwise, it should be true.
Figure
public Figure(Container container)
- This method creates an empty figure that is 5.5 inches wide and 4.5 inches
high that will be displayed on the screen.
Figure
public Figure()
- This method creates an empty figure that is 5.5 inches wide and 4.5 inches
high that will NOT be displayed on the screen.
Figure
public Figure(Container container,
double x,
double y)
- This method creates an empty figure that is x inches wide and y inches
high and that will be displayed on the screen.
- Parameters:
- container - The container (usually an Applet) that is to contain the figure.
- x - The width of the figure in inches.
- y - The height of the figure in inches.
Figure
public Figure(double x,
double y)
- This method creates an empty figure that is x inches wide and y inches
high and that will NOT be displayed on the screen.
- Parameters:
- x - The width of the figure in inches.
- y - The height of the figure in inches.
Figure
public Figure(double x,
double y,
String units)
- This method creates an empty figure that is x units wide and y units
high and that will NOT be displayed on the screen.
- Parameters:
- x - The width of the figure in units.
- y - The height of the figure in units.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
Figure
public Figure(Container container,
double x,
double y,
String units)
- This method creates an empty figure that is x units wide and y units
high and that will be displayed on the screen.
- Parameters:
- container - The Container (usually an Applet) that is to contain the figure.
- x - The width of the figure in units.
- y - The height of the figure in units.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
limits
public void limits(double xmin,
double ymin,
double xmax,
double ymax)
- Sets the baseUsr2dvc so that the left hand edge of the figure is x=xmin etc.
setBaseUsr2dvc
public void setBaseUsr2dvc(V2V coordmap)
- Sets the baseUsr2dvc to the specified V2V.
translate
public void translate(double x,
double y)
- Translates baseUsr2dvc - the initial usr2dvc coordinate map that is used each
time the figure is drawn.
rotate
public void rotate(double angle)
- Rotates baseUsr2dvc - the initial usr2dvc coordinate map that is used each
time the figure is drawn.
scale
public void scale(double xfactor,
double yfactor)
- Scales baseUsr2dvc - the initial usr2dvc coordinate map that is used each
time the figure is drawn.
reSizeCanvas
public void reSizeCanvas(double x,
double y)
reSizeCanvas
public void reSizeCanvas(double x,
double y,
String units)
margins
public void margins(double top,
double bottom,
double left,
double right,
String units)
- Sets the margins between the boundary of the canvas and the boundary of the figure.
- Parameters:
- top - The amount of white space at the top of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between y=ymax and the top of the canvas.
- bottom - The amount of white space at the bottom of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between y=ymin and the bottom of the canvas.
- left - The amount of white space at the left of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between x=xmin and the left hand edge of the canvas.
- right - The amount of white space at the right of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between x=xmax and the right hand of the canvas.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
- See Also:
- limits
topmargin
public void topmargin(double size)
- Sets the amount of white space at the top of the canvas.
- Parameters:
- size - The amount of white space at the top of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between y=ymax and the top of the canvas.
topmargin
public void topmargin(double size,
String units)
- Sets the amount of white space at the top of the canvas.
- Parameters:
- size - The amount of white space at the top of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between y=ymax and the top of the canvas.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
bottommargin
public void bottommargin(double size)
- Sets the amount of white space at the bottom of the canvas.
- Parameters:
- size - The amount of white space at the bottom of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between y=ymin and the bottom of the canvas.
bottommargin
public void bottommargin(double size,
String units)
- Sets the amount of white space at the bottom of the canvas.
- Parameters:
- size - The amount of white space at the bottom of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between y=ymin and the bottom of the canvas.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
leftmargin
public void leftmargin(double size)
- Sets the amount of white space at the left of the canvas.
- Parameters:
- size - The amount of white space at the left of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between x=xmin and the left of the canvas.
leftmargin
public void leftmargin(double size,
String units)
- Sets the amount of white space at the left of the canvas.
- Parameters:
- size - The amount of white space at the left of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between x=xmin and the left of the canvas.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
rightmargin
public void rightmargin(double size)
- Sets the amount of white space at the right of the canvas.
- Parameters:
- size - The amount of white space at the right of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between x=xmax and the right of the canvas.
rightmargin
public void rightmargin(double size,
String units)
- Sets the amount of white space at the right of the canvas.
- Parameters:
- size - The amount of white space at the right of the canvas. If limits(xmin, ymin, xmax, ymax) is used,
it is also the distance between x=xmax and the right of the canvas.
- units - At the present time the following units are supported: "in" (inches)
"cm" (centimeters), "pt" (Adobe points, i.e. 1/72 inch) and "px" (pixel).
Until netscape starts allowing resizing of applets, I will assume that
all screens are 90dpi.
append
public void append(fElement nextelement)
- Appends an element to the figure.
clear
public void clear()
- Deletes all figure elements from the figure.
clearEnv
public void clearEnv()
- Clears the table of environment variables.
initEnv
public void initEnv()
- Initializes the table of environment variables.
fArrow
public void fArrow(double from[],
double to[])
- Shortform for append(new fArrow(double from[], double to[]) )
fArrow
public void fArrow(double x1,
double y1,
double x2,
double y2)
- Shortform for append(new fArrow(double x1, double y1, double x2, double y2) )
fArrowhead
public void fArrowhead(double centre[],
double angle)
- Shortform for append(new fArrowhead(double centre[], double angle) )
fArrowhead
public void fArrowhead(double x,
double y,
double angle)
- Shortform for append(new fArrowhead(double x, double y, double angle) )
fArrowhead
public void fArrowhead(double centre[],
double to[])
- Shortform for append(new fArrowhead(double centre[], double[] to) )
fArrowhead
public void fArrowhead(double xcentre,
double ycentre,
double xto,
double yto)
- Shortform for append(new fArrowhead(double xcentre, double ycentre, double xto, double yto) )
fAxes
public void fAxes()
- Shortform for append(new fAxes() )
fAxes
public void fAxes(String xlabel,
String ylabel)
- Shortform for append(new fAxes(String xlabel, String ylabel) )
fAxes
public void fAxes(String xlabel,
String ylabel,
double xmin,
double xmax,
double ymin,
double ymax)
- Shortform for append(new fAxes(String xlabel, String ylabel,
double xmin, double xmax, double ymin, double ymax) )
fAxes
public void fAxes(String xlabel,
String ylabel,
double xmin,
double xmax,
double ymin,
double ymax,
double xintvl,
double yintvl,
double firstXtick,
double firstYtick,
int xprec,
int yprec)
- Shortform for append(new fAxes(String xlabel, String ylabel,
double xmin, double xmax, double ymin, double ymax,
double xintvl, double yintvl,
double firstXtick, double firstYtick,
int xprec, int yprec) )
fCurve
public void fCurve(S2S F,
double xmin,
double xmax,
long type)
- Shortform for append(new fCurve(S2S F, double xmin, double xmax, long type) )
fCurve
public void fCurve(S2S F)
- Shortform for append(new fCurve(S2S F) )
fCurve
public void fCurve(S2S F,
double xmin,
double xmax)
- Shortform for append(new fCurve(S2S F, double xmin, double xmax) )
fCurve
public void fCurve(S2S F,
long type)
- Shortform for append(new fCurve(S2S F, long type) )
fCurve
public void fCurve(S2V XY,
double tmin,
double tmax,
long type)
- Shortform for append(new fCurve(S2V XY, double tmin, double tmax, long type) )
fCurve
public void fCurve(S2V XY)
- Shortform for append(new fCurve(S2V XY))
fCurve
public void fCurve(S2V XY,
double tmin,
double tmax)
- Shortform for append(new fCurve(S2V XY, double tmin, double tmax) )
fCurve
public void fCurve(S2V XY,
long type)
- Shortform for append(new fCurve(S2V XY, long type) )
fDisk
public void fDisk(double x,
double y,
double radius)
- Shortform for append(new fDisk(double x, double y, double radius) )
fDisk
public void fDisk(double x,
double y,
double a,
double b)
- Shortform for append(new fDisk(double x, double y, double a, double b) )
fDisk
public void fDisk(double x,
double y,
double radius,
long type)
- Shortform for append(new fDisk(double x, double y, double radius, long type) )
fDisk
public void fDisk(double x,
double y,
double a,
double b,
long type)
- Shortform for append(new fDisk(double x, double y, double a, double b, long type) )
fEnv
public void fEnv(Object key,
Object value)
- Shortform for append(new fEnv(Object key, Object value) )
fEnv
public void fEnv(Object key,
int value)
- Shortform for append(new fEnv(Object key, int value) )
fEnv
public void fEnv(Object key,
double value)
- Shortform for append(new fEnv(Object key, double value) )
fLabel
public void fLabel(double x,
double y,
String str)
- Shortform for append(new fLabel(double x, double y, String str) )
fLabel
public void fLabel(double x,
double y,
String just,
String str)
- Shortform for append(new fLabel(double x, double y, String just, String str) )
fLine
public void fLine(double from[],
double to[])
- Shortform for append(new fLine(double from[], double to[]) )
fLine
public void fLine(double x1,
double y1,
double x2,
double y2)
- Shortform for append(new fLine(double x1, double y1, double x2,double y2) )
fPolygon
public void fPolygon(double list[][])
- Shortform for append(new fPolygon(double[][] list) )
fPolygon
public void fPolygon(double list[][],
int nopoints)
- Shortform for append(new fPolygon(double[][] list, int nopoints) )
fPolygon
public void fPolygon(double list[][],
int nopoints,
long type)
- Shortform for append(new fPolygon(double[][] list, int nopoints, long type) )
fPolygon
public void fPolygon(double list[][],
int nopoints,
long type,
Color color)
- Shortform for append(new fPolygon(double[][] list, int nopoints, long type, Color color) )
fPolygon
public void fPolygon(double xlist[],
double ylist[],
int nopoints)
- Shortform for append(new fPolygon(double[] xlist, double[] ylist, int nopoints) )
fPolygon
public void fPolygon(double xlist[],
double ylist[],
int nopoints,
long type)
- Shortform for append(new fPolygon(double[] xlist, double[] ylist, int nopoints, long type) )
fPolygon
public void fPolygon(double xlist[],
double ylist[],
int nopoints,
long type,
Color color)
- Shortform for append(new fPolygon(double[] xlist, double[] ylist, int nopoints, long type, Color color) )
fSetUsr2dvc
public void fSetUsr2dvc(V2V coordmap)
- Shortform for append(new fSetUsr2dvc(V2V coordmap) )
fSquiggle
public void fSquiggle(double x1,
double y1,
double x2,
double y2)
- Shortform for append(new fSquiggle(double x1, double y1, double x2,double y2) )
fSquiggle
public void fSquiggle(double from[],
double to[],
double height,
int nobumps)
- Shortform for append(new fSquiggle(double from[], double to[], double height, int nobumps) )
fSquiggle
public void fSquiggle(double x1,
double y1,
double x2,
double y2,
double height,
int nobumps)
- Shortform for append(new fSquiggle(double x1, double y1, double x2,double y2, double height, int nobumps) )
fSquiggle
public void fSquiggle(S2V centerline,
S2V normal,
double height,
int nobumps)
- Shortform for append(new fSquiggle(S2V centerline, S2V normal , double height, int nobumps) )
fSquiggle
public void fSquiggle(S2V centerline,
S2V normal,
double tmin,
double tmax,
double height,
int nobumps)
- Shortform for append(new fSquiggle(S2V centerline, S2V normal , double tmin, double tmax, double height, int nobumps)
fTeXlabel
public void fTeXlabel(double x,
double y,
String str)
- Shortform for append(new fTeXlabel(double x, double y, String str) )
fTeXlabel
public void fTeXlabel(double x,
double y,
String just,
String str)
- Shortform for append(new fTeXlabel(double x, double y, String just, String str) )
fTeXlabel
public void fTeXlabel(double x,
double y,
String just,
String str,
String screenStr)
- Shortform for append(new fTeXlabel(double x, double y, String just, String str, String screenStr) )
toScreen
public synchronized void toScreen()
- Draws the current figure to the screen.
setBackground
public void setBackground(int n)
- Draws the first n fElements of elements to the backgroundImg, using the
current drawing environment, margins etc.
toPs
public String toPs()
- Returns a string that realises the current figure in PostScript.
toPs
public String toPs(String title)
- Returns a string that realises the current figure in PostScript.
- Parameters:
- title - The title that is put into the PostScript title comment near the
beginning of the string.
toPsFile
public void toPsFile(String fileName)
- Writes a file that realises the current figure in PostScript. May not be used in an applet.
- Parameters:
- fileName - The name of the file to be written to.
toPsFile
public void toPsFile(String fileName,
String title)
- Writes a file that realises the current figure in PostScript. May not be used in an applet.
- Parameters:
- fileName - The name of the file to be written to.
- title - The title that is put into the PostScript title comment near the
beginning of the file.
toLbl
public String toLbl()
- Returns a string containing TeX label information in the
format used by figMac.tex (a macro package for insertion of PostScript
figures in tex files).
toLbl
public String toLbl(String title)
- Returns a string containing TeX label information in the format
used by figMac.tex (a macro package for insertion of PostScript
figures in tex files).
- Parameters:
- title - The title that is put into a comment near the
beginning of the string.
toLblFile
public void toLblFile(String fileName)
- Writes a file containing TeX label information in the format
used by figMac.tex (a macro package for insertion of PostScript
figures in tex files). May not be used in an applet.
- Parameters:
- fileName - The name of the file to be written to.
toLblFile
public void toLblFile(String fileName,
String title)
- Writes a file containing TeX label information in the format
used by figMac.tex (a macro package for insertion of PostScript
figures in tex files). May not be used in an applet.
- Parameters:
- fileName - The name of the file to be written to.
- title - The title that is put into a comment.
toPsLblFiles
public void toPsLblFiles(String name)
- Writes two files, one realising the current figure in PostScript
and the other containing TeX label information in the format used by figMac.tex
(a macro package for insertion of PostScript figures in tex files). May not be
used in an applet.
- Parameters:
- name - The ps file will be named name.ps and the lbl file will be named name.lbl.
label
public void label(double usrxy[],
String just,
String str,
V2V usr2pxl)
- Draws a label to the screen.
- Parameters:
- usrxy - The user coordinates of the point in the label determined by the argument just.
- just - The justification of the label. For example if the value of just is
"rt" then usrxy are the coordinates of the top right hand corner of
the label. This parameter must be a string of two characters. One
of the two characters must be one of r (meaning right), c (meaning
center) and l (meaning left). The other character must be one of
t (meaning top), c (meaning center) and b (meaning bottom).
- str - The label itself.
- usr2pxl - The map from user to screen coordinates.
line
public void line(double from[],
double to[],
V2V usr2pxl)
- Draws a line to the screen.
- Parameters:
- from - A two component array giving the user coordinates of
one end of the line.
- to - A two component array giving the user coordinates of
the other end of the line.
- usr2pxl - The map from user to screen coordinates.
mouseEntered
public void mouseEntered(MouseEvent evt)
mouseExited
public void mouseExited(MouseEvent evt)
mouseMoved
public void mouseMoved(MouseEvent evt)
addActionListener
public void addActionListener(ActionListener l)
removeActionListener
public void removeActionListener(ActionListener l)
resetZoom
public void resetZoom()
setPrecision
public void setPrecision()
stopZoom
public void stopZoom()
mouseClicked
public void mouseClicked(MouseEvent evt)
mousePressed
public void mousePressed(MouseEvent evt)
mouseDragged
public void mouseDragged(MouseEvent evt)
mouseReleased
public void mouseReleased(MouseEvent evt)
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
All Packages Class Hierarchy This Package Previous Next Index