java.lang.Object
org.autogui.swing.prefs.GuiSwingPrefsSupports.PreferencesForWindow
- All Implemented Interfaces:
GuiSwingPrefsSupports.Preferences
,GuiSwingPrefsSupports.PreferencesByJsonEntry
- Enclosing class:
GuiSwingPrefsSupports
public static class GuiSwingPrefsSupports.PreferencesForWindow
extends Object
implements GuiSwingPrefsSupports.PreferencesByJsonEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applyTo
(Window window, GuiSwingPrefsApplyOptions options) static Rectangle
getDeviceBoundsOrNull
(int x, int y) int
getKey()
int
getWidth()
int
getX()
int
getY()
void
setHeight
(int height) void
void
setLocationFrom
(Window window) void
setSizeFrom
(Window window) void
setWidth
(int width) void
setX
(int x) void
setY
(int y) toJson()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.PreferencesByJsonEntry
loadFrom, loadFromAndToJson, saveTo, setJsonAndSaveTo
-
Field Details
-
x
protected int x -
y
protected int y -
width
protected int width -
height
protected int height -
key
-
-
Constructor Details
-
PreferencesForWindow
-
PreferencesForWindow
public PreferencesForWindow()
-
-
Method Details
-
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
applyTo
-
applyTo
- Parameters:
window
- the target windowoptions
- options for applying: only setting locations ifGuiSwingPrefsApplyOptions.isInit()
- Since:
- 1.4
-
getDeviceBoundsOrNull
- Parameters:
x
- the absolute x location; 0 is the left of the main monitory
- the absolute y location; 0 is the top of the main monitor- Returns:
- rectangle for containing x,y
-
setSizeFrom
-
setLocationFrom
-
getKey
- Specified by:
getKey
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-