bibliothek.gui.dock.station.screen
Class ScreenDockPerspective.ScreenPerspectiveWindow

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.ScreenDockPerspective.ScreenPerspectiveWindow
All Implemented Interfaces:
PlaceholderListItem<PerspectiveDockable>
Enclosing class:
ScreenDockPerspective

public static class ScreenDockPerspective.ScreenPerspectiveWindow
extends java.lang.Object
implements PlaceholderListItem<PerspectiveDockable>

Represents a child of a ScreenDockPerspective.

Author:
Benjamin Sigg

Constructor Summary
ScreenDockPerspective.ScreenPerspectiveWindow(PerspectiveDockable dockable)
          Creates a new object.
 
Method Summary
 PerspectiveDockable asDockable()
          Gets the Dockable that is associated with this item.
 int getHeight()
          Gets the height of this dockable in pixels.
 int getWidth()
          Gets the width of this dockable in pixels.
 int getX()
          Gets the x-coordinate of this dockable on the screen.
 int getY()
          Gets the y-coordinate of this dockable on the screen.
 boolean isFullscreen()
          Tells whether this dockable is shown in fullscreen-mode or not.
 void setFullscreen(boolean fullscreen)
          Sets whether this dockable is shown in fullscreen-mode or not.
 void setHeight(int height)
          Sets the height of this dockable in pixels.
 void setWidth(int width)
          Sets the width of this dockable in pixels.
 void setX(int x)
          Sets the x-coordinate of this dockable on the screen.
 void setY(int y)
          Sets the y-coordinate of this dockable on the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenDockPerspective.ScreenPerspectiveWindow

public ScreenDockPerspective.ScreenPerspectiveWindow(PerspectiveDockable dockable)
Creates a new object.

Parameters:
dockable - the element which is represented by this
Method Detail

asDockable

public PerspectiveDockable asDockable()
Description copied from interface: PlaceholderListItem
Gets the Dockable that is associated with this item.

Specified by:
asDockable in interface PlaceholderListItem<PerspectiveDockable>
Returns:
the dockable, not null

getX

public int getX()
Gets the x-coordinate of this dockable on the screen.

Returns:
the x-coordinate

setX

public void setX(int x)
Sets the x-coordinate of this dockable on the screen.

Parameters:
x - the x-coordinate

getY

public int getY()
Gets the y-coordinate of this dockable on the screen.

Returns:
the y-coordinate

setY

public void setY(int y)
Sets the y-coordinate of this dockable on the screen.

Parameters:
y - the y-coordinate

getWidth

public int getWidth()
Gets the width of this dockable in pixels.

Returns:
the width

setWidth

public void setWidth(int width)
Sets the width of this dockable in pixels.

Parameters:
width - the width

getHeight

public int getHeight()
Gets the height of this dockable in pixels.

Returns:
the height

setHeight

public void setHeight(int height)
Sets the height of this dockable in pixels.

Parameters:
height - the height

isFullscreen

public boolean isFullscreen()
Tells whether this dockable is shown in fullscreen-mode or not.

Returns:
true if fullscreen-mode is active

setFullscreen

public void setFullscreen(boolean fullscreen)
Sets whether this dockable is shown in fullscreen-mode or not.

Parameters:
fullscreen - whether to activate fullscreen-mode