net.refractions.udig.style.sld
Interface IStyleEditorPageContainer

All Superinterfaces:
IEditorPageContainer
All Known Implementing Classes:
StyleEditorDialog

public interface IStyleEditorPageContainer
extends IEditorPageContainer

Context used to advertise what is available to a StyleEditorPage.

An implementation is responsible for holding on to the Style being edited, StyleLayer that is holding the style blackboard and so on.

Since:
1.1.0

Method Summary
 IAction getApplyAction()
          Action for applying the current changes.
 StyleLayer getSelectedLayer()
          StyleLayer wraps around the origional layer and has a copy of the StyleBlackboard for you to work on.
 StyledLayerDescriptor getSLD()
          Retrieve the root StyleLayerDescriptor for editing.
 Style getStyle()
          Retrieve the Style being worked on.
 void setExitButtonState()
          Used to enabled the apply action, call this when you have a modification that can be writen out.
 void setStyle(Style style)
          Replace the style being worked on, this can be called by a StylePage that is *completely* generating its own thing.
 
Methods inherited from interface net.refractions.udig.style.sld.IEditorPageContainer
updateButtons, updateMessage, updateTitle
 

Method Detail

getSLD

StyledLayerDescriptor getSLD()
Retrieve the root StyleLayerDescriptor for editing.

Returns:

getStyle

Style getStyle()
Retrieve the Style being worked on.

In general a StylePage will modify the style in place.

Returns:
Style being worked on (often a layer will only be using one)

setStyle

void setStyle(Style style)
Replace the style being worked on, this can be called by a StylePage that is *completely* generating its own thing.

Parameters:
style -

getSelectedLayer

StyleLayer getSelectedLayer()
StyleLayer wraps around the origional layer and has a copy of the StyleBlackboard for you to work on.

StyleLayer has apply and revert actions for interacting with the actual Map.

Returns:
StyleLayer for interacting with the actual Map

setExitButtonState

void setExitButtonState()
Used to enabled the apply action, call this when you have a modification that can be writen out.


getApplyAction

IAction getApplyAction()
Action for applying the current changes. Can be used to enable or disable the button. Also to execute the action.

Returns:
apply action