org.eclipse.birt.chart.event
Class WrappedInstruction

java.lang.Object
  extended byorg.eclipse.birt.chart.event.WrappedInstruction
All Implemented Interfaces:
java.lang.Comparable

public final class WrappedInstruction
extends java.lang.Object
implements java.lang.Comparable

This class wraps different types of rendering events. It could stand for one or a list of events.


Constructor Summary
WrappedInstruction(DeferredCache dc, java.util.ArrayList alEvents, int iInstruction)
          The constructor.
WrappedInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction)
          The constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 Bounds getBounds()
           
 PrimitiveRenderEvent getEvent()
          Returns the associated event.
 int getInstruction()
           
 java.util.ArrayList getModel()
           
 boolean isModel()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedInstruction

public WrappedInstruction(DeferredCache dc,
                          java.util.ArrayList alEvents,
                          int iInstruction)
The constructor.


WrappedInstruction

public WrappedInstruction(DeferredCache dc,
                          PrimitiveRenderEvent pre,
                          int iInstruction)
The constructor.

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getEvent

public final PrimitiveRenderEvent getEvent()
Returns the associated event.

Returns:

getInstruction

public final int getInstruction()
Returns:
Returns the associated instruction. The value could be one of these:
  • PrimitiveRenderEvent.DRAW
  • PrimitiveRenderEvent.FILL

toString

public java.lang.String toString()

getBounds

public final Bounds getBounds()
Returns:
Returns the mimimum bounds required to contain the rendering area of associated rendering event.

isModel

public boolean isModel()
Returns:
Returns if wraps multiple events currently.

getModel

public java.util.ArrayList getModel()
Returns:
Returns list of events currently wraps.


Copyright © 2005 Actuate Corp. All rights reserved.