JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Interface Moveable

All Known Subinterfaces:
ComponentModel, SelectionModel, SeriesModel
All Known Implementing Classes:
ComponentHandler, JCSelection, JCSeries

public interface Moveable

Moveable defines the interface required by classes that DataViewSupport can move/add/delete and swap.


Method Summary
 void moveColumns(int start_column, int num_columns, int destination)
          Adjust the series after moving columns.
 void moveRows(int start_row, int num_rows, int destination)
          Adjust the series after moving rows.
 void remapColumns(int[] new_positions)
          Reorders columns after the column mapping changes.
 void remapRows(int[] new_positions)
          Reorders rows after the row mapping changes.
 void shiftColumn(int start_column, int num_columns, int direction)
          Adjusts the series after adding or deleting columns.
 void shiftRow(int start_row, int num_rows, int direction)
          Adjusts the series after adding or deleting rows.
 void swapColumns(int column1, int column2)
          Adjusts the series based on two columns swapping position.
 void swapRows(int row1, int row2)
          Adjusts the series based on two rows swapping position.
 

Method Detail

moveColumns

public void moveColumns(int start_column,
                        int num_columns,
                        int destination)
Adjust the series after moving columns.


moveRows

public void moveRows(int start_row,
                     int num_rows,
                     int destination)
Adjust the series after moving rows.


remapColumns

public void remapColumns(int[] new_positions)
Reorders columns after the column mapping changes.


remapRows

public void remapRows(int[] new_positions)
Reorders rows after the row mapping changes.


shiftColumn

public void shiftColumn(int start_column,
                        int num_columns,
                        int direction)
Adjusts the series after adding or deleting columns.

Parameters:
start_column - The start position
num_columns - The number of columns
direction - Use +1 for insert and -1 for delete.

shiftRow

public void shiftRow(int start_row,
                     int num_rows,
                     int direction)
Adjusts the series after adding or deleting rows.

Parameters:
start_row - The start position
num_rows - The number of rows
direction - Use +1 for insert and -1 for delete.

swapColumns

public void swapColumns(int column1,
                        int column2)
Adjusts the series based on two columns swapping position.

Parameters:
column1 - The first column to swap
column2 - The second column to swap

swapRows

public void swapRows(int row1,
                     int row2)
Adjusts the series based on two rows swapping position.

Parameters:
row1 - The first row to swap
row2 - The second row to swap

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