public class LayerStyle2SLDPlugIn extends AbstractPlugIn
Modifier and Type | Field and Description |
---|---|
static javax.swing.ImageIcon |
ICON |
protected static javax.xml.transform.Transformer |
transformer
The
Transformer object used in the transformation of a
task/project/layer xml to sld. |
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
LayerStyle2SLDPlugIn() |
Modifier and Type | Method and Description |
---|---|
EnableCheck |
createEnableCheck(WorkbenchContext workbenchContext) |
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
javax.swing.Icon |
getIcon() |
java.lang.String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item
|
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.
|
void |
install(PlugInContext context)
Use this method to install the LayerStyle2SLD plugin in the toolbar
|
static java.lang.Double |
toRealWorldScale(double scaleFactor,
double jumpScale) |
static java.lang.String |
transformContext(java.io.InputStream layerXML,
java.util.Map<java.lang.String,java.lang.String> parMap) |
static java.lang.String |
transformContext(java.io.Reader layerXML,
java.util.Map<java.lang.String,java.lang.String> parMap) |
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static final javax.swing.ImageIcon ICON
protected static javax.xml.transform.Transformer transformer
Transformer
object used in the transformation of a
task/project/layer xml to sld.public java.lang.String getName()
PlugIn
getName
in interface PlugIn
getName
in class AbstractPlugIn
public void install(PlugInContext context) throws java.lang.Exception
context
- java.lang.Exception
public void initialize(PlugInContext context) throws java.lang.Exception
PlugIn
initialize
in interface PlugIn
initialize
in class AbstractPlugIn
java.lang.Exception
public boolean execute(PlugInContext context) throws java.lang.Exception
PlugIn
false
to prevent the run method
from being called.execute
in interface PlugIn
execute
in class AbstractPlugIn
java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
public javax.swing.Icon getIcon()
public static java.lang.String transformContext(java.io.InputStream layerXML, java.util.Map<java.lang.String,java.lang.String> parMap) throws javax.xml.transform.TransformerException, java.io.UnsupportedEncodingException
layerXML
- parMap
- javax.xml.transform.TransformerException
java.io.UnsupportedEncodingException
public static java.lang.String transformContext(java.io.Reader layerXML, java.util.Map<java.lang.String,java.lang.String> parMap) throws javax.xml.transform.TransformerException
layerXML
- parMap
- javax.xml.transform.TransformerException
public EnableCheck createEnableCheck(WorkbenchContext workbenchContext)
workbenchContext
- public static final java.lang.Double toRealWorldScale(double scaleFactor, double jumpScale)
scaleFactor
- jumpScale
-