Class SymbolEditor

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.gvsig.andami.ui.mdiManager.IWindow

public class SymbolEditor extends JPanel implements org.gvsig.andami.ui.mdiManager.IWindow
Creates the panel that is used to control the properties of a symbol in order to modify or check them and to create a new one.
Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • SymbolEditor

      public SymbolEditor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol, org.gvsig.fmap.geom.type.GeometryType geometryType)
    • SymbolEditor

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

    • getWindowInfo

      public org.gvsig.andami.ui.mdiManager.WindowInfo getWindowInfo()
      Specified by:
      getWindowInfo in interface org.gvsig.andami.ui.mdiManager.IWindow
    • getSymbol

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

      public int getUnit()
      Returns the option selected in the reference unit Jcombobox
    • getReferenceSystem

      public int getReferenceSystem()
    • setLayerToSymbol

      protected void setLayerToSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer)
      Sets a layer to a symbol in order to create a final symbol composed by different layers.
      Parameters:
      layer -
    • refresh

      public void refresh()
    • getShapeType

      public int getShapeType()

      Returns the type of the symbol that this panels is created for.

      Possible values returned by this method are

      1. Geometry.TYPES.POINT , for maker symbols
      2. Geometry.TYPES.SURFACE , for fill symbols
      3. Geometry.TYPES.CURVE , for line symbols (not yet implemented)
      4. Geometry.TYPES.TEXT , for text symbols (not yet implemented)
      5. maybe some other in the future

      Returns:
    • getNewLayer

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getNewLayer()
      Obtains a new layer
      Returns:
      sym ISymbol
    • setOptionsPageFor

      public void setOptionsPageFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
    • getUnitsReferenceSystem

      public int getUnitsReferenceSystem()
      Obtains the units to be used for the reference system.
    • addSymbolEditorPanel

      public static void addSymbolEditorPanel(Class<? extends TypeSymbolEditor> symbolEditor, int shapeType)
    • getWindowProfile

      public Object getWindowProfile()
      Specified by:
      getWindowProfile in interface org.gvsig.andami.ui.mdiManager.IWindow
    • setFeatureStore

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

      public org.apache.commons.lang3.mutable.MutableObject<org.gvsig.fmap.dal.feature.Feature> getSampleFeature()