|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.utils.MHG
Nested Class Summary | |
class |
MHG.Axes
the wrapper class responsible to transform world-coordinates to FIG coordinates at 2400 dpi. |
class |
MHG.FigTxtFileFilter
|
class |
MHG.Figure
|
Constructor Summary | |
MHG()
|
Method Summary | |
MHG.Axes |
axes()
create default Axes, [0..1] x [0..1] for 8x6 inch paper |
MHG.Axes |
axes(MHG.Axes handle)
set current axes |
MHG.Axes |
axes(java.lang.String position,
double[] lbwh)
|
void |
axis(double[] xxyy)
|
void |
axis(double xmin,
double xmax,
double ymin,
double ymax)
|
void |
axis(java.lang.String attributes)
|
FigObject[] |
bar(double[] y)
|
FigObject[] |
bar(double[] y,
java.lang.String attributes)
|
boolean |
checkCreateAxes()
check that we have a valid (non-null) Axes object or create axes (and figure) if necessary. |
void |
checkCreateFigure()
check that currentFigure is valid (non-null) and create a new Figure if necessary. |
void |
cla()
clear axes and all dependent objects - same as clf for now |
void |
clf()
delete all objects from current figure |
int |
close()
close current figure, return 1 if successful, 0 if not |
int |
close(MHG.Figure frame)
close the specified figure |
int |
close(java.lang.String mode)
"CLOSE ALL" "CLOSE ALL HIDDEN" |
void |
closeAllFigures()
|
java.awt.Color |
color(double r,
double g,
double b)
|
java.awt.Color |
color(java.lang.String rgb)
|
void |
colormap(java.lang.String map)
|
void |
doZoomFit()
|
MHG.Figure |
figure()
create new figure or set active figure |
MHG.Figure |
figure(MHG.Figure frame)
set current figure, create if necessary |
FigPolyline |
fill(double[] x,
double[] y,
java.awt.Color color)
|
FigPolyline |
fill(double[] x,
double[] y,
int[] indexes)
|
FigPolyline |
fill(double[] x,
double[] y,
java.lang.String attributes)
|
static void |
FIXME()
|
static void |
FIXME(java.lang.String msg)
|
MHG.Figure |
fullscreen(java.lang.String name,
java.awt.Color cb,
int mode,
double[] lrbt)
|
MHG.Figure |
fullscreen(java.lang.String name,
java.awt.Color cb,
int mode,
double[][] nmij)
create a new figure with the specified paramters. |
MHG.Axes |
gca()
|
MHG.Figure |
gcf()
return a reference to the current figure |
MHG.Figure |
getFigure(java.lang.String title)
return a reference to a figure with the specified title |
MHG.Figure[] |
getFigures()
return an array of all available figures |
int |
getLinestyle(java.lang.String s)
|
void |
hide(MHG.Figure frame)
hide the specified figure |
void |
hold(int i)
set mode to 1="add", 0="replace" |
int |
ishold()
return 1 if "add" mode, 0 if "replace" mode |
FigPolyline |
line(double[] x,
double[] y)
|
FigPolyline |
line(double[] x,
double[] y,
java.lang.String attributes)
|
FigPolyline |
line(double x1,
double y1,
double x2,
double y2,
java.lang.String attributes)
|
MHG.Figure |
load(java.io.File figFile)
|
MHG.Figure |
load(java.net.URL figUrl)
load the contents of a FIG url into the current / or newly created figure |
FigObject |
marker(double x,
double y,
java.lang.String s)
|
FigObject |
marker(double x,
double y,
java.lang.String s,
boolean redraw)
|
static void |
msg(java.lang.String s)
|
java.awt.Color |
parseMatlabColor(java.lang.String s)
|
FigPolyline |
patch(double[] x,
double[] y,
java.awt.Color color)
|
FigPolyline |
patch(double[] x,
double[] y,
int[] indexes)
|
FigPolyline |
patch(double[] x,
double[] y,
java.lang.String attributes)
|
FigObject[] |
plot(double[] y)
|
FigObject[] |
plot(double[] x,
double[] y)
|
FigObject[] |
plot(double[] x,
double[] y,
java.lang.String attributes)
plot data using the specified attributes. |
FigObject[] |
plot(double[] y,
java.lang.String attributes)
|
void |
plotCartesianAxes()
|
void |
plotGrid()
plot a grid. |
void |
plotGridX(double[] ticks)
plot vertical grid lines at the given (world-) x-coordinates. |
void |
plotGridY(double[] ticks)
plot horizontal grid lines at the given (world-) y-coordinates. |
void |
plotLinearAxisX(double[] ticks)
plot a linear-spaced x-axis with tick-marks at the specified coordinates. |
void |
plotLinearAxisY(double[] ticks)
|
void |
redraw()
|
void |
reshape(double[] lrbt)
set new window size; corresponding to fullscreen conventions: [l,r,u,o] with each paramter in the range of 0..1. |
void |
reshape(double[][] nmij)
set new window size; corresponding to fullscreen conventions: screen space is divided into a n*m matrix, the window is positioned into slot (i,j). |
void |
save(java.io.File outputFile)
|
void |
setMarkerPtSize(double ptSize)
|
void |
show(MHG.Figure frame)
|
FigPolyline |
spline(double[] x,
double[] y,
java.lang.String attributes)
|
FigObject[] |
stairs(double[] y)
|
FigObject[] |
stairs(double[] x,
double[] y)
|
FigObject[] |
stairs(double[] x,
double[] y,
java.lang.String attributes)
|
FigObject[] |
stairs(double[] y,
java.lang.String attributes)
|
FigObject[] |
stem(double[] y)
|
FigObject[] |
stem(double[] x,
double[] y)
|
FigObject[] |
stem(double[] x,
double[] y,
java.lang.String attributes)
|
FigObject[] |
stem(double[] y,
java.lang.String attributes)
|
FigText |
text(double x,
double y,
double z,
java.lang.String label)
|
FigText |
text(double x,
double y,
double z,
java.lang.String label,
java.lang.String attributes)
|
FigText |
text(double x,
double y,
java.lang.String label)
|
FigText |
text(double x,
double y,
java.lang.String label,
java.lang.String attributes)
|
FigText |
title(java.lang.String label)
|
FigText |
title(java.lang.String label,
java.lang.String attributes)
|
double[] |
toDoubleArray(java.lang.String s)
parse the given string and construct a double[] array from it. |
java.awt.Point[] |
toPoints(int[] ix,
int[] iy)
|
FigText |
xlabel(java.lang.String label)
|
FigText |
xlabel(java.lang.String label,
java.lang.String attributes)
|
FigText |
ylabel(java.lang.String label)
|
FigText |
ylabel(java.lang.String label,
java.lang.String attributes)
|
FigText |
zlabel(java.lang.String label)
|
FigText |
zlabel(java.lang.String label,
java.lang.String attributes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MHG()
Method Detail |
public static void msg(java.lang.String s)
public static void FIXME()
public static void FIXME(java.lang.String msg)
public MHG.Figure figure()
public MHG.Figure figure(MHG.Figure frame)
public void checkCreateFigure()
public int close()
public int close(MHG.Figure frame)
public int close(java.lang.String mode)
public void closeAllFigures()
public MHG.Figure gcf()
public MHG.Figure[] getFigures()
public MHG.Figure getFigure(java.lang.String title)
public void hide(MHG.Figure frame)
public void show(MHG.Figure frame)
public void reshape(double[][] nmij)
public void reshape(double[] lrbt)
public MHG.Figure fullscreen(java.lang.String name, java.awt.Color cb, int mode, double[][] nmij)
public MHG.Figure fullscreen(java.lang.String name, java.awt.Color cb, int mode, double[] lrbt)
public MHG.Figure load(java.net.URL figUrl)
public MHG.Figure load(java.io.File figFile)
public void save(java.io.File outputFile)
public void cla()
public void clf()
public void redraw()
public void doZoomFit()
public int ishold()
public void hold(int i)
public MHG.Axes axes()
public MHG.Axes axes(java.lang.String position, double[] lbwh)
public MHG.Axes axes(MHG.Axes handle)
public boolean checkCreateAxes()
public MHG.Axes gca()
public void axis(double[] xxyy)
public void axis(double xmin, double xmax, double ymin, double ymax)
public void axis(java.lang.String attributes)
public FigPolyline line(double[] x, double[] y)
public FigPolyline line(double[] x, double[] y, java.lang.String attributes)
public FigPolyline line(double x1, double y1, double x2, double y2, java.lang.String attributes)
public FigPolyline patch(double[] x, double[] y, java.awt.Color color)
public FigPolyline patch(double[] x, double[] y, int[] indexes)
public FigPolyline patch(double[] x, double[] y, java.lang.String attributes)
public FigPolyline fill(double[] x, double[] y, java.awt.Color color)
public FigPolyline fill(double[] x, double[] y, java.lang.String attributes)
public FigPolyline fill(double[] x, double[] y, int[] indexes)
public FigPolyline spline(double[] x, double[] y, java.lang.String attributes)
public FigText text(double x, double y, java.lang.String label)
public FigText text(double x, double y, java.lang.String label, java.lang.String attributes)
public FigText text(double x, double y, double z, java.lang.String label)
public FigText text(double x, double y, double z, java.lang.String label, java.lang.String attributes)
public FigText title(java.lang.String label)
public FigText title(java.lang.String label, java.lang.String attributes)
public FigText xlabel(java.lang.String label)
public FigText xlabel(java.lang.String label, java.lang.String attributes)
public FigText ylabel(java.lang.String label)
public FigText ylabel(java.lang.String label, java.lang.String attributes)
public FigText zlabel(java.lang.String label)
public FigText zlabel(java.lang.String label, java.lang.String attributes)
public FigObject[] plot(double[] x, double[] y)
public FigObject[] plot(double[] x, double[] y, java.lang.String attributes)
The decision whether to use jfig or Matlab attributes is based on the existence of an equals "=" sign (which is required for jfig).
public FigObject[] plot(double[] y)
public FigObject[] plot(double[] y, java.lang.String attributes)
public FigObject[] stem(double[] y)
public FigObject[] stem(double[] y, java.lang.String attributes)
public FigObject[] stem(double[] x, double[] y)
public FigObject[] stem(double[] x, double[] y, java.lang.String attributes)
public FigObject[] stairs(double[] y)
public FigObject[] stairs(double[] y, java.lang.String attributes)
public FigObject[] stairs(double[] x, double[] y)
public FigObject[] stairs(double[] x, double[] y, java.lang.String attributes)
public FigObject[] bar(double[] y)
public FigObject[] bar(double[] y, java.lang.String attributes)
public void colormap(java.lang.String map)
public java.awt.Color color(double r, double g, double b)
public java.awt.Color color(java.lang.String rgb)
public FigObject marker(double x, double y, java.lang.String s)
public FigObject marker(double x, double y, java.lang.String s, boolean redraw)
public void setMarkerPtSize(double ptSize)
public java.awt.Point[] toPoints(int[] ix, int[] iy)
public java.awt.Color parseMatlabColor(java.lang.String s)
public int getLinestyle(java.lang.String s)
public void plotCartesianAxes()
public double[] toDoubleArray(java.lang.String s)
public void plotLinearAxisX(double[] ticks)
public void plotLinearAxisY(double[] ticks)
public void plotGrid()
public void plotGridX(double[] ticks)
public void plotGridY(double[] ticks)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |