Package org.eclipse.birt.chart.event
Class MarkerInstruction
java.lang.Object
org.eclipse.birt.chart.event.MarkerInstruction
- All Implemented Interfaces:
Comparable,IRenderInstruction
This class wraps a rendering event for Marker
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction, double iMarkerSize, int zOrder) -
Method Summary
Modifier and TypeMethodDescriptionintfinal Boundsfinal PrimitiveRenderEventgetEvent()Returns the associated event.final intReturns the associated instruction.final doubleReturns the size of markerfinal intReturns the zOrder of markergetModel()booleanisModel()
-
Constructor Details
-
MarkerInstruction
public MarkerInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction, double iMarkerSize, int zOrder)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable
-
getEvent
Returns the associated event.- Specified by:
getEventin interfaceIRenderInstruction- Returns:
- Render Event
-
getInstruction
public final 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
-
getMarkerSize
public final double getMarkerSize()Returns the size of marker- Returns:
- marker size
-
getBounds
- Specified by:
getBoundsin interfaceIRenderInstruction- Returns:
- Returns the minimum bounds required to contain the rendering area of associated rendering event.
-
getModel
- Specified by:
getModelin interfaceIRenderInstruction- Returns:
- Returns list of events currently wraps.
-
isModel
public boolean isModel()- Specified by:
isModelin interfaceIRenderInstruction- Returns:
- Returns if wraps multiple events currently.
-
getMarkerZOrder
public final int getMarkerZOrder()Returns the zOrder of marker- Returns:
- marker zOrder
-