public class WindowState extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
height
Dimensions of the window.
|
protected String |
name
Title of the window.
|
protected boolean |
visible
Visibility of the window.
|
protected int |
width
Dimensions of the window.
|
protected int |
x
Position of the window.
|
protected int |
y
Position of the window.
|
Constructor and Description |
---|
WindowState(String name,
boolean visible,
int x,
int y,
int width,
int height)
Creates a new window state object.
|
Modifier and Type | Method and Description |
---|---|
void |
applyTo(Window w)
Applies this state to the given window.
|
int |
getHeight()
Gets window height.
|
String |
getName()
Gets window name.
|
boolean |
getVisible()
Gets window visibility.
|
int |
getWidth()
Gets window width.
|
int |
getX()
Gets window X coordinate.
|
int |
getY()
Gets window Y coordinate.
|
boolean |
hasPosition()
Whether the window has a specified position.
|
boolean |
hasSize()
Whether the window has a specified size.
|
String |
toString()
Gets a string representation of this window state.
|
protected String name
protected boolean visible
protected int x
protected int y
protected int width
protected int height
public WindowState(String name, boolean visible, int x, int y, int width, int height)
public void applyTo(Window w)
public boolean hasPosition()
public boolean hasSize()
public String getName()
public boolean getVisible()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
Copyright © 2015–2022 SciJava. All rights reserved.