org.askalon.graph.chart
Interface OrderedChart

All Superinterfaces:
Chart, Cleanable, SectionChart
All Known Subinterfaces:
HierarchyChart, LinearChart, LineBarChart, PieChart, RibbonChart, XMLEventChart

public interface OrderedChart
extends SectionChart

This is a super-interface for all charts that support multiple sections that can be arranged in different orders.

Author:
Georg Schild and Franz Endstrasser

Method Summary
 void decrementOrder(int idx)
          Decrements the order of the entity specified by the index.
 int getOrder(int idx)
          Returns the order of the entity specified the index.
 void incrementOrder(int idx)
          Increments the order of the entity specified by the index.
 void setOrder(int idx, int newPosition)
          Sets the position of the entity specified by the index to the new position.
 
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

incrementOrder

void incrementOrder(int idx)
Increments the order of the entity specified by the index.

Parameters:
idx - the index of the entity
See Also:
setOrder(int, int), decrementOrder(int)

decrementOrder

void decrementOrder(int idx)
Decrements the order of the entity specified by the index.

Parameters:
idx - the index of the entity
See Also:
setOrder(int, int), incrementOrder(int)

getOrder

int getOrder(int idx)
Returns the order of the entity specified the index.

Parameters:
idx - the index of the entity
Returns:
the mapped position (real position in the chart)
See Also:
setOrder(int, int), incrementOrder(int), decrementOrder(int)

setOrder

void setOrder(int idx,
              int newPosition)
Sets the position of the entity specified by the index to the new position. The entity which is at the moment at this new position will be put on the old position of this entity.

Parameters:
idx - the index of the entity
newPosition - the new position of this entity
See Also:
getOrder(int), incrementOrder(int), decrementOrder(int)


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams