JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Interface RowColumnSeriesModel

All Known Implementing Classes:
JCRowColumnSeries

public interface RowColumnSeriesModel

RowColumnSeriesModel defines the interface required by classes that can store row or column based properties.


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)
          Adjust 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 position.
 

Method Detail

getDefault

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


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.


getValue

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

Returns:
null if the series is empty.

setValue

public boolean setValue(int position,
                        Object value)
Sets the specified cell to the 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.

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.


move

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


remap

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


shift

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

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 position.


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