Class SimpleMarker
- All Implemented Interfaces:
ActionListener,FocusListener,EventListener,TypeSymbolEditor
This functionality is carried out thanks to a tab (simple marker and mask) which are included in the panel to edit the properities of a symbol (SymbolEditor) how is explained in AbstractTypeSymbolEditor.
This tab (Simple Marker)allows the user to change the different attributes which are color (jccColor),text size (txtSize),text offset (txtXOffset and txtXOffset), style of the marker () the width (txtWidth) and the style of the line (cmbStyle) and the color of the outline(jccOutlineColor).
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es
- See Also:
-
Field Summary
Fields inherited from class org.gvsig.app.gui.styling.AbstractTypeSymbolEditor
featureStore, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancanManageSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) voidfocusGained(FocusEvent arg0) voidfocusLost(FocusEvent arg0) Returns the editor tools that are handled by this configuration panel.org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetLayer()Produces and returns the ISymbol according with the user settings.getName()Returns the name of the config tabs that will be shown in the selector combo box.JPanel[]getTabs()Due to the complexity that many symbols settings can reach, the SymbolEditorPanel is designed in a tabbed-based fashion.voidrefreshControls(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) Invoked when the user selects or adds a new layer.Methods inherited from class org.gvsig.app.gui.styling.AbstractTypeSymbolEditor
fireSymbolChangedEvent, getSampleFeature, setFeatureStore, toString
-
Constructor Details
-
SimpleMarker
-
-
Method Details
-
getLayer
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getLayer()Description copied from interface:TypeSymbolEditorProduces and returns the ISymbol according with the user settings.- Specified by:
getLayerin interfaceTypeSymbolEditor- Returns:
- the ISymbol.
-
getName
Description copied from interface:TypeSymbolEditorReturns 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:
getNamein interfaceTypeSymbolEditor- Returns:
- A human-readable text naming this panel
-
getTabs
Description copied from interface:TypeSymbolEditorDue 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:
getTabsin interfaceTypeSymbolEditor- 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:TypeSymbolEditorInvoked 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:
refreshControlsin interfaceTypeSymbolEditor
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
getEditorTools
Description copied from interface:TypeSymbolEditorReturns the editor tools that are handled by this configuration panel.- Specified by:
getEditorToolsin interfaceTypeSymbolEditor- Returns:
- EditorTool
-
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-
canManageSymbol
public boolean canManageSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) - Specified by:
canManageSymbolin interfaceTypeSymbolEditor
-