Class AbstractTypeSymbolEditor

java.lang.Object
org.gvsig.app.gui.styling.AbstractTypeSymbolEditor
All Implemented Interfaces:
TypeSymbolEditor
Direct Known Subclasses:
MarkerFill, PictureFill, PictureMarker, SimpleFill, SimpleLine, SimpleMarker, SimpleText

public abstract class AbstractTypeSymbolEditor extends Object implements TypeSymbolEditor

Abstract class that all the Symbol settings GUI's must extend. This is not Component by it self, but a bag of JPanels with the required interface to be operable from the SymbolEditor. The panels provide by this are the tabs of the JTabbedPane of the options area in the SymbolEditor.

The components contained by this panelset are automatically placed in the SymbolEditor's symbol options area. In case other panel of this was already placed, then the old one is replaced by this.

In order to the SymbolEditor owner of this to decide which AbstractTypeSymbolEditorPanel will be placed each symbol editor panel must define the type of the symbol it is able to configure. To do this, AbstractTypeSymbolEditorPanel includes the abstract method getSymbolClass() which will return the Class of the corresponding symbol. The symbol class must define an implementation of ISymbol in general, and one of IMarkerSymbol, ILineSymbol or IFillSymbol in particular, depending of the context of the symbology being edited.

Author:
jaume dominguez faus - jaume.dominguez@iver.es
  • Field Details

    • owner

      protected SymbolEditor owner
    • featureStore

      protected transient org.gvsig.fmap.dal.feature.FeatureStore featureStore
  • Constructor Details

    • AbstractTypeSymbolEditor

      public AbstractTypeSymbolEditor(SymbolEditor owner)
      Creates a new instance of this type symbol editor panel associated to its SymbolEditor parent which will be notified of the changes in order to keep the symbol preview in sync with the user settings.
      Parameters:
      owner - , the SymbolEditor which created this.
  • Method Details

    • toString

      public final String toString()
      This overrided method returns the text shown at the SymbolEditorPanel select combobox.
      Overrides:
      toString in class Object
    • fireSymbolChangedEvent

      protected final void fireSymbolChangedEvent()
    • setFeatureStore

      public void setFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore store)
    • getSampleFeature

      public org.gvsig.fmap.dal.feature.Feature getSampleFeature()