|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.eventhorizongilde.ehfs.chart.BoxAnnotation
public class BoxAnnotation
An annotation that is shown as a box. Horizontally, it starts/ends at specified times during the fight. Vertically, it goes from the graph's top to its bottom.
| Method Summary | |
|---|---|
static BoxAnnotation |
createForOverview(int startSeconds,
int endSeconds)
Creates a box annotation that is visible on overview graphs only. |
static BoxAnnotation |
createForUnit(int startSeconds,
int endSeconds,
String unitGuid)
Creates a box annotation that is visible on graphs for a specific unit only. |
static BoxAnnotation |
createGlobal(int startSeconds,
int endSeconds)
Creates a box 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 |
|---|
public static BoxAnnotation createGlobal(int startSeconds,
int endSeconds)
startSeconds - seconds into the fight where the box annotation should startendSeconds - seconds into the fight where the box annotation should end
public static BoxAnnotation createForUnit(int startSeconds,
int endSeconds,
String unitGuid)
startSeconds - seconds into the fight where the box annotation should startendSeconds - seconds into the fight where the box annotation should endunitGuid - the unit's GUID
public static BoxAnnotation createForOverview(int startSeconds,
int endSeconds)
startSeconds - seconds into the fight where the box annotation should startendSeconds - seconds into the fight where the box annotation should end
public XYAnnotation toXYAnnotation(XYPlot plot,
Color color,
IParseContext context)
XYAnnotation for this annotation.
toXYAnnotation in interface IAnnotationplot - the plot the XYAnnotation is created forcolor - the annotation's color on the plotcontext - the current fight's parse contextpublic boolean isVisibleOnChartsForUnit(String guid)
isVisibleOnChartsForUnit in interface IAnnotationpublic boolean isVisibleOnOverview()
isVisibleOnOverview in interface IAnnotationpublic 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.
isLegendIconAsBox in interface IAnnotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||