📄 abstractgraphic.html
字号:
<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#getImplHint(java.lang.String)">getImplHint</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getRenderingHint(java.awt.RenderingHints.Key)">getRenderingHint</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>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)">setRenderingHint</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#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> <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="AbstractGraphic()"><!-- --></A><H3>AbstractGraphic</H3><PRE>protected <B>AbstractGraphic</B>()</PRE><DL><DD>Creates a new graphic. The <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#getZOrderHint()">z-order</A> default to positive infinity (i.e. this graphic is drawn on top of everything else). Subclasses should invokes setters methods in order to define properly this graphic properties.<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="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Returns the locale for this object. If this graphic is contained in a <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas">canvas</A>, then the default implementation returns the canvas locale. Otherwise, this method returns the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html#getDefault()" title="class or interface in java.util">system locale</A>.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLocale()">getLocale</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></DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE><DL><DD>Returns the name assigned to this . If no name were <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#setName(java.lang.String)">explicitly set</A>, then this method returns a default name built from the <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#getZOrderHint()">z order</A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getName</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Sets the name of this to the given value. <p> This method fires a {@value} property change event.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setName</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE>public Graphic <B>getParent</B>()</PRE><DL><DD>Returns the parent of this , or if none. Usually, only <CODE>AggregateGraphic</CODE>s have children.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getParent</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setParent(org.opengis.go.display.primitive.Graphic)"><!-- --></A><H3>setParent</H3><PRE>public void <B>setParent</B>(Graphic parent)</PRE><DL><DD>Sets the parent of this . <p> This method fires a {@value} property change event.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setParent</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setGraphicStyle(org.opengis.go.display.style.GraphicStyle)"><!-- --></A><H3>setGraphicStyle</H3><PRE>public void <B>setGraphicStyle</B>(GraphicStyle style)</PRE><DL><DD>Sets the graphic style for this . s may share style property objects with other s.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setGraphicStyle</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getGraphicStyle()"><!-- --></A><H3>getGraphicStyle</H3><PRE>public GraphicStyle <B>getGraphicStyle</B>()</PRE><DL><DD>Returns the graphic style for this . Implementations should return a reference to their internal object, so that users may modify this 's style properties directly through the style object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getGraphicStyle</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getClientProperty(java.lang.Object)"><!-- --></A><H3>getClientProperty</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>getClientProperty</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> key)</PRE><DL><DD>Returns the value of the property with the specified key. Only properties added with <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#putClientProperty(java.lang.Object, java.lang.Object)"><CODE>putClientProperty</CODE></A> will return a non-null value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getClientProperty</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of this property or null<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#putClientProperty(java.lang.Object, java.lang.Object)"><CODE>putClientProperty(java.lang.Object, java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="putClientProperty(java.lang.Object, java.lang.Object)"><!-- --></A><H3>putClientProperty</H3><PRE>public void <B>putClientProperty</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</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 an arbitrary key/value "client property" to this . The / methods provide access to a small per-instance table. Callers can use / to annotate that were created by another module. <p> If value is null this method will remove the property. Changes to client properties are reported with <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeEvent.html" title="class or interface in java.beans"><CODE>PropertyChangeEvent</CODE></A>s. The name of the property (for the sake of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeEvent.html" title="class or interface in java.beans"><CODE>PropertyChangeEvent</CODE></A>s) is . The dictionary is not intended to support large scale extensions to nor should be it considered an alternative to subclassing when designing a new component.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>putClientProperty</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the Object containing the key string.<DD><CODE>value</CODE> - the Object that is the client data.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#getClientProperty(java.lang.Object)"><CODE>getClientProperty(java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="setPassingEventsToParent(boolean)"><!-- --></A><H3>setPassingEventsToParent</H3><PRE>public void <B>setPassingEventsToParent</B>(boolean passToParent)</PRE><DL><DD>Sets a boolean indicating whether mouse events on this should be passed to the parent in addition to being passed to any listeners on this object. The default is false, indicating that events will not be passed to the parent. If the boolean is true, then the event will be passed to the parent after having been passed to the listeners on this object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setPassingEventsToParent</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>passToParent</CODE> - if events should be passed to the parent graphic, if they should not.</DL></DD></DL><HR><A NAME="isPassingEventsToParent()"><!-- --></A><H3>isPassingEventsToParent</H3><PRE>public boolean <B>isPassingEventsToParent</B>()</PRE><DL><DD>Returns a boolean indicating whether mouse events on this will be passed to the parent in addition to being passed to any listeners on this object. The default is , indicating that events will not be passed to the parent. If the boolean is , then the event will be passed to the parent after having been passed to the listeners on this object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>isPassingEventsToParent</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD> if this graphic pass the events to the parent graphic.</DL></DD></DL><HR><A NAME="setShowingEditHandles(boolean)"><!-- --></A><H3>setShowingEditHandles</H3><PRE>public void <B>setShowingEditHandles</B>(boolean showingHandles)</PRE><DL><DD>Sets a boolean flag specifying whether this object is to show its edit handles. Edit handles are the small boxes that appear on the end of a line segment or on the four corners of a box that a users selects to edit this object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setShowingEditHandles</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>showingHandles</CODE> - if this object show its edit handles.</DL></DD></DL><HR><A NAME="isShowingEditHandles()"><!-- --></A><H3>isShowingEditHandles</H3><PRE>public boolean <B>isShowingEditHandles</B>()</PRE><DL><DD>Returns the boolean flag that specifies whether this object is showing its edit handles.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>isShowingEditHandles</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD> means it is showing its handles.</DL></DD></DL><HR><A NAME="setShowingAnchorHandles(boolean)"><!-- --></A><H3>setShowingAnchorHandles</H3><PRE>public void <B>setShowingAnchorHandles</B>(boolean showingHandles)</PRE><DL><DD>Sets a boolean flag indicating whether this object is to show anchor handles. Anchor handles allow the object to be moved in the display.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setShowingAnchorHandles</CODE> in interface <CODE>Graphic</CODE></DL></DD><DD><DL></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -