public class CharacterMarker extends AbstractTypeSymbolEditor implements ActionListener
This functionality is carried out thanks to two tabs (character marker and mask)which are included in the panel to edit the properities of a symbol (SymbolEditor)how is explained in AbstractTypeSymbolEditor.
The first tab (Character marker)allows the user to change the font (cmbFonts)of the symbol for the character marker, the size of that (cmbFontSize),the angle (numberAngle)if the user wants to show the character with some rotation,the color (jcc) and the offset (txtYOffset,txtXOffset).
The second tab (Mask) modifies attributes of a mask for points such as style,size and symbol (to represent a point in the map).
Mask
,
AbstractTypeSymbolEditor
owner
Constructor and Description |
---|
CharacterMarker(SymbolEditor owner)
contructor method
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
boolean |
canManageSymbol(ISymbol symbol) |
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.
|
Class<? extends ISymbol> |
getSymbolClass() |
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, toString
public CharacterMarker(SymbolEditor owner)
owner
- public 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 TypeSymbolEditor
public 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 TypeSymbolEditor
public void refreshControls(ISymbol layer)
TypeSymbolEditor
refreshControls
in interface TypeSymbolEditor
public ISymbol getLayer()
TypeSymbolEditor
getLayer
in interface TypeSymbolEditor
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public EditorTool[] getEditorTools()
TypeSymbolEditor
getEditorTools
in interface TypeSymbolEditor
public boolean canManageSymbol(ISymbol symbol)
canManageSymbol
in interface TypeSymbolEditor