com.openpcl.viewer.util
Class PosPersistViewValues
java.lang.Object
com.openpcl.viewer.util.PosPersistViewValues
public class PosPersistViewValues
- extends Object
At opening the first view, and closing the last view, get/set the view's JInternalFrame (x,y) locatoin and
(width,height) within the MdiDesktopPane, so that the first view shown after program startup is where
the user left it as the last view closed last time.
Also, save the full path and filename of the last file opened. This is so that the Open File command will
show the Open File dialog box in the directory where the last file was opened before.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sDefaultViewframeX
public static final int sDefaultViewframeX
- See Also:
- Constant Field Values
sDefaultViewframeY
public static final int sDefaultViewframeY
- See Also:
- Constant Field Values
sDefaultViewframeWidth
public static final int sDefaultViewframeWidth
- See Also:
- Constant Field Values
sDefaultViewframeHeight
public static final int sDefaultViewframeHeight
- See Also:
- Constant Field Values
sDefaultViewframeState
public static final int sDefaultViewframeState
- See Also:
- Constant Field Values
sDefaultViewframeLastFileOpened
public static final String sDefaultViewframeLastFileOpened
mViewframeX
public int mViewframeX
mViewframeY
public int mViewframeY
mViewframeWidth
public int mViewframeWidth
mViewframeHeight
public int mViewframeHeight
mViewframeState
public int mViewframeState
mViewframeLastFileOpened
public String mViewframeLastFileOpened
PosPersistViewValues
public PosPersistViewValues()
readViewValues
public void readViewValues(Preferences pPrefs)
saveViewValues
public void saveViewValues(Preferences pPrefs,
int pX,
int pY,
int pWidth,
int pHeight,
int pFrameState,
String pLastFileOpened)
getViewframeX
public int getViewframeX()
getViewframeY
public int getViewframeY()
getViewframeWidth
public int getViewframeWidth()
getViewframeHeight
public int getViewframeHeight()
getViewframeState
public int getViewframeState()
getViewframeLastFileOpened
public String getViewframeLastFileOpened()
setViewframeX
public void setViewframeX(int pViewframeX)
setViewframeY
public void setViewframeY(int pViewframeY)
setViewframeWidth
public void setViewframeWidth(int pViewframeWidth)
setViewframeHeight
public void setViewframeHeight(int pViewframeHeight)
setViewframeState
public void setViewframeState(int pViewframeState)
setViewframeLastFileOpened
public void setViewframeLastFileOpened(String pViewframeLastFileOpened)
OpenPCL http://www.openpcl.com