com.tensegrity.skeleton.swing
Class FrameLayoutSnapshot

java.lang.Object
  extended bycom.tensegrity.skeleton.swing.FrameLayoutSnapshot

public class FrameLayoutSnapshot
extends java.lang.Object

This class is a simple "property bag" used with the SwingFrameLayoutController in order to help restoring an application frame layout at application startup.

Version:
$Id: FrameLayoutSnapshot.java,v 1.2 2004/05/18 10:39:50 SebastienGuyon Exp $
Author:
S�bastien Guyon

Constructor Summary
FrameLayoutSnapshot(boolean isNWVisible, int NWPreferredHeight, boolean isWVisible, int WDividerPosition, int WPreferredHeight, boolean isSWVisible, int SWDividerPosition, int SWPreferredHeight, boolean isNEVisible, int NEPreferredHeight, boolean isEVisible, int EDividerPosition, int EPreferredHeight, boolean isSEVisible, int SEDividerPosition, int SEPreferredHeight, int WColumnWidth, int EColumnWidth, int MiddleColumnWidth, boolean isSVisible, int SDividerPosition, int SPreferredHeight)
           This is the only constructor.
 
Method Summary
 int getEColumnWidth()
          Returns the East Column Width.
 int getEDividerPosition()
          Returns the East Container Divider Position.
 int getEPreferredHeight()
          Returns the East Container Preferred Height.
 int getMiddleColumnWidth()
          Returns the middle Column Width.
 int getNEPreferredHeight()
          Returns the North East Container Preferred Height.
 int getNWPreferredHeight()
          Returns the North West Container Preferred Height.
 int getSDividerPosition()
          Returns the South Container Divider Position.
 int getSEDividerPosition()
          Returns the South East Container Divider Position.
 int getSEPreferredHeight()
          Returns the South East Container Preferred Height.
 int getSPreferredHeight()
          Returns the South Container Preferred Height.
 int getSWDividerPosition()
          Returns the South West Container Divider Position.
 int getSWPreferredHeight()
          Returns the South West Container Preferred Height.
 int getWColumnWidth()
          Returns the West Column Width.
 int getWDividerPosition()
          Returns the West Container Divider Position.
 int getWPreferredHeight()
          Returns the West Container Preferred Height.
 boolean isEVisible()
          true if East Container is visible, false otherwise.
 boolean isNEVisible()
          true if North East Container is Visible, false otherwise.
 boolean isNWVisible()
          true if North West Container is Visible, false otherwise.
 boolean isSEVisible()
          true if South East Container is Visible, false otherwise.
 boolean isSVisible()
          true if South Container is Visible, false otherwise.
 boolean isSWVisible()
          true if South West Container is Visible, false otherwise.
 boolean isWVisible()
          true if West Container is Visible, false otherwise.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameLayoutSnapshot

public FrameLayoutSnapshot(boolean isNWVisible,
                           int NWPreferredHeight,
                           boolean isWVisible,
                           int WDividerPosition,
                           int WPreferredHeight,
                           boolean isSWVisible,
                           int SWDividerPosition,
                           int SWPreferredHeight,
                           boolean isNEVisible,
                           int NEPreferredHeight,
                           boolean isEVisible,
                           int EDividerPosition,
                           int EPreferredHeight,
                           boolean isSEVisible,
                           int SEDividerPosition,
                           int SEPreferredHeight,
                           int WColumnWidth,
                           int EColumnWidth,
                           int MiddleColumnWidth,
                           boolean isSVisible,
                           int SDividerPosition,
                           int SPreferredHeight)

This is the only constructor. All the passed parameters represent properties which can then be accessed through their respective get/is... methods.

Parameters:
isNWVisible - Is North West Visible property
NWPreferredHeight - North West Preferred Height property
isWVisible - Is West Visible property
WDividerPosition - West Divider Position property
WPreferredHeight - West Preferred Height property
isSWVisible - Is South West Visible property
SWDividerPosition - South West Divider Position property
SWPreferredHeight - South West Preferred Height property
isNEVisible - Is North East Visible property
NEPreferredHeight - North East Preferred Height property
isEVisible - Is East Visible property
EDividerPosition - East Divider Position property
EPreferredHeight - East Preferred Height property
isSEVisible - Is South East Visible property
SEDividerPosition - South East Divider Position property
SEPreferredHeight - South East Preferred Height property
WColumnWidth - West Column Width property
EColumnWidth - East Column Width property
MiddleColumnWidth - Middle Column Width property
isSVisible - Is South Visible property
SDividerPosition - South Divider Position property
SPreferredHeight - South Preferred Height property
Method Detail

getEColumnWidth

public final int getEColumnWidth()
Returns the East Column Width.

Returns:
Returns the East Column Width.

getEDividerPosition

public final int getEDividerPosition()
Returns the East Container Divider Position.

Returns:
Returns the East Divider Position.

isEVisible

public final boolean isEVisible()
true if East Container is visible, false otherwise.

Returns:
true if East Container is Visible, false otherwise.

isNEVisible

public final boolean isNEVisible()
true if North East Container is Visible, false otherwise.

Returns:
true if North East Container is Visible, false otherwise.

isNWVisible

public final boolean isNWVisible()
true if North West Container is Visible, false otherwise.

Returns:
true if North West Container is Visible, false otherwise.

isSEVisible

public final boolean isSEVisible()
true if South East Container is Visible, false otherwise.

Returns:
true if South East Container is Visible, false otherwise.

isSVisible

public final boolean isSVisible()
true if South Container is Visible, false otherwise.

Returns:
true if South Container is Visible, false otherwise.

isSWVisible

public final boolean isSWVisible()
true if South West Container is Visible, false otherwise.

Returns:
true if South West Container is Visible, false otherwise.

isWVisible

public final boolean isWVisible()
true if West Container is Visible, false otherwise.

Returns:
true if West Container is Visible, false otherwise.

getSDividerPosition

public final int getSDividerPosition()
Returns the South Container Divider Position.

Returns:
Returns the South Container Divider Position.

getSEDividerPosition

public final int getSEDividerPosition()
Returns the South East Container Divider Position.

Returns:
Returns the South East Container Divider Position.

getSWDividerPosition

public final int getSWDividerPosition()
Returns the South West Container Divider Position.

Returns:
Returns the South West Container Divider Position.

getWColumnWidth

public final int getWColumnWidth()
Returns the West Column Width.

Returns:
Returns the West Column Width.

getWDividerPosition

public final int getWDividerPosition()
Returns the West Container Divider Position.

Returns:
Returns the West Container Divider Position.

toString

public java.lang.String toString()
See Also:
Object.toString()

getEPreferredHeight

public final int getEPreferredHeight()
Returns the East Container Preferred Height.

Returns:
Returns the East Container Preferred Height.

getNEPreferredHeight

public final int getNEPreferredHeight()
Returns the North East Container Preferred Height.

Returns:
Returns the North East Container Preferred Height.

getNWPreferredHeight

public final int getNWPreferredHeight()
Returns the North West Container Preferred Height.

Returns:
Returns the North West Container Preferred Height.

getSEPreferredHeight

public final int getSEPreferredHeight()
Returns the South East Container Preferred Height.

Returns:
Returns the South East Container Preferred Height.

getSPreferredHeight

public final int getSPreferredHeight()
Returns the South Container Preferred Height.

Returns:
Returns the South Container Preferred Height.

getSWPreferredHeight

public final int getSWPreferredHeight()
Returns the South West Container Preferred Height.

Returns:
Returns the South West Container Preferred Height.

getWPreferredHeight

public final int getWPreferredHeight()
Returns the West Container Preferred Height.

Returns:
Returns the West Container Preferred Height.

getMiddleColumnWidth

public final int getMiddleColumnWidth()
Returns the middle Column Width.

Returns:
Returns the middle Column Width.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.