Class DefaultGradientEditorModel

    • Constructor Detail

      • DefaultGradientEditorModel

        public DefaultGradientEditorModel()
    • Method Detail

      • removeMarkerAtIndex

        public void removeMarkerAtIndex​(int index)
        Description copied from interface: MarkerMutationModel
        Called when the user requests a mark to be removed from JMarkerBar.
        Specified by:
        removeMarkerAtIndex in interface MarkerMutationModel
        Parameters:
        index - index of the mark to be removed.
      • addMarkAtPosition

        public int addMarkAtPosition​(int pos)
        Description copied from interface: MarkerMutationModel
        Called when the user requests a mark to be inserted into JMarkerBar.
        Specified by:
        addMarkAtPosition in interface MarkerMutationModel
        Parameters:
        pos - position at which to insert the mark.
        Returns:
        index of newly added mark.
      • getLowerBound

        public int getLowerBound()
        Description copied from interface: BoundedTableModel
        Returns some lower bound, further describing the data.
        Specified by:
        getLowerBound in interface BoundedTableModel
        Returns:
        lower bound.
      • getUpperBound

        public int getUpperBound()
        Description copied from interface: BoundedTableModel
        Returns some upper bound, further describing the data.
        Specified by:
        getUpperBound in interface BoundedTableModel
        Returns:
        upper bound.
      • getRowCount

        public int getRowCount()
        Specified by:
        getRowCount in interface javax.swing.table.TableModel
      • getColumnCount

        public int getColumnCount()
        Specified by:
        getColumnCount in interface javax.swing.table.TableModel
      • getColumnClass

        public java.lang.Class getColumnClass​(int columnIndex)
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
      • getValueAt

        public java.lang.Object getValueAt​(int rowIndex,
                                           int columnIndex)
        Specified by:
        getValueAt in interface javax.swing.table.TableModel
      • setValueAt

        public void setValueAt​(java.lang.Object aValue,
                               int rowIndex,
                               int columnIndex)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • isCellEditable

        public boolean isCellEditable​(int rowIndex,
                                      int columnIndex)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel