Class ArrowDecorator

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.gui.beans.DefaultBean
org.gvsig.app.gui.styling.ArrowDecorator
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ArrowDecorator extends org.gvsig.gui.beans.DefaultBean implements ActionListener
Implements a tab to modify attributes of an arrow decorator (size, arrow sharpnss, symbol, number of symbols to draw in the same line and options for flip and rotate the arrow)which allows the user to insert a symbol in the line (for example an arrow to specify its orientation)and to modify it.

This tab is used several times in different places in our applicattion .For this reason, in order to avoid the repetition of code, this class has been created (instead of treat it like a simple tab). With this solution, the user only has to refer it to use it (and do not need to create a tab and fill it again and so on).

See Also:
  • Constructor Details

    • ArrowDecorator

      public ArrowDecorator()
  • Method Details

    • setArrowDecoratorStyle

      public void setArrowDecoratorStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IArrowDecoratorStyle ads)
      Defines the attributes that appear in the arrow decorator tab and will determine the arrow decorator style.If this style has not been created previosly, it will be done.
      Parameters:
      ads -
    • getArrowDecoratorStyle

      public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IArrowDecoratorStyle getArrowDecoratorStyle()
      Obtains the values of the attributes of an arrow decorator.This attributes will be different depending on the type of the symbol that the user had selected (because if for example the arrow is changed into a square the sharpness won't necessary and so on)
      Returns:
    • actionPerformed

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