|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.servlet.ChartImageBuilder
public class ChartImageBuilder extends java.lang.Object implements ViewContainer
ViewContainer implementation for image and image map generation
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
background
image background |
protected View |
chart
the chart to render |
protected ChartObjectsMap |
chartObjectsMap
a chart objects map of the view container |
protected HotSpotMap |
hotSpotMap
a hot spot map of the view container |
protected java.awt.Image |
image
an image to render chart into |
protected java.awt.Insets |
insets
insets of the image, which indicate the size of the image's border |
protected java.awt.Dimension |
size
size of image |
| Constructor and Description |
|---|
ChartImageBuilder(View chart)
Constructs a new ChartImageBuilder with the specified chart. |
| Modifier and Type | Method and Description |
|---|---|
void |
addGestureListener(GestureListener l)
Does nothing. |
void |
addMouseListener(java.awt.event.MouseListener l)
Dummy implementation. |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
Dummy implementation. |
void |
addMouseWheelListener(java.awt.event.MouseWheelListener l)
Does nothing. |
void |
addMultitouchListener(MultitouchListener l)
Does nothing. |
void |
cleanup()
Cleans this chart image builder object. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
java.awt.Color |
getBackground()
Gets the chart image background. |
ChartObjectsMap |
getChartObjectsMap()
Returns a chart objects map for the view container. |
java.awt.Component |
getComponent()
Returns the Component associated with this view container. |
HotSpotMap |
getHotSpotMap()
Returns a hot spot map for the view container. |
java.awt.Image |
getImage()
Returns the internal image. |
java.awt.Insets |
getInsets()
Determines the insets of the chart image, which indicate the size of the images's border. |
AbstractGraphics |
getUpdateGraphics()
Returns graphics context of the chart image. |
View |
getView()
Returns chart view. |
void |
removeGestureListener(GestureListener l)
Does nothing. |
void |
removeMouseListener(java.awt.event.MouseListener l)
Dummy implementation. |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Dummy implementation. |
void |
removeMouseWheelListener(java.awt.event.MouseWheelListener l)
Does nothing. |
void |
removeMultitouchListener(MultitouchListener l)
Does nothing. |
void |
render()
Renders the chart into an internal image buffer |
void |
repaint(Rectangle2D r)
Dummy implementation. |
void |
revalidate()
Dummy implementation. |
void |
setBackground(java.awt.Color background)
Sets background color for the chart image. |
void |
setChartObjectsMap(ChartObjectsMap map)
Sets a chart objects map for the view container. |
void |
setHotSpotMap(HotSpotMap map)
Sets a hot spot map for the view container. |
void |
setInsets(java.awt.Insets insets)
Sets image insets. |
void |
setSize(java.awt.Dimension size)
Sets size of the image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected View chart
protected java.awt.Dimension size
protected java.awt.Color background
protected java.awt.Insets insets
protected HotSpotMap hotSpotMap
protected ChartObjectsMap chartObjectsMap
protected java.awt.Image image
| Constructor Detail |
|---|
public ChartImageBuilder(View chart)
ChartImageBuilder with the specified chart.
chart - the chart| Method Detail |
|---|
public void setBackground(java.awt.Color background)
background - the image backgroundpublic java.awt.Color getBackground()
public void setInsets(java.awt.Insets insets)
insets - image insetspublic java.awt.Insets getInsets()
public void setSize(java.awt.Dimension size)
size - The dimension specifying the new size of the image.public java.awt.Component getComponent()
getComponent in interface ViewContainerpublic AbstractGraphics getUpdateGraphics()
getUpdateGraphics in interface ViewContainerpublic void render()
public java.awt.Image getImage()
public HotSpotMap getHotSpotMap()
getHotSpotMap in interface ViewContainerpublic void setHotSpotMap(HotSpotMap map)
map - the hot spot mappublic ChartObjectsMap getChartObjectsMap()
getChartObjectsMap in interface ViewContainerpublic void setChartObjectsMap(ChartObjectsMap map)
map - the chart objects mappublic void repaint(Rectangle2D r)
repaint in interface ViewContainerr - the area to repaintpublic void revalidate()
revalidate in interface ViewContainerpublic void addMouseListener(java.awt.event.MouseListener l)
addMouseListener in interface ViewContainerl - the mouse listenerpublic void removeMouseListener(java.awt.event.MouseListener l)
removeMouseListener in interface ViewContainerl - the mouse listenerpublic void addMouseMotionListener(java.awt.event.MouseMotionListener l)
addMouseMotionListener in interface ViewContainerl - the mouse motion listenerpublic void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
removeMouseMotionListener in interface ViewContainerl - the mouse motion listenerpublic void addMouseWheelListener(java.awt.event.MouseWheelListener l)
addMouseWheelListener in interface ViewContainerl - the mouse listenerpublic void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
removeMouseWheelListener in interface ViewContainerl - the mouse motion listenerpublic void addGestureListener(GestureListener l)
addGestureListener in interface ViewContainerl - the gesture listenerpublic void addMultitouchListener(MultitouchListener l)
addMultitouchListener in interface ViewContainerl - the gesture listenerpublic void removeGestureListener(GestureListener l)
removeGestureListener in interface ViewContainerl - the gesture listenerpublic void removeMultitouchListener(MultitouchListener l)
removeMultitouchListener in interface ViewContainerl - the gesture listenerpublic void cleanup()
protected void finalize()
throws java.lang.Throwable
cleanup method if it isn't called yet.
finalize in class java.lang.Objectjava.lang.Throwable - the Exception raised by this methodpublic View getView()
getView in interface ViewContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||