de.eventhorizongilde.ehfs.chart
Class LineAnnotation

java.lang.Object
  extended by de.eventhorizongilde.ehfs.chart.LineAnnotation
All Implemented Interfaces:
IAnnotation

public class LineAnnotation
extends Object
implements IAnnotation

An annotation that is shown as a vertical line. It is shown at a specified time during the fight.


Method Summary
static LineAnnotation createForOverview(int seconds)
          Creates a line annotation that is visible on overview graphs only.
static LineAnnotation createForUnit(int seconds, String unitGuid)
          Creates a line annotation that is visible on graphs for a specific unit only.
static LineAnnotation createGlobal(int seconds)
          Creates a line annotation that is visible on all graphs.
 boolean isLegendIconAsBox()
          

Returns whether this annotation's legend icon should be shown as a box instead of a line.

 boolean isVisibleOnChartsForUnit(String guid)
          Returns whether this annotation should be visible on graphs shown for a specific unit.
 boolean isVisibleOnOverview()
          Returns whether this annotation should be visible on overview graphs.
 XYAnnotation toXYAnnotation(XYPlot plot, Color color, IParseContext context)
          Creates a JFreeChart XYAnnotation for this annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createGlobal

public static LineAnnotation createGlobal(int seconds)
Creates a line annotation that is visible on all graphs.

Parameters:
seconds - seconds into the fight where the line annotation should be placed

createForUnit

public static LineAnnotation createForUnit(int seconds,
                                           String unitGuid)
Creates a line annotation that is visible on graphs for a specific unit only.

Parameters:
seconds - seconds into the fight where the line annotation should be placed
unitGuid - the unit's GUID

createForOverview

public static LineAnnotation createForOverview(int seconds)
Creates a line annotation that is visible on overview graphs only.

Parameters:
seconds - seconds into the fight where the line annotation should be placed

toXYAnnotation

public XYAnnotation toXYAnnotation(XYPlot plot,
                                   Color color,
                                   IParseContext context)
Creates a JFreeChart XYAnnotation for this annotation.

Specified by:
toXYAnnotation in interface IAnnotation
Parameters:
plot - the plot the XYAnnotation is created for
color - the annotation's color on the plot
context - the current fight's parse context

isVisibleOnChartsForUnit

public boolean isVisibleOnChartsForUnit(String guid)
Returns whether this annotation should be visible on graphs shown for a specific unit.

Specified by:
isVisibleOnChartsForUnit in interface IAnnotation

isVisibleOnOverview

public boolean isVisibleOnOverview()
Returns whether this annotation should be visible on overview graphs.

Specified by:
isVisibleOnOverview in interface IAnnotation

isLegendIconAsBox

public boolean isLegendIconAsBox()

Returns whether this annotation's legend icon should be shown as a box instead of a line.

Note that this doesn't really make sense for single annotations. Instead, as annotations are grouped by AnnotationGroups, those take on the value returned here.

Specified by:
isLegendIconAsBox in interface IAnnotation


Event Horizon Fight Statistics