pl.edu.agh.cast.model.visual
Interface IDiagram<M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>,V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>,M>>

Type Parameters:
M - type of presentation data set which can be hold by this diagram
V - type of visual data set which can be hold by this diagram
All Known Subinterfaces:
ISchemaDiagram
All Known Implementing Classes:
Diagram, SchemaDiagram

public interface IDiagram<M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>,V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>,M>>

An interface which describes a single diagram.

IDiagram contains model and view which are displayed in editor as a diagram. Each editor can extend this interface to define specific behavior and properties.

Author:
AGH CAST Team
See Also:
IPresentationDataSet, IVisualDataSet

Method Summary
 List<IDataSet<? extends IElement>> getDataSets()
          Gets list containing presentation and visual data sets in such order.
 Legend getLegend()
          Returns legend model for this diagram.
 M getModel()
          Gets model which is base for this diagram.
 String getName()
          Returns diagram name.
 

Method Detail

getModel

M getModel()
Gets model which is base for this diagram.

Returns:
presentation model data set

getDataSets

List<IDataSet<? extends IElement>> getDataSets()
Gets list containing presentation and visual data sets in such order.

Returns:
list of presentation and visual data sets

getName

String getName()
Returns diagram name. It is alias to getModel().getName() method.

Returns:
diagram name

getLegend

Legend getLegend()
Returns legend model for this diagram.

Returns:
legend model


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.