|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.IndirectAnnotatedPaint
IndirectAnnotatedPaint assosiates annotation to a
Paint.
| 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.awt.Paint |
M_paint
Underlying paint. |
protected java.util.Properties |
M_properties
Annotation attributes associated with the wrapped paint. |
| Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
IndirectAnnotatedPaint(IndirectAnnotatedPaint iap)
Shallow copy constructor. |
|
IndirectAnnotatedPaint(java.awt.Paint paint,
com.davisor.core.Annotated annotation)
Creates a new annotated paint. |
|
IndirectAnnotatedPaint(java.awt.Paint paint,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
Constructs an annotated paint from a paint and annotation string. |
|
IndirectAnnotatedPaint(java.awt.Paint paint,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex,
java.lang.String id)
Deprecated. explicit identity strings are obsolete |
|
| Method Summary | |
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
|
boolean |
equals(java.lang.Object o)
Tests if given object is equal to this. |
java.lang.String |
getAddress()
Deprecated. Use getProperty(java.lang.String) instead (with arg "href") |
int |
getChannelIndex()
Returns the channel index of this paint. |
short |
getContextIndex()
Returns the context index of this paint. |
java.lang.String |
getDescription()
Deprecated. Use getProperty(java.lang.String) instead (with arg "alt") |
long |
getElementIndex()
Returns the element index of this paint. |
java.lang.String |
getID()
Returns the identity of this paint. |
java.awt.Paint |
getPaint()
Returns the actual Paint |
java.util.Properties |
getProperties()
Returns the annotation attributes. |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of the asked annotation attribute or null. |
java.util.Set |
getPropertyNames()
Returns the property names as a java.util.Set. |
java.lang.String |
getTarget()
Deprecated. Use getProperty(java.lang.String) instead (with arg "target") |
int |
getTransparency()
Returns the type of this Transparency. |
int |
hashCode()
Computes this object hash code. |
java.lang.String |
toString()
Gets the string representation of this object. |
| 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.awt.Paint M_paint
protected java.util.Properties M_properties
| Constructor Detail |
public IndirectAnnotatedPaint(IndirectAnnotatedPaint iap)
iap - source data
public IndirectAnnotatedPaint(java.awt.Paint paint,
com.davisor.core.Annotated annotation)
paint - paint to be annotatedannotation - annotation information the paint is to be annotated with
public IndirectAnnotatedPaint(java.awt.Paint paint,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex)
paint - paint to be annotatedproperties - annotation attributes (may be null)elementIndex - annotation element indexchannelIndex - annotation channel indexcontextIndex - annotation context index
public IndirectAnnotatedPaint(java.awt.Paint paint,
java.util.Properties properties,
long elementIndex,
int channelIndex,
short contextIndex,
java.lang.String id)
paint - paint to be annotatedproperties - annotation attributes (may be null)elementIndex - annotation element indexchannelIndex - annotation channel indexcontextIndex - annotation context indexid - paint identity (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()
null.
getProperties in interface com.davisor.core.Annotatedpublic java.lang.String getProperty(java.lang.String name)
null.
getProperty in interface com.davisor.core.Annotatedpublic java.util.Set getPropertyNames()
java.util.Set.
public java.lang.String getTarget()
getProperty(java.lang.String) instead (with arg "target")
getTarget in interface com.davisor.core.Annotatedpublic boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
createContext in interface java.awt.Paintpublic int getTransparency()
getTransparency in interface java.awt.Transparencypublic java.awt.Paint getPaint()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||