Class JSymbolPreviewButton

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.gvsig.app.project.documents.view.legend.gui.JSymbolPreviewButton
All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener

public class JSymbolPreviewButton extends JComponent implements MouseListener
Just a Button that shows an ISymbol instead a text.
Author:
gvSIG Team
See Also:
  • Constructor Details

    • JSymbolPreviewButton

      public JSymbolPreviewButton(int shapeType)
    • JSymbolPreviewButton

      public JSymbolPreviewButton(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol sym, int shapeType)
  • Method Details

    • getActionCommand

      public String getActionCommand()
      Returns:
      the actionCommand
    • setActionCommand

      public void setActionCommand(String actionCommand)
      Parameters:
      actionCommand - the actionCommand to set
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • setSymbol

      public void setSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • getSymbol

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbol()
    • addActionListener

      public void addActionListener(ActionListener l)
    • setShapeType

      public void setShapeType(int shapeType)