Package org.gvsig.app.gui.styling
Class PictureLine
java.lang.Object
org.gvsig.app.gui.styling.AbstractTypeSymbolEditor
org.gvsig.app.gui.styling.PictureMarker
org.gvsig.app.gui.styling.PictureLine
- All Implemented Interfaces:
ActionListener,EventListener,TypeSymbolEditor
PictureLine initializes the properties that define a
picture marker symbol and are showed in the tab created by
PictureMarker which is called simple marker.
Moreover, PictureLine has other methods such as getSymbolClass,getName, refreshControls and getLayer.
- Author:
- gvSIG Team
-
Field Summary
Fields inherited from class org.gvsig.app.gui.styling.PictureMarker
colorExpPicker, colorLinePicker, LOGGER, MARKER_IMAGE_DEFAULT_WIDTH, rotationExpPicker, tabs, view, xoffsetExpPicker, yoffsetExpPickerFields inherited from class org.gvsig.app.gui.styling.AbstractTypeSymbolEditor
featureStore, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanManageSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) 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.protected voidInitializes the parameters that define a picturmarker.To do it, a tab is created inside the SymbolEditor panel with default values for the different attributes of the picture marker.voidrefreshControls(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) Invoked when the user selects or adds a new layer.protected voidsetValues(double size, double rotation, double xOffset, double yOffset, URL picture, URL selectedPicture, String sizeExpression, String offsetXExpression, String offsetYExpression, Color lineToOffsetColor, String lineToOffsetColorExpression, String rotationExpression, boolean isDrawLineToOffset) Methods inherited from class org.gvsig.app.gui.styling.PictureMarker
actionPerformed, getColorLine, getEditorTools, getLineToOffsetColor, getLineToOffsetColorExpression, getPictureFile, getPictureFileName, getPictureURL, getRotation, getRotationExpression, getSelectedPictureFile, getSelectedPictureFileName, getSelectedPictureURL, getSize, getSizeExpression, getTabs, getX, getXOffsetExpression, getY, getYOffsetExpression, isSelectedDrawLineToOffset, setColorLine, setFeatureStore, setPicture, setRotation, setSelectedPicture, setSize, setValues, setX, setYMethods inherited from class org.gvsig.app.gui.styling.AbstractTypeSymbolEditor
fireSymbolChangedEvent, getSampleFeature, toString
-
Constructor Details
-
PictureLine
-
-
Method Details
-
initComponents
protected void initComponents()Description copied from class:PictureMarkerInitializes the parameters that define a picturmarker.To do it, a tab is created inside the SymbolEditor panel with default values for the different attributes of the picture marker.- Overrides:
initComponentsin classPictureMarker
-
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- Overrides:
getNamein classPictureMarker- Returns:
- A human-readable text naming this panel
-
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- Overrides:
refreshControlsin classPictureMarker
-
setValues
protected void setValues(double size, double rotation, double xOffset, double yOffset, URL picture, URL selectedPicture, String sizeExpression, String offsetXExpression, String offsetYExpression, Color lineToOffsetColor, String lineToOffsetColorExpression, String rotationExpression, boolean isDrawLineToOffset) - Overrides:
setValuesin classPictureMarker
-
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- Overrides:
getLayerin classPictureMarker- Returns:
- the ISymbol.
-
canManageSymbol
public boolean canManageSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) - Specified by:
canManageSymbolin interfaceTypeSymbolEditor- Overrides:
canManageSymbolin classPictureMarker
-