EDU.utwente.CoCompose.lang
Class CompositeType

java.lang.Object
  |
  +--EDU.auburn.VGJ.graph.Node
        |
        +--EDU.utwente.CoCompose.lang.AbstractConcept
              |
              +--EDU.utwente.CoCompose.lang.ConstrainedConcept
                    |
                    +--EDU.utwente.CoCompose.lang.Composite
                          |
                          +--EDU.utwente.CoCompose.lang.CompositeType
All Implemented Interfaces:
java.lang.Cloneable, java.awt.image.ImageObserver, UniqueRealm

public class CompositeType
extends Composite

A Composite generalisation representing a common Composite type that can be stored in the repository.

Version:
0.1.14, 14 October 2003
Author:
Dennis Wagelaar

Fields inherited from class EDU.utwente.CoCompose.lang.Composite
DefaultLabelPos, DefaultShape
 
Fields inherited from class EDU.utwente.CoCompose.lang.AbstractConcept
changeListeners, DEFAULT_EDGE_COLOR, DEFAULT_FILL_COLOR, DEFAULT_FONT_COLOR, DEFAULT_SELECT_COLOR, defaultLabel_, FONT_SIZE, realm_
 
Fields inherited from class EDU.auburn.VGJ.graph.Node
BELOW, CENTER, data, data_, defaultDataTypes_, defaults, depth_, groupActive_, groupbox_, groupNode_, groupNodeId_, grouppos_, haveId_, height_, id_, IN, inActiveGroup_, index_, isDummy_, isGroup_, label_, oldbox_, oldpos_, OVAL, RECTANGLE, shapeNames, width_, x_, y_, z_
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CompositeType()
          Constructs a CompositeType.
CompositeType(java.lang.String uri)
          Constructs a CompositeType from an XML document.
 
Method Summary
 void copyAttributes(Composite fromComposite)
          Copies attributes from fromComposite to self.
protected  void startXML(org.xml.sax.helpers.DefaultHandler handler, java.lang.String element, org.xml.sax.helpers.AttributesImpl atts)
          Create XML start from this object using a SAX DefaultHandler, element name and given attributes.
 void toXML(org.xml.sax.helpers.DefaultHandler handler, java.lang.String path)
          Create an XML document from this object using a SAX DefaultHandler.
 
Methods inherited from class EDU.utwente.CoCompose.lang.Composite
accept, addImplementation, addPartConcept, addSolution, checkCompleteness, draw, drawIcon, getIcon, getImplementations, getImplementations, getPartConcept, getPartConcepts, getPublishedConcept, getPublishedConcepts, getRole, getRoles, getShowIconOnly, getSolutions, getType, getTypeUniqueRealm, hasImplementations, hasPartConcept, hasSolutions, imagePS, implementationsToXML, insertImplementation, insertSolution, isDependent, isUnique, publishedToXML, register, removeImplementation, removePartConcept, removeSolution, restoreOffsets, rolesToXML, saveOffsets, scale, setDefaults, setIcon, setLabel, setSelected, setShowIconOnly, setType, setTypeUniqueRealm, solutionsToXML, toPSimage, toXML, unRegister, updateAttributes, updateLangImplTable
 
Methods inherited from class EDU.utwente.CoCompose.lang.ConstrainedConcept
checkConstraint, checkCorrectness, copyAttributes, getCompletenessConstraint, getCorrectnessConstraint, setCompletenessConstraint, setCorrectnessConstraint, updateAttributes
 
Methods inherited from class EDU.utwente.CoCompose.lang.AbstractConcept
addPropertyChangeListener, alignToGrid, alignToGrid, commentsToXML, copyAttributes, drawLabel, drawSelected, drawShape, endXML, getComments, getCopiedFrom, getDefaultFillColor, getDrawBounds, getEdgeColor, getFillColor, getFontColor, getInstantiatedBy, getLastCopiedFrom, getModel, getName, getPartOf, getPublicName, getSelectColor, getSpecification, getSpecificationLang, getTargetLanguage, getUniqueRealm, gmlToXML, isCopiedFrom, notifyListeners, notifyNameChange, notifyRemovedFromModel, removePropertyChangeListener, scaleBounds, setComments, setEdgeColor, setFillColor, setFontColor, setId, setInstantiatedBy, setModel, setName, setPartOf, setPosition, setPosition, setPosition, setPosition, setSelectColor, setSpecification, setSpecificationLang, setUniqueRealm, slide, specToXML, toPS, toString, unRegister
 
Methods inherited from class EDU.auburn.VGJ.graph.Node
clearChild, clone, copyAttributes, firstChild, getBoundingBox, getBoundingBox3, getChildren, getDefaultLabel, getDrawBounds_, getId, getIdObject, getImage, getImagePixels, getImageSource, getImageType, getIndex, getLabel, getLabelPosition, getPosition, getPosition3, getSelected, getShape, getTemp, getVisibleGroupRoot, groupActive, hasChild, hasChild, imagePS, imageUpdate, inGroup, intersectWithLineTo, isGroup, isVisible, nextChild, numberOfChildren, PSnum_, psString_, saveState, searchNextChild, setBoundingBox, setBoundingBox, setBoundingBox, setBoundingBox, setChild, setContext, setDefaultLabel, setGMLvalues, setGroup, setImage, setImageSource, setImageType, setLabel, setLabelPosition, setShape, setTemp, setToolkit, toPSimage
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface EDU.utwente.CoCompose.util.UniqueRealm
getName
 

Constructor Detail

CompositeType

public CompositeType()
Constructs a CompositeType.

CompositeType

public CompositeType(java.lang.String uri)
              throws java.lang.Exception
Constructs a CompositeType from an XML document.
Parameters:
uri - Location of the XML document.
Throws:
java.lang.Exception - if the CompositeType could not be created.
Method Detail

startXML

protected void startXML(org.xml.sax.helpers.DefaultHandler handler,
                        java.lang.String element,
                        org.xml.sax.helpers.AttributesImpl atts)
                 throws org.xml.sax.SAXException
Create XML start from this object using a SAX DefaultHandler, element name and given attributes.
Overrides:
startXML in class Composite
Parameters:
handler - The SAX DefaultHandler.
element - The XML element name.
atts - The XML element attributes.
Throws:
org.xml.sax.SAXException - if an XML handler error occurs.

copyAttributes

public void copyAttributes(Composite fromComposite)
                    throws CoComposeException
Copies attributes from fromComposite to self.
Overrides:
copyAttributes in class Composite
Parameters:
fromComposite - The Composite to copy the attributes from.
Throws:
CoComposeException - if the copy could not be made.

toXML

public void toXML(org.xml.sax.helpers.DefaultHandler handler,
                  java.lang.String path)
           throws org.xml.sax.SAXException
Create an XML document from this object using a SAX DefaultHandler.
Parameters:
handler - The SAX DefaultHandler.
path - - the path to the XML file to be written or null.
Throws:
org.xml.sax.SAXException - if an XML handler error occurs.