Class LabelingManager

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, LabelingPanel, org.gvsig.propertypage.PropertiesPage, org.gvsig.tools.swing.api.Component

public class LabelingManager extends AbstractThemeManagerPage implements ActionListener, LabelingPanel
Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • LabelingManager

      public LabelingManager()
  • Method Details

    • isLabelingEnabled

      public boolean isLabelingEnabled()
      Specified by:
      isLabelingEnabled in interface LabelingPanel
    • setLabelingEnabled

      public void setLabelingEnabled(boolean enabled)
      Specified by:
      setLabelingEnabled in interface LabelingPanel
    • setCurrentLabelingStrategy

      public void setCurrentLabelingStrategy(org.gvsig.app.project.documents.view.legend.gui.ILabelingStrategyPanel panel)
      Specified by:
      setCurrentLabelingStrategy in interface LabelingPanel
    • getCurrentLabelingStrategy

      public org.gvsig.app.project.documents.view.legend.gui.ILabelingStrategyPanel getCurrentLabelingStrategy()
      Specified by:
      getCurrentLabelingStrategy in interface LabelingPanel
    • getLayer

      public org.gvsig.fmap.mapcontext.layers.FLayer getLayer()
      Specified by:
      getLayer in interface LabelingPanel
    • setLayer

      public void setLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer)
      Specified by:
      setLayer in interface LabelingPanel
    • getLabelingStrategy

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy getLabelingStrategy()
      Specified by:
      getLabelingStrategy in interface LabelingPanel
    • getPriority

      public int getPriority()
      Description copied from class: AbstractThemeManagerPage
      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
      Overrides:
      getPriority in class AbstractThemeManagerPage
      Returns:
      La prioridad
    • addLabelingStrategy

      public static void addLabelingStrategy(Class<? extends org.gvsig.app.project.documents.view.legend.gui.ILabelingStrategyPanel> iLabelingStrategyPanelClass)
    • setModel

      public void setModel(org.gvsig.fmap.mapcontext.layers.FLayer layer) throws IllegalArgumentException
      Description copied from class: AbstractThemeManagerPage
      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.
      Specified by:
      setModel in class AbstractThemeManagerPage
      Parameters:
      layer - , the target FLayer
      Throws:
      IllegalArgumentException
    • actionPerformed

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

      public void acceptAction()
      Description copied from class: AbstractThemeManagerPage

      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.

      Specified by:
      acceptAction in class AbstractThemeManagerPage
    • cancelAction

      public void cancelAction()
      Description copied from class: AbstractThemeManagerPage

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

      Specified by:
      cancelAction in class AbstractThemeManagerPage
    • applyAction

      public void applyAction()
      Description copied from class: AbstractThemeManagerPage
      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.
      Specified by:
      applyAction in class AbstractThemeManagerPage
    • getName

      public String getName()
      Description copied from class: AbstractThemeManagerPage
      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.
      Specified by:
      getName in class AbstractThemeManagerPage