Class SymbolSelector

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, org.gvsig.andami.ui.mdiManager.IWindow, ISymbolSelector
Direct Known Subclasses:
StyleSelector, SymbolSelectorBrowser

public class SymbolSelector extends JPanel implements ISymbolSelector, ActionListener
Creates the panel where the user has the options to select a symbol. Apart from the option to select one, the user will have a previsualization of all the symbols stored and posibilities to modify an existing one, to create a new symbol and so on.
Author:
gvSIG Team
See Also:
  • Field Details

    • jScrollPane

      protected JScrollPane jScrollPane
    • okCancelPanel

      protected org.gvsig.gui.beans.AcceptCancelPanel okCancelPanel
    • lblTitle

      protected JLabel lblTitle
    • dir

      protected File dir
    • rootDir

      protected File rootDir
    • jPanelPreview

      protected SymbolPreviewer jPanelPreview
    • jPanelOptions

      protected org.gvsig.gui.beans.swing.GridBagLayoutPanel jPanelOptions
    • jListSymbols

      protected JList jListSymbols
    • treeRootName

      protected String treeRootName
    • library

      protected ILibraryModel library
    • act

      protected boolean act
    • sFilter

      protected SelectorFilter sFilter
    • cmbUnits

      protected org.gvsig.app.gui.JComboBoxUnits cmbUnits
    • cmbReferenceSystem

      protected JComboBoxUnitsReferenceSystem cmbReferenceSystem
    • libraryBrowser

      protected LibraryBrowser libraryBrowser
  • Constructor Details

  • Method Details

    • initialize

      protected void initialize(Object currentElement) throws IllegalArgumentException
      This method initializes this
      Parameters:
      currentElement -
      Throws:
      ClassNotFoundException
      IllegalArgumentException
    • newListModel

      protected ListModel newListModel()
      Creates a new symbol selector list model in order to allow the user to select an existing symbol previously created.
      Returns:
      listModel SymbolSelectorListModel
    • getJNorthPanel

      protected JPanel getJNorthPanel() throws IllegalArgumentException
      Initializes tha JNorthPanel.
      Returns:
      northPanel JPanel
      Throws:
      IllegalArgumentException
    • getJListSymbols

      protected JList getJListSymbols()
      This method initializes jList
      Returns:
      javax.swing.JList
    • updateOptionsPanel

      protected void updateOptionsPanel() throws IllegalArgumentException
      Updates the options panel depending on the type of symbol that the user is controlling or using to show specific options for each one.
      Throws:
      IllegalArgumentException
    • getJEastPanel

      protected JPanel getJEastPanel()
      This method initializes jPanel
      Returns:
      javax.swing.JPanel
    • getLeftJScrollPane

      protected JScrollPane getLeftJScrollPane()
      This method initializes jScrollPane
      Returns:
      javax.swing.JScrollPane
      Throws:
      ClassNotFoundException
    • getJPanelPreview

      protected SymbolPreviewer getJPanelPreview()
      This method initializes jPanelPreview
      Returns:
      javax.swing.JComponent
    • getJPanelOptions

      protected JPanel getJPanelOptions()
      This method initializes jPanelOptions
      Returns:
      javax.swing.JPanel
    • getWindowInfo

      public org.gvsig.andami.ui.mdiManager.WindowInfo getWindowInfo()
      Specified by:
      getWindowInfo in interface org.gvsig.andami.ui.mdiManager.IWindow
    • getJSplitPane

      protected JSplitPane getJSplitPane()
    • getSelectedObject

      public Object getSelectedObject()
      Description copied from interface: ISymbolSelector
      Returns the symbol selected by the user or null if none. It tries to return the simplest possible symbol that suits the user settings.
      Specified by:
      getSelectedObject in interface ISymbolSelector
      Returns:
    • setSymbol

      public void setSymbol(Object symbol)
      Description copied from interface: ISymbolSelector
      Sets the symbol selected by the user
      Specified by:
      setSymbol in interface ISymbolSelector
    • propertiesPressed

      protected void propertiesPressed()
      Invoked when the PROPERTIES button is pressed
    • newPressed

      protected void newPressed()
      Invoked when the NEW button is pressed
    • resetPressed

      protected void resetPressed()
      Invoked when the RESET button is pressed
    • savePressed

      protected void savePressed()
      Invoked when the SAVE button is pressed
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • performActionOn

      protected void performActionOn(Object selectedElement, ActionEvent e)
    • createSymbolBrowser

      public static ISymbolSelector createSymbolBrowser()
    • createSymbolSelector

      public static ISymbolSelector createSymbolSelector(Object currSymbol, int shapeType)
    • createSymbolSelector

      public static ISymbolSelector createSymbolSelector(Object currSymbol, int shapeType, SelectorFilter filter)
    • getWindowProfile

      public Object getWindowProfile()
      Specified by:
      getWindowProfile in interface org.gvsig.andami.ui.mdiManager.IWindow
    • setFeatureStore

      public void setFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore store)
      Specified by:
      setFeatureStore in interface ISymbolSelector
    • getSampleFeature

      public org.apache.commons.lang3.mutable.MutableObject<org.gvsig.fmap.dal.feature.Feature> getSampleFeature()