|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.eventhorizongilde.ehfs.milestone.AbstractMilestone
public abstract class AbstractMilestone
Convenience milestone implementation handling basic annotation group creation.
| Constructor Summary | |
|---|---|
protected |
AbstractMilestone()
Creates a new milestone. |
| Method Summary | |
|---|---|
protected void |
addAnnotation(String title,
IAnnotation annotation)
Adds an annotation to this milestone's annotation group. |
protected void |
deactivate()
Deactivates this milestone for the current fight. |
void |
fightEnded(long time)
Informs the milestone that parsing of a fight has ended. This implementation does nothing. |
AnnotationGroup |
getAnnotationGroup()
Returns an annotation group containing all annotations created by this milestone. |
protected IParseContext |
getParseContext()
Returns the parse context for the current fight. |
void |
setColorKeyId(String colorKeyId)
Sets the color key to use for creating the annotation group. |
void |
setParseContext(IParseContext context)
Sets the parse context for the current fight. |
protected int |
toSeconds(CombatEvent event)
Converts the timestamp of an event into seconds into the current fight. |
protected int |
toSeconds(long time)
Converts a timestamp into seconds into the current fight. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.eventhorizongilde.ehfs.milestone.IMilestone |
|---|
eventHappened |
| Constructor Detail |
|---|
protected AbstractMilestone()
| Method Detail |
|---|
public void setParseContext(IParseContext context)
setParseContext in interface IMilestoneprotected IParseContext getParseContext()
public void setColorKeyId(String colorKeyId)
setColorKeyId in interface IMilestone
protected void addAnnotation(String title,
IAnnotation annotation)
Adds an annotation to this milestone's annotation group.
Note: The title and the result of
IAnnotation.isLegendIconAsBox()
of the first annotation added are used to create the annotation group
when invoking getAnnotationGroup().
public AnnotationGroup getAnnotationGroup()
IMilestone
getAnnotationGroup in interface IMilestoneprotected int toSeconds(CombatEvent event)
protected int toSeconds(long time)
public void fightEnded(long time)
Informs the milestone that parsing of a fight has ended.
This implementation does nothing. Subclasses may override.
fightEnded in interface IMilestoneprotected void deactivate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||