Package org.eclipse.birt.chart.event
Class MarkerInstruction
- java.lang.Object
-
- org.eclipse.birt.chart.event.MarkerInstruction
-
- All Implemented Interfaces:
java.lang.Comparable
,IRenderInstruction
public class MarkerInstruction extends java.lang.Object implements IRenderInstruction
This class wraps a rendering event for Marker
-
-
Constructor Summary
Constructors Constructor Description MarkerInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction, double iMarkerSize, int zOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
Bounds
getBounds()
PrimitiveRenderEvent
getEvent()
Returns the associated event.int
getInstruction()
Returns the associated instruction.double
getMarkerSize()
Returns the size of markerint
getMarkerZOrder()
Returns the zOrder of markerjava.util.List
getModel()
boolean
isModel()
-
-
-
Constructor Detail
-
MarkerInstruction
public MarkerInstruction(DeferredCache dc, PrimitiveRenderEvent pre, int iInstruction, double iMarkerSize, int zOrder)
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
getEvent
public final PrimitiveRenderEvent getEvent()
Returns the associated event.- Specified by:
getEvent
in interfaceIRenderInstruction
- Returns:
- Render Event
-
getInstruction
public final int getInstruction()
Description copied from interface:IRenderInstruction
Returns the associated instruction.- Specified by:
getInstruction
in 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
public final Bounds getBounds()
- Specified by:
getBounds
in interfaceIRenderInstruction
- Returns:
- Returns the minimum bounds required to contain the rendering area of associated rendering event.
-
getModel
public java.util.List getModel()
- Specified by:
getModel
in interfaceIRenderInstruction
- Returns:
- Returns list of events currently wraps.
-
isModel
public boolean isModel()
- Specified by:
isModel
in interfaceIRenderInstruction
- Returns:
- Returns if wraps multiple events currently.
-
getMarkerZOrder
public final int getMarkerZOrder()
Returns the zOrder of marker- Returns:
- marker zOrder
-
-