org.eclipse.birt.chart.event
Class WrappedInstruction

java.lang.Object
  extended by org.eclipse.birt.chart.event.WrappedInstruction
All Implemented Interfaces:
java.lang.Comparable, IRenderInstruction

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

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)
           
WrappedInstruction(DeferredCache dc, java.util.ArrayList alEvents, int iInstruction, long zorder)
          The constructor.
WrappedInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction)
           
WrappedInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction, long zorder)
          The constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 Bounds getBounds()
           
static java.util.Comparator<?> getDefaultComarator()
           
 PrimitiveRenderEvent getEvent()
          Returns the associated event.
 int getInstruction()
          Returns the associated instruction.
 java.util.List getModel()
           
 long getZOrder()
           
 boolean isModel()
           
 void setZOrder(int zorder)
           
 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,
                          long zorder)
The constructor.


WrappedInstruction

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

WrappedInstruction

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


WrappedInstruction

public WrappedInstruction(DeferredCache dc,
                          PrimitiveRenderEvent pre,
                          int iInstruction)
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.

Specified by:
getEvent in interface IRenderInstruction
Returns:

getInstruction

public final int getInstruction()
Description copied from interface: IRenderInstruction
Returns the associated instruction.

Specified by:
getInstruction in interface IRenderInstruction
Returns:
Returns the associated instruction. The value could be one of these:
  • PrimitiveRenderEvent.DRAW
  • PrimitiveRenderEvent.FILL

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBounds

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

isModel

public boolean isModel()
Specified by:
isModel in interface IRenderInstruction
Returns:
Returns if wraps multiple events currently.

getModel

public java.util.List getModel()
Specified by:
getModel in interface IRenderInstruction
Returns:
Returns list of events currently wraps.

getZOrder

public long getZOrder()

setZOrder

public void setZOrder(int zorder)

getDefaultComarator

public static java.util.Comparator<?> getDefaultComarator()


Copyright © 2005-2008 Actuate Corp. All rights reserved.