org.geotools.gui.swing.sldeditor.style
Interface StyleEditor

All Known Implementing Classes:
FullStyleEditor, SingleRuleEditor, StyleEditorChooser

public interface StyleEditor

Interface implemented by components that can create and edit a style. It is also required that an object implementing the StyleEditor interface has a no argument public constructor (the so called "default constructor")

Author:
wolf

Method Summary
 boolean canEdit(Style s)
          Returns true if this style editor is able to completely and properly edit the passed style (for example, a single rule editor cannot edit a style with multiple FeatureTypeStyles or multiple rules)
 Style getStyle()
          Returns the style edited thru the style editor
 void setStyle(Style s)
          Sets the style to be edited.
 

Method Detail

getStyle

public Style getStyle()
Returns the style edited thru the style editor

Returns:

setStyle

public void setStyle(Style s)
Sets the style to be edited. The style won't be cloned, every change occurred in the editor will be reflected in the same object when the getStyle() method will be called. If canEdit(s) returns false, an attempt to use anyway this style will be made, but the style returned by getStyle() may contain only part of the original information, or none at all

Parameters:
s -

canEdit

public boolean canEdit(Style s)
Returns true if this style editor is able to completely and properly edit the passed style (for example, a single rule editor cannot edit a style with multiple FeatureTypeStyles or multiple rules)

Parameters:
s -
Returns:


Copyright © GeoTools. All Rights Reserved.