Class StyleEditor

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, org.gvsig.andami.ui.mdiManager.IWindow

public class StyleEditor extends JPanel implements org.gvsig.andami.ui.mdiManager.IWindow, ActionListener
Implements the panel which is composed by a previsualization of the style for the label and the different tools that the user has to modify that style in order to improve the representation of the labelling in the layer. The different available tools and the preview of the style change according with the geometry of the layer.
Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • StyleEditor

      public StyleEditor(org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle style)
      Constructor method
      Parameters:
      style - , an specific style for the labelling of the layer.This style depends on the geometry of the layer.
  • Method Details

    • setStyle

      public void setStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle sty)
      Sets the previewer of the style in the panel
      Parameters:
      sty - , style to be previewed
    • getStylePreviewer

      public StylePreviewer getStylePreviewer()
      This method initializes the StylePreviewer
      Returns:
      StylePreviewer for the label
    • getWindowInfo

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

      public org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle getStyle()
      Obtains the style for the label
      Returns:
      IStyle
    • actionPerformed

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

      public void restorePreviousTool()
      Sets the tool to be used with the previous one
    • addEditorTool

      public static void addEditorTool(Class styleEditorClass)
      Adds a new tool for the style
      Parameters:
      styleEditorClass - , the new tool to be added
    • getWindowProfile

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