Package org.eclipse.birt.chart.event
Class ImageRenderEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.ImageRenderEvent
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Image3DRenderEvent
A rendering event type for rendering Image object.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voiddraw(IDeviceRenderer idr) Causes this instruction to 'draw' itself on the device renderervoidfill(IDeviceRenderer idr) Causes this instruction to 'fill' itself on the device rendererintgetImage()intgetWidth()booleanvoidreset()Resets the inner state of current event.voidsetHeight(int height) Sets the height hint of the image.voidSets the content of the image.voidsetLocation(Location loc) Sets the location of the image.voidsetPosition(Position pos) Sets the position of the image.voidsetStretch(boolean val) Sets if stretch the image.voidsetWidth(int width) Sets the width hint of the image.Methods inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
compareRegular, compareTo, compareTransposed, getBackground, getBounds, getDepth, getLabel, getLineAttributes, isEnabled, setDepth, setEnableMethods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObjectMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ImageRenderEvent
The constructor.
-
-
Method Details
-
setLocation
Sets the location of the image. -
setImage
Sets the content of the image. -
setPosition
Sets the position of the image. -
getLocation
- Returns:
- Returns the location of the image.
-
getImage
- Returns:
- Returns the content of the image.
-
getPosition
- Returns:
- Returns the position of the image.
-
setWidth
public void setWidth(int width) Sets the width hint of the image. -
setHeight
public void setHeight(int height) Sets the height hint of the image. -
getWidth
public int getWidth()- Returns:
- Returns the width hint of the image.
-
getHeight
public int getHeight()- Returns:
- Returns the height hint of the image.
-
setStretch
public void setStretch(boolean val) Sets if stretch the image. -
isStretch
public boolean isStretch()- Returns:
- Returns if stretch the image.
-
copy
- Overrides:
copyin classPrimitiveRenderEvent- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
- Throws:
ChartException
-
fill
Description copied from class:PrimitiveRenderEventCauses this instruction to 'fill' itself on the device renderer- Overrides:
fillin classPrimitiveRenderEvent- Throws:
ChartException
-
draw
Description copied from class:PrimitiveRenderEventCauses this instruction to 'draw' itself on the device renderer- Overrides:
drawin classPrimitiveRenderEvent- Throws:
ChartException
-
reset
public void reset()Description copied from class:ChartEventResets the inner state of current event. This must be implemented if the object is cached and reused.- Specified by:
resetin classChartEvent
-