|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The root abstraction of a graphic object taxonomy, specifying the methods common to a lightweight set of graphic objects.
| Method Summary | |
|---|---|
void |
addGraphicListener(GraphicListener listener)
Adds the given listener to this Graphic's list of
listeners. |
Graphic |
cloneGraphic()
Creates a new Graphic of the same type as this object. |
void |
dispose()
Method that can be called when an object is no longer needed. |
void |
fireGraphicEvent(GraphicEvent ge)
Calls the graphic event method of all listeners in this Graphic's list of listeners. |
Object |
getClientProperty(Object key)
Returns the value of the property with the specified key. |
GraphicStyle |
getGraphicStyle()
Returns the GraphicStyle for this Graphic. |
String |
getName()
Returns the name assigned to this Graphic. |
Graphic |
getParent()
Returns the parent of this Graphic. |
boolean |
isPassingEventsToParent()
Returns a boolean indicating whether mouse events on this Graphic will
be passed to the parent Graphic in addition to being passed to any
listeners on this object. |
boolean |
isShowingAnchorHandles()
Returns the boolean flag that indicates whether this object is showing anchor handles. |
boolean |
isShowingEditHandles()
Returns the boolean flag that specifies whether this object is showing its edit handles. |
void |
putClientProperty(Object key,
Object value)
Adds an arbitrary key/value "client property" to this Graphic. |
void |
refresh()
Flags this Graphic object as needing to be redrawn,
due to changes to the internal data of the object which affect the
rendering of the object. |
void |
removeGraphicListener(GraphicListener listener)
Removes the given listener from this Graphic's list of
listeners. |
void |
setName(String name)
Sets the name of this Graphic to the given value. |
void |
setParent(Graphic parent)
Sets the parent of this Graphic. |
void |
setPassingEventsToParent(boolean passToParent)
Sets a boolean indicating whether mouse events on this Graphic should
be passed to the parent Graphic in addition to being passed to any
listeners on this object. |
void |
setShowingAnchorHandles(boolean showingHandles)
Sets a boolean flag indicating whether this object is to show anchor handles. |
void |
setShowingEditHandles(boolean showingHandles)
Sets a boolean flag specifying whether this object is to show
its edit handles. |
| Method Detail |
|---|
void dispose()
Graphic in any
way after its dispose method has been called.
void refresh()
Graphic object as needing to be redrawn,
due to changes to the internal data of the object which affect the
rendering of the object.
Graphic object is redrawn.
Graphic object has changed;
for example, when the underlying Geometry instance
is changed or data in that instance has changed.
void setName(String name)
Graphic to the given value.
name - the new name to assign to this Graphic.String getName()
Graphic.
Graphic.void setParent(Graphic parent)
Graphic.
parent - the parent of this Graphic.
getParent() return type. |
Graphic getParent()
Graphic. This is most likely of type
AggregateGraphic or GraphicCompositeCurve.
Graphic.GraphicStyle getGraphicStyle()
GraphicStyle for this Graphic.
Implementations should return a reference to their internal
GraphicStyle object, so that users may modify this
Graphic's style properties directly through the
style object.
GraphicStyle.Object getClientProperty(Object key)
putClientProperty will return a
non-null value.
null.putClientProperty(java.lang.Object, java.lang.Object)
void putClientProperty(Object key,
Object value)
Graphic.
The get/putClientProperty methods provide access to a small
per-instance hashtable. Callers can use get/putClientProperty
to annotate Graphics that were created by another module.
If value is null this method will remove the property. Changes
to client properties are reported with PropertyChange events.
The name of the property (for the sake of PropertyChange events)
is key.toString().
The clientProperty dictionary is not intended to support large scale
extensions to Graphic nor should be it considered an alternative to
subclassing when designing a new component.
key - the Object containing the key string.value - the Object that is the client data.getClientProperty(java.lang.Object)void setPassingEventsToParent(boolean passToParent)
Graphic should
be passed to the parent Graphic 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.
passToParent - true if events should be passed to the
parent graphic, false if they should not.boolean isPassingEventsToParent()
Graphic will
be passed to the parent Graphic 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.
true if this graphic pass the events to the parent graphic.void setShowingEditHandles(boolean showingHandles)
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.
showingHandles - true if this object show its edit handles.boolean isShowingEditHandles()
true means it is showing its handles.void setShowingAnchorHandles(boolean showingHandles)
boolean isShowingAnchorHandles()
Graphic cloneGraphic()
Graphic of the same type as this object. The resulting
object should be identical in all respects to the original.
Object.clone() instead. |
void addGraphicListener(GraphicListener listener)
Graphic's list of
listeners. Listeners are notified of key, mouse, and change events that
affect this Graphic.
listener - the GraphicListener to add.void removeGraphicListener(GraphicListener listener)
Graphic's list of
listeners.
listener - the GraphicListener to remove.void fireGraphicEvent(GraphicEvent ge)
Graphic's list of listeners. The listeners need to
determine which subclassed event is called and what event-specific
action was taken.
ge - the GraphicEvent to give to the listeners.GraphicListener,
GraphicEvent,
GraphicChangeEvent,
GraphicMouseEvent
|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
Symbols, terms and definitions | Copyright OpenGIS® Consortium |