/**************************************************************************************************
**
** $Id: GraphicStyle.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/go/display/style/GraphicStyle.java $
**
** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.go.display.style;
import org.opengis.go.display.style.event.GraphicStyleListener;
import org.opengis.util.Cloneable;
/**
* Serves as the base interface for the collection of drawing attributes that are
* applied to a {@link org.opengis.go.display.primitive.Graphic}. Subclasses provide
* attributes for specifying SLD-based line symbolizer, polygon symbolizer, point
* symbolizer, text symbolizer. Attributes common to all types of geometry,
* related to viewability, editability, and highlighting, are contained in
* Graphic.
*
* @version $Revision: 658 $, $Date: 2006-02-23 12:09:34 +1100 (jeu., 23 févr. 2006) $
* @author OpenGIS® consortium
*/
public interface GraphicStyle extends Cloneable {
/**
* Registers the given object as a listener to receive events when the
* properties of this style have changed.
*/
public void addGraphicStyleListener(GraphicStyleListener listener);
/**
* For a listener that was previously added using the
* addGraphicStyleListener method, this method de-registers
* it so that it will no longer receive events when the properties of this
* style have changed.
*/
public void removeGraphicStyleListener(GraphicStyleListener listener);
/**
* Returns the given implementation-specific hint for the given name.
*
* @param hintName The hint key.
* @return the hint object associated with the hint name.
*/
public Object getImplHint(String hintName);
/**
* Sets the given implementation-specific hint for the given name.
*
* @param hintname The hint key.
* @param hint The hint.
*/
public void setImplHint(String hintname, Object hint);
/**
* Sets the properties of this GraphicStyle from the
* properties of the specified GraphicStyle. May throw an exception
* if the given object is not the same type as this one.
*
* @param style the GraphicStyle used to set this
* GraphicStyle properties.
*/
public void setPropertiesFrom(GraphicStyle style);
/**
* Method inherited from the Cloneable interface, included here
* for public access.
*
* @return Returns a shallow copy of this object. This means that all of
* the subordinate objects referenced by this object will also be
* referenced by the result. These objects include the values for
* implHints, etc.
*/
public Object clone();
}
Ads help maintain this website.