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 TypeMethodDescriptionvoidvoidapplyTo(Window window, GuiSwingPrefsApplyOptions options) static RectanglegetDeviceBoundsOrNull(int x, int y) intgetKey()intgetWidth()intgetX()intgetY()voidsetHeight(int height) voidvoidsetLocationFrom(Window window) voidsetSizeFrom(Window window) voidsetWidth(int width) voidsetX(int x) voidsetY(int y) toJson()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.Preferences
loadFromMethods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.PreferencesByJsonEntry
compareChanged, loadFromAndChanged, 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:
getKeyin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-