de.eventhorizongilde.ehfs.chart
Interface IAnnotation

All Known Implementing Classes:
BoxAnnotation, LineAnnotation

public interface IAnnotation

A single annotation visible on a graph. An annotation may be visible on overview graphs, unit graphs, or both.


Method Summary
 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.
 

Method Detail

toXYAnnotation

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

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

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


isVisibleOnOverview

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


isLegendIconAsBox

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.



Event Horizon Fight Statistics