com.openpcl.viewer.util
Class PosPersistViewValues

java.lang.Object
  extended by 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.


Field Summary
 int mViewframeHeight
           
 String mViewframeLastFileOpened
           
 int mViewframeState
           
 int mViewframeWidth
           
 int mViewframeX
           
 int mViewframeY
           
static int sDefaultViewframeHeight
           
static String sDefaultViewframeLastFileOpened
           
static int sDefaultViewframeState
           
static int sDefaultViewframeWidth
           
static int sDefaultViewframeX
           
static int sDefaultViewframeY
           
 
Constructor Summary
PosPersistViewValues()
           
 
Method Summary
 int getViewframeHeight()
           
 String getViewframeLastFileOpened()
           
 int getViewframeState()
           
 int getViewframeWidth()
           
 int getViewframeX()
           
 int getViewframeY()
           
 void readViewValues(Preferences pPrefs)
           
 void saveViewValues(Preferences pPrefs, int pX, int pY, int pWidth, int pHeight, int pFrameState, String pLastFileOpened)
           
 void setViewframeHeight(int pViewframeHeight)
           
 void setViewframeLastFileOpened(String pViewframeLastFileOpened)
           
 void setViewframeState(int pViewframeState)
           
 void setViewframeWidth(int pViewframeWidth)
           
 void setViewframeX(int pViewframeX)
           
 void setViewframeY(int pViewframeY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PosPersistViewValues

public PosPersistViewValues()
Method Detail

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