Class PictureLine

All Implemented Interfaces:
ActionListener, EventListener, TypeSymbolEditor

public class PictureLine extends PictureMarker
PictureLine initializes the properties that define a picture marker symbol and are showed in the tab created by PictureMarker which is called simple marker.

Moreover, PictureLine has other methods such as getSymbolClass,getName, refreshControls and getLayer.

Author:
gvSIG Team
  • Constructor Details

  • Method Details

    • initComponents

      protected void initComponents()
      Description copied from class: PictureMarker
      Initializes the parameters that define a picturmarker.To do it, a tab is created inside the SymbolEditor panel with default values for the different attributes of the picture marker.
      Overrides:
      initComponents in class PictureMarker
    • 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
      Overrides:
      getName in class PictureMarker
      Returns:
      A human-readable text naming this panel
    • 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
      Overrides:
      refreshControls in class PictureMarker
    • setValues

      protected void setValues(double size, double rotation, double xOffset, double yOffset, URL picture, URL selectedPicture, String sizeExpression, String offsetXExpression, String offsetYExpression, Color lineToOffsetColor, String lineToOffsetColorExpression, String rotationExpression, boolean isDrawLineToOffset)
      Overrides:
      setValues in class PictureMarker
    • 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
      Overrides:
      getLayer in class PictureMarker
      Returns:
      the ISymbol.
    • canManageSymbol

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