Class StylePreviewer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class StylePreviewer extends SymbolPreviewer
Defines the properties of the symbols that are showed in the SymbolPreviewer panel.Also the user has methods to set this attributes.
Author:
gvSIG Team
See Also:
  • Constructor Details

    • StylePreviewer

      public StylePreviewer(org.apache.commons.lang3.mutable.MutableObject<org.gvsig.fmap.dal.feature.Feature> feature)
      Constructor method
      Parameters:
      feature -
    • StylePreviewer

      public StylePreviewer()
  • Method Details

    • getStyle

      public org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle getStyle()
      Obtains the style of the symbol showed in the SymbolPreviewer panel
      Returns:
      style,IStyle
    • setShowOutline

      public void setShowOutline(boolean so)
    • getSymbol

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbol()
      Description copied from class: SymbolPreviewer
      Returns the symbol printed inside
      Overrides:
      getSymbol in class SymbolPreviewer
      Returns:
      symbol
    • setSymbol

      public void setSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Description copied from class: SymbolPreviewer
      Establishes the symbol to be showed in the symbolpreviewer panel
      Overrides:
      setSymbol in class SymbolPreviewer
      Parameters:
      symbol -
    • setStyle

      public void setStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle style)
      Defines the style of the symbol showed in the SymbolPreviewer panel
      Parameters:
      style - ,IStyle
    • paint

      public void paint(Graphics g)
      Description copied from class: SymbolPreviewer
      Draws the symbol in the middle of the pane in order to create a preview of the final one.
      Overrides:
      paint in class SymbolPreviewer
    • getHGap

      public int getHGap()
    • getVGap

      public int getVGap()