Class AbstractThemeManagerPage

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.app.project.documents.view.legend.gui.AbstractThemeManagerPage
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.gvsig.propertypage.PropertiesPage, org.gvsig.tools.swing.api.Component
Direct Known Subclasses:
General, LabelingManager, LegendManager, MetadataInfoManager

public abstract class AbstractThemeManagerPage extends JPanel implements org.gvsig.propertypage.PropertiesPage
See Also:
  • Constructor Details

    • AbstractThemeManagerPage

      public AbstractThemeManagerPage()
  • Method Details

    • getFirstActiveLayerVect

      protected org.gvsig.fmap.mapcontext.layers.FLayer getFirstActiveLayerVect(org.gvsig.fmap.mapcontext.layers.FLayers layers)
      Cuando hay varios capas vectoriales seleccionados, devolverá el último.
      Parameters:
      layers - Grupo de layers.
      Returns:
      la primera flayer seleccionada.
    • setData

      public void setData(Object data)
      Specified by:
      setData in interface org.gvsig.propertypage.PropertiesPage
    • isTabEnabledForLayer

      public boolean isTabEnabledForLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer)
    • getPriority

      public int getPriority()
      Retorna la prioridad usada para determinar la posicion de la pestaña. Cuanto mas alta sea esta mas a la izquierda estara la pestaña.
      Specified by:
      getPriority in interface org.gvsig.propertypage.PropertiesPage
      Returns:
      La prioridad
    • getName

      public abstract String getName()
      Returns the name of this ThemeManagerPage's tab, the text returned by this method will be shown in the text of this panel's tab.
      Overrides:
      getName in class Component
    • acceptAction

      public abstract void acceptAction()

      Method invoked when the Ok button is pressed from the ThemeManagerWindow. It will cause the changes performed by the user to take effect into the layer if the Apply button wasn't pressed yet. In case Apply button was pressed, then the programmer can choose between apply the changes again or not.

      It shouldn't be a problem rather than the potential consumption of time required in when applying such changes.

      Notice that after the call of this method the ThemeManagerWindow will be closed.

    • cancelAction

      public abstract void cancelAction()

      Method invoked when the Cancel button is pressed from the ThemeManagerWindow. It will cause that the changes performed will be discarded.

    • applyAction

      public abstract void applyAction()
      Method invoked when the Apply button is pressed from the ThemeManagerWindow. It will cause the changes performed by the user to take effect inmediately into the the layer.
    • setModel

      public abstract void setModel(org.gvsig.fmap.mapcontext.layers.FLayer layer)
      This method is invoked during the initialization of the ThemeManagerWindow and causes the dialog to be updated to reflect the current settings of the layer in the context that this panel was designed for.
      Parameters:
      layer - , the target FLayer
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface org.gvsig.propertypage.PropertiesPage
    • whenAccept

      public boolean whenAccept()
      Specified by:
      whenAccept in interface org.gvsig.propertypage.PropertiesPage
    • whenApply

      public boolean whenApply()
      Specified by:
      whenApply in interface org.gvsig.propertypage.PropertiesPage
    • whenCancel

      public boolean whenCancel()
      Specified by:
      whenCancel in interface org.gvsig.propertypage.PropertiesPage
    • asJComponent

      public JComponent asJComponent()
      Specified by:
      asJComponent in interface org.gvsig.tools.swing.api.Component