Class SymbolPreviewer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
StylePreviewer

public class SymbolPreviewer extends JPanel
SymbolPreviewer creates a JPanel used for the user to watch the preview of a symbol.It has an square form with a white background and the symbol is inserted in the middle.
Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • SymbolPreviewer

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

      public SymbolPreviewer(org.apache.commons.lang3.mutable.MutableObject<org.gvsig.fmap.dal.feature.Feature> sampleFeature, boolean all_room)
    • SymbolPreviewer

      public SymbolPreviewer(boolean all_room)
    • SymbolPreviewer

      public SymbolPreviewer()
  • Method Details

    • getSymbol

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbol()
      Returns the symbol printed inside
      Returns:
      symbol
    • setSymbol

      public void setSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Establishes the symbol to be showed in the symbolpreviewer panel
      Parameters:
      symbol -
    • paint

      public void paint(Graphics g)
      Draws the symbol in the middle of the pane in order to create a preview of the final one.
      Overrides:
      paint in class JComponent
    • setEditorTool

      public EditorTool setEditorTool(EditorTool tool)
      Sets the EditorTool for the pane.
      Parameters:
      tool -
      Returns: