|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLEventChart
Interface for the xml-event chart, which supports to add events
from multiple sources with a timestamp, to link events and add
additional attributes for descriptions.
In this chart the Y-axis represents the sources that
generate events and the X-axis stands for the time at which
an event is generated. If events are connected to each other,
this is indicated by an connecting line.
Method Summary | |
---|---|
void |
addAttribute(int section,
String event,
String key,
String value)
Adds an attribute to an event, that will be shown in the events description. |
void |
addEvent(int section,
String event_id,
long timestamp,
Map<String,String> attributes)
Adds a new event from a source at a certain timestamp, adding (optional) attributes for descriptions. |
void |
addLink(int source_section,
String source_id,
int dest_section,
String dest_id)
Adds a link from an event of the entity source to an event of the entity dest. |
Map<String,String> |
getAttributes(int section,
String event)
Gets a copy of the attributes of the chosen node |
boolean |
isArrowsShown()
Returns whether the arrows are shown or hidden by the chart. |
boolean |
isGradientLinks()
Gets to current coloring mode of event links. |
void |
removeEventSource(int section)
Removes one source (entity) with all its events and links. |
void |
setArrowsShown(boolean b)
Enables/disables the arrow-view of the chart. |
void |
setGradientLinks(boolean b)
Sets the color of links to gradient mode, where the link-lines are colored using a gradient color from the sources color to the destination color. |
Methods inherited from interface org.askalon.graph.chart.XYXMLChart |
---|
getLinkLineWidth, getNodeType, setLinkLineWidth, setNodeType |
Methods inherited from interface org.askalon.graph.chart.SectionChart |
---|
getSectionColor, getSectionCount, getSectionName, isVisible, setSectionColor, setSectionName, setVisible |
Methods inherited from interface org.askalon.graph.chart.Chart |
---|
getChartConfiguration, getChartMenu, getChartName, getLegend, getUnit, getXAxisText, getYAxisText, isDisableUpdate, isEdgesVisible, refreshConfiguration, resetConfiguration, setChartConfiguration, setDisableUpdate, setEdgesVisible, setUnit, setXAxisText, setYAxisText |
Methods inherited from interface org.askalon.graph.chart.base.Cleanable |
---|
cleanUp |
Methods inherited from interface org.askalon.graph.chart.OrderedChart |
---|
decrementOrder, getOrder, incrementOrder, setOrder |
Methods inherited from interface org.askalon.graph.chart.SectionChart |
---|
getSectionColor, getSectionCount, getSectionName, isVisible, setSectionColor, setSectionName, setVisible |
Methods inherited from interface org.askalon.graph.chart.Chart |
---|
getChartConfiguration, getChartMenu, getChartName, getLegend, getUnit, getXAxisText, getYAxisText, isDisableUpdate, isEdgesVisible, refreshConfiguration, resetConfiguration, setChartConfiguration, setDisableUpdate, setEdgesVisible, setUnit, setXAxisText, setYAxisText |
Methods inherited from interface org.askalon.graph.chart.base.Cleanable |
---|
cleanUp |
Method Detail |
---|
void addLink(int source_section, String source_id, int dest_section, String dest_id)
source_section
- id of the source entitysource_id
- id of the source eventdest_section
- id of the destination entitydest_id
- id of the destination eventvoid addEvent(int section, String event_id, long timestamp, Map<String,String> attributes)
section
- the section of the source in which this event should be containedevent_id
- the id of this new event, will delete old event if already one exists with this idtimestamp
- timestamp of the event, determining it's x-positionattributes
- (optional) additional attributes for description of the eventvoid addAttribute(int section, String event, String key, String value)
section
- the section id of the source of this eventevent
- the id of the eventkey
- the key for the new attributevalue
- the text of the attributeMap<String,String> getAttributes(int section, String event)
section
- event
-
void removeEventSource(int section)
section
- the id of the source which should be removedvoid setGradientLinks(boolean b)
b
- true to enable gradients, false to use black colored linksisGradientLinks()
boolean isGradientLinks()
setGradientLinks(boolean)
void setArrowsShown(boolean b)
b
- true to show arrows, false to hide the arrowsisArrowsShown()
boolean isArrowsShown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Part of: |
ASKALON Visualisation Diagrams |