|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.core.Wrapper
com.davisor.graphics.IndirectAnnotatedShape
com.davisor.graphics.IndirectAnnotatedSerializableShape
IndirectAnnotatedSerializableShape implements a simple
wrapper that assosiates annotation attribute
information to a serializable Shape. Shape
serialization is carried out with BetterPath class
instances that are used to replace other, unserializable shapes as
neccessary.
makeSerializable(java.awt.Shape),
BetterPath,
Serialized Form| Field Summary |
| Fields inherited from class com.davisor.graphics.IndirectAnnotatedShape |
M_channelIndex, M_contextIndex, M_elementIndex, M_id, M_properties |
| Fields inherited from class com.davisor.core.Wrapper |
M_object |
| Constructor Summary | |
IndirectAnnotatedSerializableShape(IndirectAnnotatedSerializableShape iass)
Deep copy constructor. |
|
IndirectAnnotatedSerializableShape(IndirectAnnotatedShape ias)
Creates a serializable version of an indirect annotated shape. |
|
IndirectAnnotatedSerializableShape(java.awt.Shape shape,
com.davisor.core.Annotated annotation)
Creates a new indirect annotated serialized shape. |
|
IndirectAnnotatedSerializableShape(java.awt.Shape shape,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
Creates a new indirect annotated serializable shape. |
|
IndirectAnnotatedSerializableShape(java.awt.Shape shape,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex,
java.lang.String id)
Deprecated. explicit identity strings are obsolete |
|
| Method Summary | |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
static java.awt.Shape |
makeSerializable(java.awt.Shape shape)
Makes a shape serializable. |
| Methods inherited from class com.davisor.graphics.IndirectAnnotatedShape |
contains, contains, contains, contains, equals, getAddress, getBounds, getBounds2D, getChannelIndex, getContextIndex, getDescription, getElementIndex, getID, getPathIterator, getPathIterator, getProperties, getProperty, getShape, getTarget, hashCode, intersects, intersects, toString |
| Methods inherited from class com.davisor.core.Wrapper |
getObject, isNull |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.davisor.core.Annotated |
getAddress, getChannelIndex, getContextIndex, getDescription, getElementIndex, getID, getProperties, getProperty, getTarget |
| Methods inherited from interface java.awt.Shape |
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Constructor Detail |
public IndirectAnnotatedSerializableShape(IndirectAnnotatedSerializableShape iass)
iass - indirect annotated serializable shape to be copieddup(),
Dupablepublic IndirectAnnotatedSerializableShape(IndirectAnnotatedShape ias)
ias - indirect annotated shape to be copied
public IndirectAnnotatedSerializableShape(java.awt.Shape shape,
com.davisor.core.Annotated annotation)
shape - shape to be annotatedannotation - annotation information the shape is to be annotated withmakeSerializable(java.awt.Shape)
public IndirectAnnotatedSerializableShape(java.awt.Shape shape,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
shape - shape to be annotatedproperties - annotation attributes (may be null)elementIndex - annotation element indexchannelIndex - annotation channel indexcontextIndex - annotation context indexmakeSerializable(java.awt.Shape)
public IndirectAnnotatedSerializableShape(java.awt.Shape shape,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex,
java.lang.String id)
shape - shape to be annotatedproperties - annotation attributes (may be null)elementIndex - annotation element indexchannelIndex - annotation channel indexcontextIndex - annotation context indexid - shape identity (may be null)makeSerializable(java.awt.Shape)| Method Detail |
public com.davisor.core.Dupable dup()
throws com.davisor.core.DupNotSupportedError
dup in interface com.davisor.core.Dupabledup in class IndirectAnnotatedShapecom.davisor.core.DupNotSupportedError - if the object can not be deep-copied.public static java.awt.Shape makeSerializable(java.awt.Shape shape)
null, null is returned. If the shape is
serializable, it is returned unmodified. Otherwise a serializable
BetterPath instance instance is created from given shape
and returned.
shape - shape to be ensured to be serializableBetterPath
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||