|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.marker.AbstractMarker
lt.monarch.chart.marker.ImageMarker
public class ImageMarker extends AbstractMarker implements java.awt.image.ImageObserver
Renders a marker with image.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.marker.AbstractMarker |
|---|
dirty, map, metaModel, paintStyle, projectedLocation, style |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor and Description |
|---|
ImageMarker()
Constructor which creates a new marker with image. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes object |
void |
draw(AbstractGraphics g,
SeriesPaintTags tag,
Style style)
Renders the marker on the Graphics context. |
Rectangle2D |
getBounds()
Returns marker bounds. |
java.awt.Dimension |
getMarkerDimension()
Get marker dimension of size. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
|
protected void |
resetImage()
Clears marker image. |
void |
setImage(java.awt.Image image)
Sets marker image. |
void |
setImage(java.lang.String imageStr)
Sets image source. |
void |
setImage(java.net.URL imageURL)
Sets image source as URL. |
void |
setMarkerSize(int width,
int height)
Sets marker width and height. |
| Methods inherited from class lt.monarch.chart.marker.AbstractMarker |
|---|
clearChartObjectsMap, draw, finalize, getChartObjectBounds, getMetaModel, getPaintStyle, getParent, getStyle, getTransparencyValue, isVisible, mapChartObject, prepare, reset, setChartObjectsMap, setEntity, setLocation, setMetaModel, setTextAlignment, setTransparencyValue, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageMarker()
| Method Detail |
|---|
public void setMarkerSize(int width,
int height)
width - marker width in pixelsheight - marker height in pixelspublic java.awt.Dimension getMarkerDimension()
public void setImage(java.lang.String imageStr)
imageStr - path to the marker imagepublic void setImage(java.net.URL imageURL)
imageURL - the marker image URLpublic void setImage(java.awt.Image image)
image - the marker imagepublic Rectangle2D getBounds()
getBounds in interface Marker
public void draw(AbstractGraphics g,
SeriesPaintTags tag,
Style style)
Marker
draw in interface Markerg - graphics contexttag - painting tagstyle - drawing style
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverprotected void resetImage()
public void dispose()
dispose in interface Markerdispose in class AbstractMarker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||