org.kahina.core.data.chart
Class KahinaChart

java.lang.Object
  extended by org.kahina.core.data.KahinaObject
      extended by org.kahina.core.data.chart.KahinaChart
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
KahinaMemChart

public abstract class KahinaChart
extends KahinaObject

See Also:
Serialized Form

Constructor Summary
KahinaChart()
           
 
Method Summary
 int addEdge(int left, int right, String caption, int status)
           
abstract  void addEdgeDependency(int motherID, int daughterID)
           
 String exportXML(boolean asFile)
           
abstract  Set<Integer> getDaughterEdgesForEdge(int id)
           
abstract  String getEdgeCaption(int edgeID)
           
abstract  Iterable<Integer> getEdgeIDs()
           
abstract  int getEdgeStatus(int edgeID)
           
abstract  int getLeftBound()
           
abstract  int getLeftBoundForEdge(int edgeID)
           
abstract  int getLeftmostCovered()
           
abstract  Set<Integer> getMotherEdgesForEdge(int id)
           
protected  int getNextEdgeID()
           
abstract  int getRightBound()
           
abstract  int getRightBoundForEdge(int edgeID)
           
abstract  int getRightmostCovered()
           
abstract  String getSegmentCaption(int segmentID)
           
abstract  Set<Integer> getSegmentsWithCaption()
           
static KahinaChart importXML(Document dom)
           
 void initialize()
           
abstract  void removeEdge(int edgeID)
           
abstract  boolean segmentHasCaption(int id)
           
 boolean segmentIsCovered(int id)
           
abstract  void setEdgeCaption(int edgeID, String edgeCaption)
           
abstract  void setEdgeStatus(int edgeID, int status)
           
abstract  void setLeftBound(int leftBound)
           
abstract  void setLeftBoundForEdge(int edgeID, int leftBound)
           
abstract  void setLeftmostCovered(int leftBound)
           
abstract  void setRightBound(int rightBound)
           
abstract  void setRightBoundForEdge(int edgeID, int rightBound)
           
abstract  void setRightmostCovered(int rightBound)
           
abstract  void setSegmentCaption(int segmentID, String segmentCaption)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KahinaChart

public KahinaChart()
Method Detail

initialize

public void initialize()

getLeftBound

public abstract int getLeftBound()

setLeftBound

public abstract void setLeftBound(int leftBound)

getRightBound

public abstract int getRightBound()

setRightBound

public abstract void setRightBound(int rightBound)

getLeftmostCovered

public abstract int getLeftmostCovered()

setLeftmostCovered

public abstract void setLeftmostCovered(int leftBound)

getRightmostCovered

public abstract int getRightmostCovered()

setRightmostCovered

public abstract void setRightmostCovered(int rightBound)

addEdge

public int addEdge(int left,
                   int right,
                   String caption,
                   int status)

removeEdge

public abstract void removeEdge(int edgeID)

getLeftBoundForEdge

public abstract int getLeftBoundForEdge(int edgeID)

setLeftBoundForEdge

public abstract void setLeftBoundForEdge(int edgeID,
                                         int leftBound)

getRightBoundForEdge

public abstract int getRightBoundForEdge(int edgeID)

setRightBoundForEdge

public abstract void setRightBoundForEdge(int edgeID,
                                          int rightBound)

getEdgeStatus

public abstract int getEdgeStatus(int edgeID)

setEdgeStatus

public abstract void setEdgeStatus(int edgeID,
                                   int status)

getEdgeCaption

public abstract String getEdgeCaption(int edgeID)

setEdgeCaption

public abstract void setEdgeCaption(int edgeID,
                                    String edgeCaption)

getSegmentCaption

public abstract String getSegmentCaption(int segmentID)

setSegmentCaption

public abstract void setSegmentCaption(int segmentID,
                                       String segmentCaption)

getSegmentsWithCaption

public abstract Set<Integer> getSegmentsWithCaption()

getEdgeIDs

public abstract Iterable<Integer> getEdgeIDs()

segmentIsCovered

public boolean segmentIsCovered(int id)

segmentHasCaption

public abstract boolean segmentHasCaption(int id)

getNextEdgeID

protected int getNextEdgeID()

addEdgeDependency

public abstract void addEdgeDependency(int motherID,
                                       int daughterID)

getMotherEdgesForEdge

public abstract Set<Integer> getMotherEdgesForEdge(int id)

getDaughterEdgesForEdge

public abstract Set<Integer> getDaughterEdgesForEdge(int id)

exportXML

public String exportXML(boolean asFile)

importXML

public static KahinaChart importXML(Document dom)