Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table
Class Viewable

java.lang.Object
  extended by com.sciapp.table.Viewable

public class Viewable
extends Object

Viewable is the object that contains information about a cell's resize behaviour when its size is larger than its viewable dimensions.

Resizing will take place only if the viewable dimensions are below the threshold values, minResizeWidth and minResizeHeight.

The minimum resize widths/heights can be a positive number or one of these constants:
NO_RESIZE: no resize will take place
PREF_RESIZE: width or height will resize to the cell's preferred dimension
ALL_RESIZE: width or height will resize to all the available viewable space


Field Summary
static int ALL_RESIZE
          defines a mode with cells resizing to all the available viewable space
protected  int minResizeHeight
          the minimum resize height
protected  int minResizeWidth
          the minimum resize width
static int NO_RESIZE
          defines a no resize mode
static int PREF_RESIZE
          defines a mode with cells resizing to their preferred size
 
Constructor Summary
Viewable()
          Constructs a Viewable having as minimum resize width ALL_RESIZE and minimum resize height PREF_RESIZE.
Viewable(int minResizeWidth, int minResizeHeight)
          Constructs a Viewable.
 
Method Summary
 int getMinResizeHeight()
          Returns the minimum resize height.
 int getMinResizeWidth()
          Returns the minimum resize width.
 void setMinResizeHeight(int minResizeHeight)
          Assigns the minimum resize height.
 void setMinResizeWidth(int minResizeWidth)
          Assigns the minimum resize width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minResizeWidth

protected int minResizeWidth
the minimum resize width


minResizeHeight

protected int minResizeHeight
the minimum resize height


NO_RESIZE

public static final int NO_RESIZE
defines a no resize mode

See Also:
Constant Field Values

PREF_RESIZE

public static final int PREF_RESIZE
defines a mode with cells resizing to their preferred size

See Also:
Constant Field Values

ALL_RESIZE

public static final int ALL_RESIZE
defines a mode with cells resizing to all the available viewable space

See Also:
Constant Field Values
Constructor Detail

Viewable

public Viewable()
Constructs a Viewable having as minimum resize width ALL_RESIZE and minimum resize height PREF_RESIZE.


Viewable

public Viewable(int minResizeWidth,
                int minResizeHeight)
Constructs a Viewable.

Method Detail

getMinResizeHeight

public int getMinResizeHeight()
Returns the minimum resize height.

Returns:
the minimum resize height

getMinResizeWidth

public int getMinResizeWidth()
Returns the minimum resize width.

Returns:
the minimum resize width

setMinResizeHeight

public void setMinResizeHeight(int minResizeHeight)
Assigns the minimum resize height.

Parameters:
minResizeHeight - the minimum resize height

setMinResizeWidth

public void setMinResizeWidth(int minResizeWidth)
Assigns the minimum resize width.

Parameters:
minResizeWidth - the minimum resize width

Copyright © 2005 Scientific Applications. All Rights Reserved.