public class Extent
extends java.lang.Object
Constructor and Description |
---|
Extent(@NotNull Expression x,
@NotNull Expression y,
@NotNull Expression w,
@NotNull Expression h)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getH(int width,
int height,
int prefWidth,
int prefHeight)
Returns the height.
|
int |
getW(int width,
int height,
int prefWidth,
int prefHeight)
Returns the width.
|
int |
getX(int width,
int height,
int prefWidth,
int prefHeight)
Returns the x coordinate.
|
int |
getY(int width,
int height,
int prefWidth,
int prefHeight)
Returns the y coordinate.
|
public Extent(@NotNull @NotNull Expression x, @NotNull @NotNull Expression y, @NotNull @NotNull Expression w, @NotNull @NotNull Expression h)
x
- the x coordinatey
- the y coordinatew
- the widthh
- thr heightpublic int getX(int width, int height, int prefWidth, int prefHeight)
width
- the screen widthheight
- the screen heightprefWidth
- the preferred dialog widthprefHeight
- the preferred dialog heightpublic int getY(int width, int height, int prefWidth, int prefHeight)
width
- the screen widthheight
- the screen heightprefWidth
- the preferred dialog widthprefHeight
- the preferred dialog heightpublic int getW(int width, int height, int prefWidth, int prefHeight)
width
- the screen widthheight
- the screen heightprefWidth
- the preferred dialog widthprefHeight
- the preferred dialog heightpublic int getH(int width, int height, int prefWidth, int prefHeight)
width
- the screen widthheight
- the screen heightprefWidth
- the preferred dialog widthprefHeight
- the preferred dialog height