Interface ILabelingStrategyPanel
public interface ILabelingStrategyPanel
Interface to be implemented for those panels whose purpose is to
set up labeling strategies.
ILabelingStrategyPanel.java
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es Jun 13, 2008
-
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategyInvoked when de user accepts the settings, the returned value is a always ready-to-work labeling strategy.The panel shown in the layer properties dialog is selected through the class of the labeling strategy.A human-readable localized text to make this strategy easily recognizable among all the available strategies.voidsetModel(org.gvsig.fmap.mapcontext.layers.FLayer layer, org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy str) Sets the model of the panel.
-
Method Details
-
getLabelingStrategy
org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy getLabelingStrategy()Invoked when de user accepts the settings, the returned value is a always ready-to-work labeling strategy.- Returns:
- ILabelingStrategy, a labeling strategy completely set up.
-
setModel
void setModel(org.gvsig.fmap.mapcontext.layers.FLayer layer, org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy str) Sets the model of the panel. As a general contract, after invoke this method, the panel should be filled with all the values needed and be able to be repainted successfully.- Parameters:
layer- , the layer to whom the labeling strategy is associated.str- , the current labeling strategy.
-
getLabelingStrategyName
String getLabelingStrategyName()A human-readable localized text to make this strategy easily recognizable among all the available strategies.- Returns:
-
getLabelingStrategyClass
Class getLabelingStrategyClass()The panel shown in the layer properties dialog is selected through the class of the labeling strategy. This method returns such class.
Note that, as a collateral effect, the panel that sets up a labeling strategy can be substituted programatically by other of your wish if you return the same labeling strategy class than the one to be replaced with your new one. The last panel installed, will be the one to be shown.
- Returns:
- Class, the labeling strategy's Class
-