Package org.eclipse.birt.chart.event
Class WrappedInstruction
java.lang.Object
org.eclipse.birt.chart.event.WrappedInstruction
- All Implemented Interfaces:
Comparable,IRenderInstruction
This class wraps different types of rendering events. It could stand for one
or a list of events.
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedInstruction(DeferredCache dc, ArrayList alEvents, int iInstruction) WrappedInstruction(DeferredCache dc, 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
Modifier and TypeMethodDescriptionintReturns compare bounds.static Comparator<?>getEvent()Returns the associated event.intReturns the associated instruction.getModel()Returns instance of sub-deferred cache.longbooleanisModel()voidsetCompareBounds(Bounds bounds) This method set a bounds to be used for polygon comparison to reset polygon rendering order.voidSet sub-deferred cache instance.voidsetZOrder(int zorder) toString()
-
Constructor Details
-
WrappedInstruction
The constructor. -
WrappedInstruction
-
WrappedInstruction
public WrappedInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction, long zorder) The constructor. -
WrappedInstruction
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable
-
getEvent
Returns the associated event.- Specified by:
getEventin interfaceIRenderInstruction- Returns:
-
getInstruction
public int getInstruction()Description copied from interface:IRenderInstructionReturns the associated instruction.- Specified by:
getInstructionin interfaceIRenderInstruction- Returns:
- Returns the associated instruction. The value could be one of these:
- PrimitiveRenderEvent.DRAW
- PrimitiveRenderEvent.FILL
-
toString
-
setCompareBounds
This method set a bounds to be used for polygon comparison to reset polygon rendering order. Under some cases, like core, triangle charts, we don't use actual plan to do order comparison, it is difficult. We just sets a compare bounds instead of actual bound for comparison.- Parameters:
bounds-
-
getCompareBounds
Returns compare bounds.- Returns:
-
getBounds
- Specified by:
getBoundsin interfaceIRenderInstruction- Returns:
- Returns the mimimum bounds required to contain the rendering area of associated rendering event.
-
isModel
public boolean isModel()- Specified by:
isModelin interfaceIRenderInstruction- Returns:
- Returns if wraps multiple events currently.
-
getModel
- Specified by:
getModelin interfaceIRenderInstruction- Returns:
- Returns list of events currently wraps.
-
getZOrder
public long getZOrder() -
setZOrder
public void setZOrder(int zorder) -
getDefaultComarator
-
setSubDeferredCache
Set sub-deferred cache instance.- Parameters:
dc-
-
getSubDeferredCache
Returns instance of sub-deferred cache.- Returns:
-