Class ImageTheme

All Implemented Interfaces:
Visibility, EditableTableModel, Serializable, TableModel

public class ImageTheme extends Theme
See Also:
Serialized Form
  • Constructor Details

    • ImageTheme

      public ImageTheme(String filename)
  • Method Details

    • getRowCount

      public int getRowCount()
      Description copied from class: Theme
      AbstractTableModel and EditableTableModel interfaces
      Specified by:
      getRowCount in interface TableModel
      Specified by:
      getRowCount in class Theme
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface TableModel
      Specified by:
      getColumnCount in class Theme
    • getColumnName

      public String getColumnName(int columnIndex)
      Specified by:
      getColumnName in interface TableModel
      Specified by:
      getColumnName in class Theme
    • getValueAt

      public Object getValueAt(int row, int column)
      Specified by:
      getValueAt in interface TableModel
      Specified by:
      getValueAt in class Theme
    • getColumnClass

      public Class getColumnClass(int column)
      Specified by:
      getColumnClass in interface TableModel
      Specified by:
      getColumnClass in class Theme
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Specified by:
      isCellEditable in interface TableModel
      Specified by:
      isCellEditable in class Theme
    • setValueAt

      public void setValueAt(Object aValue, int rowIndex, int columnIndex)
      Specified by:
      setValueAt in interface TableModel
      Specified by:
      setValueAt in class Theme
    • removeRow

      public void removeRow(int row)
      Description copied from interface: EditableTableModel
      Remove the row specified by the row number.
    • addRow

      public void addRow(Component comp)
      Description copied from interface: EditableTableModel
      Add a row to the table using default values. Optionally provide a reference to the parent window in case a dialog needs to be shown.
    • addRow

      public void addRow(Object[] obj)
      Description copied from interface: EditableTableModel
      Add a row to the table. The number of items in the rowData array must match the number of columns in the table.
    • moveRow

      public void moveRow(int from, int to)
      Description copied from interface: EditableTableModel
      Move the specified row to a new location
    • getSymbol

      public Symbol getSymbol(Object key)
      Description copied from class: Theme
      Get a symbol for a specific key. This method only gets the raw symbol type, and is usually called by other methods that will take unclassified values and visibility parameters in to account.
      Specified by:
      getSymbol in class Theme
      Parameters:
      key - the key value used to look up the appropriate symbol
    • getSymbol

      public Symbol getSymbol(int row, int period)
      Description copied from class: Theme
      Get a symbol for a given object id and period. This method only gets the raw symbol type, and is usually called by other methods that will take unclassified values and visibility parameters in to account.
      Specified by:
      getSymbol in class Theme
      Parameters:
      row - the row number or object id for the feature or grid value
      period - the period of interest
    • getSymbol

      public Symbol getSymbol(Object key, double scale, Layer layer)
      Description copied from class: Theme
      Get a symbol for the key value
      Specified by:
      getSymbol in class Theme
      Parameters:
      key - the lookup value
      scale - the world to page scale
      layer - the parent layer
    • getEditor

      public ThemeEditor getEditor(Layer lle)
      Description copied from class: Theme
      Return a ThemeEditor component appropriate for the theme type.
      Specified by:
      getEditor in class Theme
    • getSelectedSymbol

      public Symbol getSelectedSymbol()
      Description copied from class: Theme
      Get the selected object symbol for this theme
      Specified by:
      getSelectedSymbol in class Theme
    • clone

      public Object clone()
      Description copied from class: Theme
      Return a deep copy of the object as appropriate for each theme type
      Specified by:
      clone in class Theme
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • resetSelectionContext

      public void resetSelectionContext()
      Description copied from class: Theme
      Selection contexts can cache results of time consuming selection operations involved in some spatial quary operators. This method will release the cached selection values so that the query will be recalculated.
      Specified by:
      resetSelectionContext in class Theme
    • hasSelectionContext

      public boolean hasSelectionContext()
      Description copied from class: Theme
      Ask if theme makes use of cached spatial queries to speed up operations.
      Specified by:
      hasSelectionContext in class Theme