Class PictureFill

All Implemented Interfaces:
ActionListener, EventListener, TypeSymbolEditor

public class PictureFill extends AbstractTypeSymbolEditor implements ActionListener
PictureFill allows to store and modify the properties that fills a polygon with a padding and an outline

This functionality is carried out thanks to two tabs (picture fill and MarkerFillProperties) which are included in the panel to edit the properities of a symbol (SymbolEditor) how is explained in AbstractTypeSymbolEditor.

The first tab (picture fill)permits the user to select the picture for the padding and differentes options to modify it such as the angle(incrAngle) and the scale (incrScaleX,incrScaleY). Also, there is an option to select a color for the fill (jccFillColor).

The second tab is implementes as a MarkerFillProperties class and offers the possibilities to change the separtion and the offset.

Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • PictureFill

      public PictureFill(SymbolEditor owner)
      Constructor method
      Parameters:
      owner -
  • Method Details

    • getEditorTools

      public EditorTool[] getEditorTools()
      Description copied from interface: TypeSymbolEditor
      Returns the editor tools that are handled by this configuration panel.
      Specified by:
      getEditorTools in interface TypeSymbolEditor
      Returns:
      EditorTool
    • getLayer

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getLayer()
      Description copied from interface: TypeSymbolEditor
      Produces and returns the ISymbol according with the user settings.
      Specified by:
      getLayer in interface TypeSymbolEditor
      Returns:
      the ISymbol.
    • getName

      public String getName()
      Description copied from interface: TypeSymbolEditor

      Returns the name of the config tabs that will be shown in the selector combo box. This is typically a human-readable (and also translatable) name for the symbol that this TypeEditorPanel deals with, but maybe you prefer to use any other one.

      The order of the entries in the combo is alphabetically-based. So you can force a position by defining a name that suits your needs.

      Specified by:
      getName in interface TypeSymbolEditor
      Returns:
      A human-readable text naming this panel
    • getTabs

      public JPanel[] getTabs()
      Description copied from interface: TypeSymbolEditor

      Due to the complexity that many symbols settings can reach, the SymbolEditorPanel is designed in a tabbed-based fashion. So, you can use as many of pages you want to put your components. This pages are regular JPanels that will be automatically added to the SymbolEditor dialog.

      In case you need only one page, just return a JPanel array with a length of 1.

      Specified by:
      getTabs in interface TypeSymbolEditor
      Returns:
      An array of JPanel containing the setting's interface.
    • refreshControls

      public void refreshControls(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer)
      Description copied from interface: TypeSymbolEditor
      Invoked when the user selects or adds a new layer. This method fills up the components on the right according on the layer properties
      Specified by:
      refreshControls in interface TypeSymbolEditor
    • actionPerformed

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

      public boolean canManageSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Specified by:
      canManageSymbol in interface TypeSymbolEditor