public class FrameScrnSizeLocn
extends java.lang.Object
Constructor | Description |
---|---|
FrameScrnSizeLocn() |
Create the default Frame/Screen/Size/Location object
|
FrameScrnSizeLocn(java.lang.String nodeName) |
Create the default object and change the node name that will store
the screen size & location.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addActionListeners(javax.swing.JFrame frame) |
Adds ActionListeners to the current JFrame to watch for changes in size &
location and passes the information to the ScrnSizeLocn object.
|
javax.swing.JPanel |
getEditPanel() |
Get a JPanel for use in editing size & location.
|
java.awt.Point |
getLocn() |
Get Location x,y.
|
java.awt.Dimension |
getLocnD() |
Get Location x,y.
|
int |
getLocnX() |
Get Location x.
|
int |
getLocnY() |
Get Location y.
|
java.awt.Point |
getSize() |
Get Size x,y.
|
java.awt.Dimension |
getSizeD() |
Get Size x,y.
|
int |
getSizeX() |
Get Size x.
|
int |
getSizeY() |
Get Size y.
|
void |
initScreen() |
Opens the screen and puts in the startup size & location of the JFrame.
|
void |
setLocn(java.awt.Dimension i) |
Set Location x,y
|
void |
setLocn(java.awt.Point i) |
Set Location x,y.
|
void |
setLocnX(int i) |
Set Location x.
|
void |
setLocnY(int i) |
Set Location y.
|
void |
setSize(java.awt.Dimension i) |
Set Size x,y.
|
void |
setSize(java.awt.Point i) |
Set Size x,y.
|
void |
setSizeX(int i) |
Set Size x.
|
void |
setSizeY(int i) |
Set Size y.
|
void |
writeINI() |
Manually write the settings to the preferences registry...
|
public FrameScrnSizeLocn()
public FrameScrnSizeLocn(java.lang.String nodeName)
nodeName
- name of the ini file.public void addActionListeners(javax.swing.JFrame frame)
frame
- JFrame to be watched.public void initScreen()
public void writeINI()
public java.awt.Dimension getLocnD()
public java.awt.Point getLocn()
public int getLocnX()
public int getLocnY()
public javax.swing.JPanel getEditPanel()
public java.awt.Dimension getSizeD()
public java.awt.Point getSize()
public int getSizeX()
public int getSizeY()
public void setLocn(java.awt.Dimension i)
i
- Location x,ypublic void setLocn(java.awt.Point i)
i
- Location x,ypublic void setLocnX(int i)
i
- Location xpublic void setLocnY(int i)
i
- Location ypublic void setSize(java.awt.Dimension i)
i
- Size x,ypublic void setSize(java.awt.Point i)
i
- Size x,ypublic void setSizeX(int i)
i
- Size xpublic void setSizeY(int i)
i
- Size y