public class MarkerFill extends AbstractTypeSymbolEditor implements java.awt.event.ActionListener, javax.swing.event.ChangeListener
This functionality is carried out thanks to two tabs (marker fill and MarkerFillProperties) which are included in the panel to edit the properities of a symbol (SymbolEditor) how is explained in AbstractTypeSymbolEditor.
The first tab (marker fill)permits the user to select the marker for the padding and other options such as the color for the fill (btnChooseMarker),to select the ouline (btnOutline)and the distribution (grid or random) of the marker inside the padding (rdGrid,rdRandom).
The second tab is implementes as a MarkerFillProperties class and offers the possibilities to change the separtion and the offset.
MarkerFillProperties,
AbstractTypeSymbolEditorfeatureStore, owner| Constructor and Description |
|---|
MarkerFill(SymbolEditor owner)
constructor method
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.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.
|
java.lang.String |
getName()
Returns the name of the config tabs that will be shown in the selector combo box.
|
javax.swing.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.
|
void |
stateChanged(javax.swing.event.ChangeEvent e) |
fireSymbolChangedEvent, getSampleFeature, setFeatureStore, toStringpublic MarkerFill(SymbolEditor owner)
owner - public void refreshControls(ISymbol layer)
TypeSymbolEditorrefreshControls in interface TypeSymbolEditorpublic java.lang.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 javax.swing.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 actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic ISymbol getLayer()
TypeSymbolEditorgetLayer in interface TypeSymbolEditorpublic EditorTool[] getEditorTools()
TypeSymbolEditorgetEditorTools in interface TypeSymbolEditorpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic boolean canManageSymbol(ISymbol symbol)
canManageSymbol in interface TypeSymbolEditor