📄 defaultgraphicstyle.html
字号:
</DL></DD></DL><HR><A NAME="removeGraphicStyleListener(org.opengis.go.display.style.event.GraphicStyleListener)"><!-- --></A><H3>removeGraphicStyleListener</H3><PRE>public void <B>removeGraphicStyleListener</B>(GraphicStyleListener listener)</PRE><DL><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>removeGraphicStyleListener</CODE> in interface <CODE>GraphicStyle</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="acquireEventLock()"><!-- --></A><H3>acquireEventLock</H3><PRE>protected void <B>acquireEventLock</B>()</PRE><DL><DD>Tells that all subsequent <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeEvent.html" title="class or interface in java.beans">property change events</A> should be grouped into a single graphic style event until <A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#releaseEventLock()"><CODE>releaseEventLock()</CODE></A> is invoked. This method is typically invoked in a block like below: <blockquote><pre> acquireEventLock(); try { // Performs a bunch of changes here. } finally { releaseEventLock(); } </pre></blockquote><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="releaseEventLock()"><!-- --></A><H3>releaseEventLock</H3><PRE>protected void <B>releaseEventLock</B>()</PRE><DL><DD>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>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setPropertiesFrom(org.opengis.go.display.style.GraphicStyle)"><!-- --></A><H3>setPropertiesFrom</H3><PRE>public void <B>setPropertiesFrom</B>(GraphicStyle graphicStyle)</PRE><DL><DD>Sets the properties of this from the properties of the specified . This method does not copy the listeners neither the implementation hints. <p> This method may fires many <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeEvent.html" title="class or interface in java.beans">property change events</A>, one for every property that changed. But it fires at most one graphic style event with the list of all modified properties as an array. <p> Subclasses should implement this method as below: <blockquote><pre> public synchronized void setPropertiesFrom(GraphicStyle graphicStyle) { <A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#acquireEventLock()">acquireEventLock()</A>; try { super.setPropertiesFrom(graphicStyle); if (graphicStyle instanceof MySymbolizer) { final MySymbolizer ms = (MySymbolizer) graphicStyle; setMyProperty(ms.getMyProperty()); // etc... } } finally { <A HREF="../../../../org/geotools/display/style/DefaultGraphicStyle.html#releaseEventLock()">releaseEventLock()</A>; } } </pre></blockquote><P><DD><DL><DT><B>Specified by:</B><DD><CODE>setPropertiesFrom</CODE> in interface <CODE>GraphicStyle</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</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>clone</B>()</PRE><DL><DD>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 <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getImplHint(java.lang.String)">implementation hints</A>, <cite>etc.</cite><P><DD><DL><DT><B>Specified by:</B><DD><CODE>clone</CODE> in interface <CODE>GraphicStyle</CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultGraphicStyle.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../org/geotools/display/style/DefaultLineSymbolizer.html" title="class in org.geotools.display.style"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="DefaultGraphicStyle.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_DisplayObject">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -