public interface IConsoleLayer extends Renderer2DPainter, PropertiesProvider
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
asElement(java.lang.String rootElement)
Save the configurations of this layer as XML
|
void |
clean()
This layer has been removed or the MapPanel was closed.
|
javax.swing.ImageIcon |
getIcon()
Icon to represent this layer in user interfaces
|
java.lang.String |
getName()
Human-readable name
|
float |
getOpacity()
Retrieve the opacity for this layer - 0 means fully transparent and 1 means opaque.
|
void |
init(ConsoleLayout console)
Initialize this layer by passing a Console instance
|
void |
parseXmlElement(org.dom4j.Element elem)
Load configuration from a partial XML tree
|
void |
setOpacity(float opacity)
Set layer opacity
|
boolean |
userControlsOpacity()
Should the user be able to control the opacity of this layer?
|
paint
getProperties, getPropertiesDialogTitle, getPropertiesErrors, setProperties
void init(ConsoleLayout console)
console
- The Console where this IMapLayer has been added tovoid clean()
boolean userControlsOpacity()
true
for allowing the user to control this layer visibility or
false
if opacity should be controlled only via code.float getOpacity()
void setOpacity(float opacity)
opacity
- The opacity of this layerorg.dom4j.Element asElement(java.lang.String rootElement)
rootElement
- The name of the root XML tag to use when savingvoid parseXmlElement(org.dom4j.Element elem)
xml
- An XML string having as top-level element the tag relative to this IMapLayerjava.lang.String getName()
javax.swing.ImageIcon getIcon()
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.