|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.StyleContent
net.refractions.udig.project.interceptor.ShowViewInterceptor.ViewStyleContent
public static class ShowViewInterceptor.ViewStyleContent
Persists Query and Filters saved on the style blackboard.
Field Summary |
---|
Fields inherited from class net.refractions.udig.project.StyleContent |
---|
XPID |
Constructor Summary | |
---|---|
ShowViewInterceptor.ViewStyleContent()
|
Method Summary | |
---|---|
java.lang.Object |
createDefaultStyle(IGeoResource resource,
java.awt.Color colour,
IProgressMonitor monitor)
Creates a default Style give a resource and color. |
java.lang.Class<? extends java.lang.Object> |
getStyleClass()
Returns the class of the object which does the actual styling work. |
java.lang.Object |
load(IMemento memento)
Loads a style object from a memento. |
java.lang.Object |
load(java.net.URL url,
IProgressMonitor monitor)
Loads a style object from a URL. |
void |
save(IMemento memento,
java.lang.Object value)
Saves the state of a style object. |
Methods inherited from class net.refractions.udig.project.StyleContent |
---|
getId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShowViewInterceptor.ViewStyleContent()
Method Detail |
---|
public java.lang.Object createDefaultStyle(IGeoResource resource, java.awt.Color colour, IProgressMonitor monitor) throws java.io.IOException
StyleContent
createDefaultStyle
in class StyleContent
resource
- to attempt to create a style for.colour
- color to use while creating style.monitor
- monitor used to show progress of style creation.
java.io.IOException
- if a problem occurs accessing the GeoResource.public java.lang.Class<? extends java.lang.Object> getStyleClass()
StyleContent
getStyleClass
in class StyleContent
public java.lang.Object load(IMemento memento)
StyleContent
(Currently used with XMLMemento to persist StyleEntry, it is hoped that an EMFMemento can be writen).
load
in class StyleContent
memento
- object which contains previously saved object state.
public java.lang.Object load(java.net.URL url, IProgressMonitor monitor) throws java.io.IOException
StyleContent
load
in class StyleContent
url
- the URL pointing to the style's locationmonitor
- Progress monitor to report back to caller, allowed to be null.
java.io.IOException
- if there is an error loading the URLpublic void save(IMemento memento, java.lang.Object value)
StyleContent
(Currently used with XMLMemento to persist StyleEntry, it is hoped that an EMFMemento can be writen).
save
in class StyleContent
memento
- Momento used to store the style object state.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |