|
|||||||||||
| 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
IndirectAnnotatedShape implements a simple wrapper
that associates annotation information to a Shape.
getProperties(),
Serialized Form| Field Summary | |
protected int |
M_channelIndex
Annotation channel index assosiated with the wrapped paint. |
protected short |
M_contextIndex
Annotation context index assosiated with the wrapped paint. |
protected long |
M_elementIndex
Annotation element index assosiated with the wrapped paint. |
protected java.lang.String |
M_id
Annotation description assosiated with the wrapped paint. |
protected java.util.Properties |
M_properties
Annotation attributes associated with the wrapped paint. |
| Fields inherited from class com.davisor.core.Wrapper |
M_object |
| Constructor Summary | |
IndirectAnnotatedShape(IndirectAnnotatedShape ias)
Deep copy constructor. |
|
IndirectAnnotatedShape(java.awt.Shape shape,
com.davisor.core.Annotated annotation)
Creates a new annotated shape. |
|
IndirectAnnotatedShape(java.awt.Shape shape,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
Creates a new annotated shape. |
|
IndirectAnnotatedShape(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 | |
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double w,
double h)
|
boolean |
contains(java.awt.geom.Point2D p)
|
boolean |
contains(java.awt.geom.Rectangle2D r)
|
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
boolean |
equals(java.lang.Object o)
Tests if this object is equal with another. |
java.lang.String |
getAddress()
Deprecated. Use getProperty(java.lang.String) instead (with arg "href") |
java.awt.Rectangle |
getBounds()
|
java.awt.geom.Rectangle2D |
getBounds2D()
|
int |
getChannelIndex()
Returns the channel index of this shape. |
short |
getContextIndex()
Returns the context index of this shape. |
java.lang.String |
getDescription()
Deprecated. Use getProperty(java.lang.String) instead (with arg "alt") |
long |
getElementIndex()
Returns the element index of this shape. |
java.lang.String |
getID()
Returns the identity of this shape. |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
|
java.util.Properties |
getProperties()
Returns annotation attributes as property set. |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of the asked property or null |
java.awt.Shape |
getShape()
Gets a reference to underlying shape object. |
java.lang.String |
getTarget()
Deprecated. Use getProperty(java.lang.String) instead (with arg "target") |
int |
hashCode()
Computes hash code for this object. |
boolean |
intersects(double x,
double y,
double w,
double h)
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
|
java.lang.String |
toString()
Gets the string representation of this object. |
| 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 |
| Field Detail |
protected int M_channelIndex
protected short M_contextIndex
protected long M_elementIndex
protected java.lang.String M_id
protected java.util.Properties M_properties
| Constructor Detail |
public IndirectAnnotatedShape(IndirectAnnotatedShape ias)
ias - indirect annotated shape to be copieddup(),
Dupable
public IndirectAnnotatedShape(java.awt.Shape shape,
com.davisor.core.Annotated annotation)
shape - shape to be annotatedannotation - annotation information the shape is to be annotated with
public IndirectAnnotatedShape(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 index
public IndirectAnnotatedShape(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 - shapeidentity (may be null)| Method Detail |
public java.lang.String getAddress()
getProperty(java.lang.String) instead (with arg "href")
getAddress in interface com.davisor.core.Annotatedpublic java.lang.String getDescription()
getProperty(java.lang.String) instead (with arg "alt")
getDescription in interface com.davisor.core.Annotatedpublic int getChannelIndex()
getChannelIndex in interface com.davisor.core.Annotatedpublic short getContextIndex()
getContextIndex in interface com.davisor.core.Annotatedpublic long getElementIndex()
getElementIndex in interface com.davisor.core.Annotatedpublic java.lang.String getID()
getID in interface com.davisor.core.Annotatedpublic java.util.Properties getProperties()
getProperties in interface com.davisor.core.Annotatedpublic java.lang.String getProperty(java.lang.String name)
null
getProperty in interface com.davisor.core.Annotatedpublic java.lang.String getTarget()
getProperty(java.lang.String) instead (with arg "target")
getTarget in interface com.davisor.core.Annotated
public com.davisor.core.Dupable dup()
throws com.davisor.core.DupNotSupportedError
dup in interface com.davisor.core.Dupablecom.davisor.core.DupNotSupportedError - if the object can not be deep-copied.public boolean equals(java.lang.Object o)
Compare.equals(Object,Object)public int hashCode()
Compare.hashCode(Object)public java.lang.String toString()
public java.awt.Shape getShape()
Wrapper.getObject()
public boolean contains(double x,
double y)
contains in interface java.awt.Shape
public boolean contains(double x,
double y,
double w,
double h)
contains in interface java.awt.Shapepublic boolean contains(java.awt.geom.Point2D p)
contains in interface java.awt.Shapepublic boolean contains(java.awt.geom.Rectangle2D r)
contains in interface java.awt.Shapepublic java.awt.Rectangle getBounds()
getBounds in interface java.awt.Shapepublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface java.awt.Shapepublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
getPathIterator in interface java.awt.Shape
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
getPathIterator in interface java.awt.Shape
public boolean intersects(double x,
double y,
double w,
double h)
intersects in interface java.awt.Shapepublic boolean intersects(java.awt.geom.Rectangle2D r)
intersects in interface java.awt.Shape
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||