| java.lang.Object net.refractions.udig.project.StyleContent
All known Subclasses: net.refractions.udig.project.internal.render.SelectionStyleContent, net.refractions.udig.mapgraphic.scalebar.LocationStyleContent, net.refractions.udig.style.sld.SLDContent, net.refractions.udig.printing.ui.LocationStyleContent, net.refractions.udig.mapgraphic.grid.GridStyleContent, net.refractions.udig.legend.ui.LegendStyleContent,
StyleContent | abstract public class StyleContent (Code) | | TODO Purpose of net.refractions.udig.project
author: Jesse since: 1.0.0 |
Constructor Summary | |
protected | StyleContent(String id) Construct with ID suplied by subclass. |
Method Summary | |
abstract public Object | createDefaultStyle(IGeoResource resource, Color colour, IProgressMonitor monitor) Creates a default Style give a resource and color.
Parameters: resource - to attempt to create a style for. Parameters: colour - color to use while creating style. Parameters: monitor - monitor used to show progress of style creation. | public String | getId() Unique identifier of the style. | abstract public Class | getStyleClass() Returns the class of the object which does the actual styling work. | abstract public Object | load(IMemento memento) Loads a style object from a memento.
(Currently used with XMLMemento to persist StyleEntry, it is hoped that an EMFMemento can be
writen).
Parameters: memento - object which contains previously saved object state. | abstract public Object | load(URL url, IProgressMonitor monitor) Loads a style object from a URL. | abstract public void | save(IMemento memento, Object value) Saves the state of a style object. |
StyleContent | protected StyleContent(String id)(Code) | | Construct with ID suplied by subclass. This id must be the same as the id declared by the extension
point.
Parameters: id - |
createDefaultStyle | abstract public Object createDefaultStyle(IGeoResource resource, Color colour, IProgressMonitor monitor) throws IOException(Code) | | Creates a default Style give a resource and color.
Parameters: resource - to attempt to create a style for. Parameters: colour - color to use while creating style. Parameters: monitor - monitor used to show progress of style creation. a "default" style or null if the style does not apply to the resource throws: IOException - if a problem occurs accessing the GeoResource. |
getId | public String getId()(Code) | | Unique identifier of the style. This id must be the same as the id declared by the extension
point.
This id is also used by Renderer and StyleConfigurator, often implementation will have a
static final String ID defined for programmers.
The style id which identifies the style. |
getStyleClass | abstract public Class getStyleClass()(Code) | | Returns the class of the object which does the actual styling work.
the class of the style object. |
load | abstract public Object load(IMemento memento)(Code) | | Loads a style object from a memento.
(Currently used with XMLMemento to persist StyleEntry, it is hoped that an EMFMemento can be
writen).
Parameters: memento - object which contains previously saved object state. Loaded object and state. |
load | abstract public Object load(URL url, IProgressMonitor monitor) throws IOException(Code) | | Loads a style object from a URL. This method is blocking.
Parameters: url - the URL pointing to the style's location Parameters: monitor - Progress monitor to report back to caller, allowed to be null. a load style object, or null if it could not be loaded throws: IOException - if there is an error loading the URL |
save | abstract public void save(IMemento memento, Object value)(Code) | | Saves the state of a style object.
(Currently used with XMLMemento to persist StyleEntry, it is hoped that an EMFMemento can be
writen).
Parameters: style - the style object to persisit. Parameters: memento - Momento used to store the style object state. |
|
|