public class JPAZWindow extends Object
Constructor and Description |
---|
JPAZWindow()
Constructs new window for displaying a pane.
|
JPAZWindow(Pane pane)
Constructs new window for displaying a pane.
|
JPAZWindow(Pane pane,
boolean alignMode)
Constructs new window for displaying a pane.
|
Modifier and Type | Method and Description |
---|---|
void |
bindTo(Pane pane)
Binds the content of this window to a pane.
|
void |
bindTo(Pane pane,
boolean align)
Binds the content of this window to a pane.
|
void |
center()
Centers the window.
|
int |
getHeight()
Returns the height of the window.
|
Pane |
getPane()
Returns the pane that is bound (displayed) to this window.
|
String |
getTitle()
Returns the title of the window (frame).
|
int |
getWidth()
Returns the width of the window.
|
int |
getX()
Returns the X-coordinate of the top-left corner of the window.
|
int |
getY()
Returns the Y-coordinate of the top-left corner of the window.
|
boolean |
isAlignMode()
Returns whether the bound pane is aligned to the window.
|
boolean |
isResizable()
Returns whether the window (frame) is resizable.
|
void |
rebindWithEffect(Pane pane,
boolean align,
TransitionEffect transitionEffect,
long duration)
Binds the content of this window to another pane with transition effect.
|
void |
rebindWithEffect(Pane pane,
TransitionEffect transitionEffect,
long duration)
Binds the content of this window to another pane with transition effect.
|
void |
setAlignMode(boolean alignMode)
Sets whether the bound pane is aligned to the window.
|
void |
setHeight(int height)
Sets the height of the window.
|
void |
setIconImage(Image image)
Sets the icon of the window.
|
void |
setIconImage(ImageShape imageShape)
Sets the icon of the window.
|
void |
setLocation(int x,
int y)
Sets the location of the top-left corner of the window.
|
void |
setPane(Pane pane)
Sets the pane that is bound to this window.
|
void |
setResizable(boolean resizable)
Sets whether the window (frame) is resizable.
|
void |
setSize(int width,
int height)
Sets size of the window.
|
void |
setTitle(String title)
Sets the title of the window.
|
void |
setWidth(int width)
Sets the width of the window.
|
void |
setX(int x)
Sets the X-coordinate of the top-left corner of the window.
|
void |
setY(int y)
Sets the Y-coordinate of the top-left corner of the window.
|
public JPAZWindow()
public JPAZWindow(Pane pane)
pane
- the pane to be displayed in this window.public JPAZWindow(Pane pane, boolean alignMode)
pane
- the pane to be displayed in this window.alignMode
- a boolean, true for aligning the pane is aligned to the window
(frame).public void bindTo(Pane pane)
pane
- the pane to be displayed in this window (frame).public void bindTo(Pane pane, boolean align)
pane
- the pane to be bound to this window.align
- a boolean, true for aligning the bound pane to the window.public void rebindWithEffect(Pane pane, boolean align, TransitionEffect transitionEffect, long duration)
pane
- the pane to be bound to this window.align
- a boolean, true for aligning the bound pane to the window.transitionEffect
- the transition effect to be applied.duration
- the duration of the transition in milliseconds.public void rebindWithEffect(Pane pane, TransitionEffect transitionEffect, long duration)
pane
- the pane to be bound to this window.transitionEffect
- the transition effect to be applied.duration
- the duration of the transition in milliseconds.public Pane getPane()
public void setPane(Pane pane)
pane
- the pane to be bound to this window.public boolean isAlignMode()
public void setAlignMode(boolean alignMode)
alignMode
- true, if the bound pane is aligned to the window, false
otherwise.public String getTitle()
public void setTitle(String title)
title
- the desired title of the window.public int getWidth()
public void setWidth(int width)
width
- the desired width of the window.public int getHeight()
public void setHeight(int height)
height
- the desired height of the window.public void setSize(int width, int height)
width
- the desired width of the window.height
- the desired height of the window.public int getX()
public void setX(int x)
x
- the desired X-coordinate of the top-left corner of the window.public int getY()
public void setY(int y)
y
- the desired Y-coordinate of the top-left corner of the window.public void setLocation(int x, int y)
x
- the desired X-coordinate of the top-left corner of the window.y
- the desired Y-coordinate of the top-left corner of the window.public void center()
public boolean isResizable()
public void setResizable(boolean resizable)
resizable
- a boolean, true if the window is resizable, false otherwise.public void setIconImage(Image image)
image
- the desired image to be shown as an icon of the window.public void setIconImage(ImageShape imageShape)
imageShape
- the desired image shape to be shown as an icon of the window.
A frame with index 0 of the view with index 0 will be used.Copyright © 2017. All rights reserved.