public class SimpleMarker extends AbstractTypeSymbolEditor implements ActionListener, FocusListener
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).
Mask,
AbstractTypeSymbolEditorowner| Constructor and Description |
|---|
SimpleMarker(SymbolEditor owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
boolean |
canManageSymbol(ISymbol symbol) |
void |
focusGained(FocusEvent arg0) |
void |
focusLost(FocusEvent arg0) |
EditorTool[] |
getEditorTools()
Returns the editor tools that are handled by this configuration panel.
|
ISymbol |
getLayer()
Produces and returns the ISymbol according with the user settings.
|
String |
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.
|
void |
refreshControls(ISymbol layer)
Invoked when the user selects or adds a new layer.
|
fireSymbolChangedEvent, toStringpublic SimpleMarker(SymbolEditor owner)
public ISymbol getLayer()
TypeSymbolEditorgetLayer in interface TypeSymbolEditorpublic String getName()
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.
getName in interface TypeSymbolEditorpublic JPanel[] getTabs()
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.
getTabs in interface TypeSymbolEditorpublic void refreshControls(ISymbol layer)
TypeSymbolEditorrefreshControls in interface TypeSymbolEditorpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic EditorTool[] getEditorTools()
TypeSymbolEditorgetEditorTools in interface TypeSymbolEditorpublic void focusGained(FocusEvent arg0)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent arg0)
focusLost in interface FocusListenerpublic boolean canManageSymbol(ISymbol symbol)
canManageSymbol in interface TypeSymbolEditor