📄 defaultgraphicstyle.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#addGraphicStyleListener(org.opengis.go.display.style.event.GraphicStyleListener)">addGraphicStyleListener</A></B>(GraphicStyleListener listener)</CODE><BR> Registers the given object as a listener to receive events when the properties of this style have changed. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#clone()">clone</A></B>()</CODE><BR> Returns a shallow copy of this object. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#getRenderingHint(java.awt.RenderingHints.Key)">getRenderingHint</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> key)</CODE><BR> Returns a rendering hint. The default implementation always returns . The <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas"><CODE>AbstractCanvas</CODE></A> and <CODE>org.geotools.display.style.GraphicStyle2D</CODE> subclasses override this method in order to performs real work.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#releaseEventLock()">releaseEventLock</A></B>()</CODE><BR> Fires a single graphic style event for all changes that occured since the call to <A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#acquireEventLock()"><CODE>acquireEventLock()</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#removeGraphicStyleListener(org.opengis.go.display.style.event.GraphicStyleListener)">removeGraphicStyleListener</A></B>(GraphicStyleListener listener)</CODE><BR> For a listener that was previously added using the <A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#addGraphicStyleListener(org.opengis.go.display.style.event.GraphicStyleListener)"><CODE>addGraphicStyleListener</CODE></A> method, de-registers it so that it will no longer receive events when the properties of this style have changed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#setPropertiesFrom(org.opengis.go.display.style.GraphicStyle)">setPropertiesFrom</A></B>(GraphicStyle graphicStyle)</CODE><BR> Sets the properties of this from the properties of the specified . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)">setRenderingHint</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> key, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value)</CODE><BR> Adds a rendering hint. The default implementation ignore the hint value and does nothing. The <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas"><CODE>AbstractCanvas</CODE></A> and <CODE>org.geotools.display.style.GraphicStyle2D</CODE> subclasses override this method in order to performs real work.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_DisplayObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html" title="class in org.geotools.display.canvas">DisplayObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#clearCache()">clearCache</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#dispose()">dispose</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getImplHint(java.lang.String)">getImplHint</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLocale()">getLocale</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLogger()">getLogger</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#handleException(java.lang.String, java.lang.String, java.lang.Exception)">handleException</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#setImplHint(java.lang.String, java.lang.Object)">setImplHint</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_GraphicStyle"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface GraphicStyle</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getImplHint, setImplHint</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DefaultGraphicStyle()"><!-- --></A><H3>DefaultGraphicStyle</H3><PRE>public <B>DefaultGraphicStyle</B>()</PRE><DL><DD>Creates a default instance of graphic style.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getRenderingHint(java.awt.RenderingHints.Key)"><!-- --></A><H3>getRenderingHint</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getRenderingHint</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> key)</PRE><DL><DD>Returns a rendering hint. The default implementation always returns . The <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas"><CODE>AbstractCanvas</CODE></A> and <CODE>org.geotools.display.style.GraphicStyle2D</CODE> subclasses override this method in order to performs real work.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getRenderingHint(java.awt.RenderingHints.Key)">getRenderingHint</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html" title="class in org.geotools.display.canvas">DisplayObject</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - The hint key.<DT><B>Returns:</B><DD>The hint value for the specified key, or if none.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getImplHint(java.lang.String)"><CODE>DisplayObject.getImplHint(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)"><!-- --></A><H3>setRenderingHint</H3><PRE>public void <B>setRenderingHint</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> key, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value)</PRE><DL><DD>Adds a rendering hint. The default implementation ignore the hint value and does nothing. The <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas"><CODE>AbstractCanvas</CODE></A> and <CODE>org.geotools.display.style.GraphicStyle2D</CODE> subclasses override this method in order to performs real work.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)">setRenderingHint</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html" title="class in org.geotools.display.canvas">DisplayObject</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - The hint key.<DD><CODE>value</CODE> - The hint value. A value remove the hint.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#setImplHint(java.lang.String, java.lang.Object)"><CODE>DisplayObject.setImplHint(java.lang.String, java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="addGraphicStyleListener(org.opengis.go.display.style.event.GraphicStyleListener)"><!-- --></A><H3>addGraphicStyleListener</H3><PRE>public void <B>addGraphicStyleListener</B>(GraphicStyleListener listener)</PRE><DL><DD>Registers the given object as a listener to receive events when the properties of this style have changed. A GO-1 graphic style listener is similar to a Java <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">property change listener</A>, except for the following differences: <ul> <li><p>Property change listeners can be <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">registered for a single property</A>, while graphic style listeners are always registered for all properties.</p></li> <li><p>A <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeEvent.html" title="class or interface in java.beans">property change event</A> represents a change in a single property, while a graphic style event can represents changes in many properties. See <A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#setPropertiesFrom(org.opengis.go.display.style.GraphicStyle)"><CODE>setPropertiesFrom(org.opengis.go.display.style.GraphicStyle)</CODE></A> for an example.</p></li> </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE>addGraphicStyleListener</CODE> in interface <CODE>GraphicStyle</CODE></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -