JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCRowColumnSeries

java.lang.Object
  |
  +--com.klg.jclass.table.JCRowColumnSeries
All Implemented Interfaces:
RowColumnSeriesModel, Serializable

public class JCRowColumnSeries
extends Object
implements RowColumnSeriesModel, Serializable

RowColumnSeriesModel defines the interface required by classes that can store row or column based properties (for example, row height and column width).

See Also:
Serialized Form

Field Summary
protected  Hashtable values
           
 
Constructor Summary
JCRowColumnSeries()
          Creates an empty series with no default.
JCRowColumnSeries(Object value)
          Creates a new series with the specified default.
 
Method Summary
 Object getDefault()
          Gets the default member value.
 List getSeriesValues()
          Returns an iterator for an ordered set of series values.
 Object getValue(int position)
          Returns the value at the specified position.
 void move(int start, int num, int destination)
          Adjusts the series after moving.
 void remap(int[] new_positions)
          Reorders after the mapping changes.
 void setDefault(Object value)
          Creates or sets the default member to the specified value.
 boolean setValue(int start_position, int end_position, Object value)
          Sets a range of cells to the value.
 boolean setValue(int position, Object value)
          Sets the specified cell to the value.
 void shift(int start, int num, int direction)
          Adjusts the series after adding or deleting.
 void swap(int position1, int position2)
          Adjusts the series based on two entries swap positions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected Hashtable values
Constructor Detail

JCRowColumnSeries

public JCRowColumnSeries()
Creates an empty series with no default.


JCRowColumnSeries

public JCRowColumnSeries(Object value)
Creates a new series with the specified default.

Parameters:
value -
Method Detail

getDefault

public Object getDefault()
Gets the default member value. The default value is always equivalent to the ALL position.

Specified by:
getDefault in interface RowColumnSeriesModel
Returns:

setDefault

public void setDefault(Object value)
Creates or sets the default member to the specified value. The default value is always equivalent to the ALL position.

Specified by:
setDefault in interface RowColumnSeriesModel
Parameters:
value -

getValue

public Object getValue(int position)
Returns the value at the specified position.

Specified by:
getValue in interface RowColumnSeriesModel
Parameters:
position -
Returns:
null if the series is empty

setValue

public boolean setValue(int position,
                        Object value)
Sets the specified cell to the value.

Specified by:
setValue in interface RowColumnSeriesModel
Parameters:
position -
value -
Returns:
true if the series was changed after adding the value

setValue

public boolean setValue(int start_position,
                        int end_position,
                        Object value)
Sets a range of cells to the value.

Specified by:
setValue in interface RowColumnSeriesModel
Parameters:
end_position -
start_position -
value -
Returns:
true if the series was changed after adding the value

getSeriesValues

public List getSeriesValues()
Returns an iterator for an ordered set of series values. The iterated objects are PositionCellSize objects.

Specified by:
getSeriesValues in interface RowColumnSeriesModel
Returns:

move

public void move(int start,
                 int num,
                 int destination)
Adjusts the series after moving.

Specified by:
move in interface RowColumnSeriesModel
Parameters:
destination -
num -
start -

remap

public void remap(int[] new_positions)
Reorders after the mapping changes.

Specified by:
remap in interface RowColumnSeriesModel
Parameters:
new_positions -

shift

public void shift(int start,
                  int num,
                  int direction)
Adjusts the series after adding or deleting.

Specified by:
shift in interface RowColumnSeriesModel
Parameters:
start - the start position
num - the number of rows
direction - use +1 for insert and -1 for delete

swap

public void swap(int position1,
                 int position2)
Adjusts the series based on two entries swap positions.

Specified by:
swap in interface RowColumnSeriesModel
Parameters:
position1 -
position2 -

Copyright © 2004 Quest Software Inc..
All rights reserved.