|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openpcl.viewer.zoom.PosZoomLogic
public class PosZoomLogic
Zoom logic
Field Summary | |
---|---|
protected double |
mCurrentZoomFactor
|
protected boolean |
mIsZoomModeZoomWidth
|
protected int |
mZoomArrayIndex
|
static int |
sNumPixels85Inches
|
static int |
sPrintDotsPerInch
|
protected static int |
sZoomArrayIndexMax
|
protected static int |
sZoomArrayIndexMin
|
protected static double[] |
sZoomNotchesArray
|
Constructor Summary | |
---|---|
PosZoomLogic()
Constructor |
Method Summary | |
---|---|
void |
freeUpMemory()
When the user is done with this rendering session, then free up memory |
double |
getCurrentZoomFactor()
Get the current zoom factor. |
boolean |
isZoomModeZoomWidth()
Get if zoom mode is zoom width right now. |
void |
setCurrentZoomFactor(double pZoomFactor)
Set the current zoom factor |
void |
setToInitialValues()
Set to initial values |
void |
setZoomBasedOnUserWindowWidth(int pNumberOfWidthPixels)
For Zoom Width, set the current zoom factor from the user's window width number of pixels |
void |
setZoomModeZoomWidth(boolean pValue)
Set if zoom mode is zoom width. |
double |
zoomInOneNotch()
Zoom in one notch. |
double |
zoomOutOneNotch()
Zoom out one notch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final double[] sZoomNotchesArray
protected int mZoomArrayIndex
protected double mCurrentZoomFactor
protected boolean mIsZoomModeZoomWidth
protected static final int sZoomArrayIndexMin
protected static final int sZoomArrayIndexMax
public static final int sPrintDotsPerInch
public static final int sNumPixels85Inches
Constructor Detail |
---|
public PosZoomLogic()
Method Detail |
---|
public void setToInitialValues()
public void freeUpMemory()
public void setZoomModeZoomWidth(boolean pValue)
pValue
- public boolean isZoomModeZoomWidth()
public void setCurrentZoomFactor(double pZoomFactor)
pZoomFactor
- public void setZoomBasedOnUserWindowWidth(int pNumberOfWidthPixels)
pNumberOfWidthPixels
- public double getCurrentZoomFactor()
public double zoomInOneNotch()
public double zoomOutOneNotch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |