Class AlignedObjectBasedPreviewTableModel<ROW_TYPE>

    • Field Detail

      • alignment NEW

        protected int alignment
      • filteredIndices NEW

        protected int[] filteredIndices

Constructor Detail

  • Method Detail

    • getAlignment

      public int getAlignment()
    • setAlignment

      public void setAlignment​(int alignment)
    • doFilter

      public java.util.List<ROW_TYPE> doFilter​(java.util.List<ROW_TYPE> data,
                                               TableSortingContext<ROW_TYPE> sortingContext,
                                               TaskMonitor monitor)
                                        throws CancelledException
      Description copied from class: ThreadedTableModel
      Override this to change how filtering is performed. This implementation will do nothing if a TableFilter has not been set via a call to ThreadedTableModel.setTableFilter(TableFilter). Also, no filtering will happen if there is no filter text set via a call to #setFilterText(String).
      Overrides:
      doFilter in class ThreadedTableModel<ROW_TYPE,​Program>
      Parameters:
      data - The list of data to be filtered.
      sortingContext - the comparator used to sort data. This can be used by overridden filter methods that need to query data about how the table is sorted.
      monitor - the progress monitor to check for cancellation.
      Returns:
      The new filtered list of data. If no filtering takes place, then the original list should be returned.
      Throws:
      CancelledException - If the filter operation is cancelled.
    • doLoad

      protected void doLoad​(Accumulator<ROW_TYPE> accumulator,
                            TaskMonitor monitor)
                     throws CancelledException
      Description copied from class: ThreadedTableModel
      The basic method that all children must implement. This is where children load their data.
      Specified by:
      doLoad in class ThreadedTableModel<ROW_TYPE,​Program>
      Parameters:
      accumulator - the datastructure into which you should incrementally place you table row data
      monitor - the task monitor to check for cancellations and to update progress
      Throws:
      CancelledException - if the task monitor has been cancelled and a call is made to monitor.checkCancelled();.
    • getAlignmentAddress

      protected abstract Address getAlignmentAddress​(java.util.List<ROW_TYPE> localList,
                                                     int index)