Class DefaultGradientModel

    • Constructor Detail

      • DefaultGradientModel

        public DefaultGradientModel()
        Constructor.
    • Method Detail

      • getLowerBound

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

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

        public int getRowCount()
      • getColumnCount

        public int getColumnCount()
      • 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)
      • add

        public void add​(java.awt.Color color,
                        int position)
        Adds a color point.
        Parameters:
        color -
        position -
      • remove

        public void remove​(int index)
        Removes a color point at specified index.
        Parameters:
        index -
      • clear

        public void clear()
        Removes all color points.