pl.edu.agh.cast.schema.model.visual
Class VisualSchemaDataSet

java.lang.Object
  extended by pl.edu.agh.cast.data.model.property.PropertyContainer
      extended by pl.edu.agh.cast.data.model.AbstractDataSet<T>
          extended by pl.edu.agh.cast.data.model.visual.VisualDataSet<IVisualSchemaElement<? extends ISchemaElement<? extends IElement>>,ISchemaDataSet>
              extended by pl.edu.agh.cast.schema.model.visual.VisualSchemaDataSet
All Implemented Interfaces:
Serializable, Observer, IDisposable, IValidatable, IDataSet<IVisualSchemaElement<? extends ISchemaElement<? extends IElement>>>, Identifiable, IPropertyChangeProvider, IPropertyContainer, IVisualDataSet<IVisualSchemaElement<? extends ISchemaElement<? extends IElement>>,ISchemaDataSet>, IVisualSchemaDataSet

public class VisualSchemaDataSet
extends VisualDataSet<IVisualSchemaElement<? extends ISchemaElement<? extends IElement>>,ISchemaDataSet>
implements IVisualSchemaDataSet

The default implementation of IVisualSchemaDataSet.

Author:
AGH CAST Team
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.visual.IVisualDataSet
IVisualDataSet.Events
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.IDataSet
IDataSet.Properties
 
Field Summary
 
Fields inherited from interface pl.edu.agh.cast.schema.model.visual.IVisualSchemaDataSet
ACCEPTED_TYPES, TYPE
 
Constructor Summary
VisualSchemaDataSet()
          Default constructor.
VisualSchemaDataSet(String name, ISchemaDataSet model)
          Initializes data set with its name and a newly created MetaPropertyManager.
VisualSchemaDataSet(VisualDataSetDescriptor descriptor, ISchemaDataSet model)
          Initializes data set with its descriptor and a newly created MetaPropertyManager.
VisualSchemaDataSet(VisualDataSetDescriptor descriptor, ISchemaDataSet model, MetaPropertyManager metaPropertyManager)
          Initializes data set with its descriptor and MetaPropertyManager.
 
Method Summary
 Collection<Type> getAcceptedTypes()
          Returns collection of types of IElements this data set is able to accept.
 Collection<IVisualSchemaConnection> getConnections()
          Gets all connections in data set.
 Collection<IVisualSchemaNode> getNodes()
          Gets all nodes in data set.
 
Methods inherited from class pl.edu.agh.cast.data.model.visual.VisualDataSet
acquireDescriptor, addPropertyChangeListener, createNewDescriptor, firePropertyChange, getAllPropertiesMarkedAsLabel, getDescriptor, getPresentationDataSet, getPropertiesMarkedAsLabel, isDescriptorValid, isLayoutInitialized, isSuppressLocationChangeEvents, markLayoutInitialized, markPropertyAsLabel, removePropertyChangeListener, setAllPropertiesMarkedAsLabel, setLayoutInitialized, setPresentationDataSet, setSuppressAllEvents, setSuppressLocationChangeEvents
 
Methods inherited from class pl.edu.agh.cast.data.model.AbstractDataSet
addElement, addElements, addElements, addMetaPropertyManager, addMetaPropertyManager, addMetaPropertyManagersForAcceptedTypes, afterAddElement, afterRemoveElement, afterSetMetaPropertyManager, beforeAddElement, beforeRemoveElement, checkIfValid, equals, getAssignableElements, getCreationDate, getDescString, getElement, getElementCount, getElements, getElements, getElementTypes, getId, getMetaPropertyManager, getMetaPropertyManagers, getName, getRegisteredTypes, getType, hashCode, isElementValid, isValid, removeElement, removeElement, removeElements, removeElements, setCreationDate, setDescriptor, setElements, setId, setName, setType, toString
 
Methods inherited from class pl.edu.agh.cast.data.model.property.PropertyContainer
addProperty, createProperty, dispose, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, initializeProperties, matches, removeProperty, setMetaPropertyManager, setProperty, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pl.edu.agh.cast.data.model.visual.IVisualDataSet
getAllPropertiesMarkedAsLabel, getDescriptor, getPresentationDataSet, getPropertiesMarkedAsLabel, isLayoutInitialized, isSuppressLocationChangeEvents, markLayoutInitialized, markPropertyAsLabel, setAllPropertiesMarkedAsLabel, setSuppressAllEvents, setSuppressLocationChangeEvents
 
Methods inherited from interface pl.edu.agh.cast.data.model.IDataSet
addElement, addElements, addElements, addMetaPropertyManager, addMetaPropertyManagersForAcceptedTypes, getAssignableElements, getCreationDate, getElement, getElementCount, getElements, getElements, getElementTypes, getMetaPropertyManager, getMetaPropertyManagers, getName, getRegisteredTypes, removeElement, removeElement, removeElements, removeElements, setCreationDate, setElements, setName
 
Methods inherited from interface pl.edu.agh.cast.data.model.Identifiable
getId, getType
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyContainer
addProperty, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, matches, removeProperty, setProperty
 
Methods inherited from interface java.util.Observer
update
 
Methods inherited from interface pl.edu.agh.cast.common.IValidatable
isValid
 
Methods inherited from interface pl.edu.agh.cast.common.IDisposable
dispose
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

VisualSchemaDataSet

public VisualSchemaDataSet()
Default constructor.


VisualSchemaDataSet

public VisualSchemaDataSet(String name,
                           ISchemaDataSet model)
Initializes data set with its name and a newly created MetaPropertyManager.

Parameters:
name - the name of the data set
model - the presentation data set wrapped by this visual data set
Throws:
IllegalArgumentException - if any of the arguments is null

VisualSchemaDataSet

public VisualSchemaDataSet(VisualDataSetDescriptor descriptor,
                           ISchemaDataSet model)
Initializes data set with its descriptor and a newly created MetaPropertyManager.

Parameters:
descriptor - the visual data set descriptor
model - the presentation data set wrapped by this visual data set
Throws:
IllegalArgumentException - if any of the arguments is null

VisualSchemaDataSet

public VisualSchemaDataSet(VisualDataSetDescriptor descriptor,
                           ISchemaDataSet model,
                           MetaPropertyManager metaPropertyManager)
Initializes data set with its descriptor and MetaPropertyManager.

Parameters:
descriptor - the visual data set descriptor
model - the presentation data set wrapped by this visual data set
metaPropertyManager - manager of data set's meta properties
Throws:
IllegalArgumentException - if any of the arguments is null
Method Detail

getAcceptedTypes

public Collection<Type> getAcceptedTypes()
Returns collection of types of IElements this data set is able to accept.

This method should be overridden by all concrete subclasses.

Returns collection of types of elements this data set is able to accept.

Specified by:
getAcceptedTypes in interface IDataSet<IVisualSchemaElement<? extends ISchemaElement<? extends IElement>>>
Overrides:
getAcceptedTypes in class VisualDataSet<IVisualSchemaElement<? extends ISchemaElement<? extends IElement>>,ISchemaDataSet>
Returns:
collection of element types this data set is able to accept
See Also:
VisualDataSet.getAcceptedTypes()

getConnections

public Collection<IVisualSchemaConnection> getConnections()
Gets all connections in data set.

Specified by:
getConnections in interface IVisualSchemaDataSet
Returns:
connections in data set
See Also:
IVisualSchemaDataSet.getConnections()

getNodes

public Collection<IVisualSchemaNode> getNodes()
Gets all nodes in data set.

Specified by:
getNodes in interface IVisualSchemaDataSet
Returns:
nodes in data set
See Also:
IVisualSchemaDataSet.getNodes()


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