pl.edu.agh.cast.schema.editor.model.diagram
Interface ISchemaDiagram

All Superinterfaces:
IDiagram<ISchemaDataSet,IVisualSchemaDataSet>
All Known Implementing Classes:
SchemaDiagram

public interface ISchemaDiagram
extends IDiagram<ISchemaDataSet,IVisualSchemaDataSet>

Schema diagram interface.

Author:
AGH CAST Team

Method Summary
 void initDiagramLayout(org.eclipse.core.runtime.IProgressMonitor monitor)
          If diagram has not been initialized before (is just created), the method performs default layout for all IVisualSchemaNode elements.
 void layoutSelectedNode(Collection<ISchemaNode> nodes, ILayoutAlgorithm layout, org.eclipse.core.runtime.IProgressMonitor monitor)
          Performs the specified layout on the given visual nodes.
 
Methods inherited from interface pl.edu.agh.cast.model.visual.IDiagram
getDataSets, getLegend, getModel, getName
 

Method Detail

initDiagramLayout

void initDiagramLayout(org.eclipse.core.runtime.IProgressMonitor monitor)
If diagram has not been initialized before (is just created), the method performs default layout for all IVisualSchemaNode elements. Otherwise it keeps original positions.

Parameters:
monitor - progress monitor used to set progress bar

layoutSelectedNode

void layoutSelectedNode(Collection<ISchemaNode> nodes,
                        ILayoutAlgorithm layout,
                        org.eclipse.core.runtime.IProgressMonitor monitor)
Performs the specified layout on the given visual nodes.

Parameters:
nodes - nodes on which the layout will be performed
layout - layout to perform
monitor - progress monitor


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