|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfig.canvas.FigTrafo2D
jfig.canvas.ViewerTrafo
simple subclass of FigTrafo2D with additional zoom optnions.
| Field Summary | |
(package private) static double[] |
factors
|
(package private) static double[] |
offsets
|
| Fields inherited from class jfig.canvas.FigTrafo2D |
anchor, COARSE_GRID, COARSE_SNAP, d_zoom_factor, debug, DOTS_PER_INCH, DOTS_PER_MM, DOTS_PER_XMM, dpi, DPI, FACTOR, FINE_GRID, FINE_SNAP, gridMode, MAX_ZOOM_FACTOR, MEDIUM_GRID, MEDIUM_SNAP, MIN_ZOOM_FACTOR, NO_GRID, NO_SNAP, p, snapDelta, snapMode, TEN_GRID, TEN_SNAP, timestamp, units, UNITS_INCHES, UNITS_MM, UNITS_STRING, UNITS_XMM, zoom_factor, zoom_factor75 |
| Constructor Summary | |
ViewerTrafo()
minimal constructor. |
|
| Method Summary | |
double |
getGridSpacingValue()
return the spacing (in world coordinates) of two grid points. |
void |
set_zoom_region(int wx,
int wy,
int wx2,
int wy2,
int width,
int height)
set_zoom_region_snapped(): set the viewport to the given region. |
void |
set_zoom(double zoom)
change the zoom factor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final double[] offsets
static final double[] factors
| Constructor Detail |
public ViewerTrafo()
| Method Detail |
public double getGridSpacingValue()
FigTrafo2D
getGridSpacingValue in class FigTrafo2Dpublic void set_zoom(double zoom)
set_zoom in class FigTrafo2Dzoom - The new zoom factor. Currently only positive integers
are allowed.
public void set_zoom_region(int wx,
int wy,
int wx2,
int wy2,
int width,
int height)
Actually, this method tries to fit the specified region as far as possible into the current window size, while limiting the zoom-factors to multiples of sqrt(2).
anchor'(
set_zoom_region in class FigTrafo2Dwx - the top left corner (x)wy - the top left corner (y)wx2 - the bottom right corner (x)wy2 - (y)width - the current window size (width)height - (height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||