EDU.utwente.CoCompose.lang
Class PublishedConcept
java.lang.Object
|
+--EDU.auburn.VGJ.graph.Node
|
+--EDU.utwente.CoCompose.lang.AbstractConcept
|
+--EDU.utwente.CoCompose.lang.ConstrainedConcept
|
+--EDU.utwente.CoCompose.lang.CompositePartConcept
|
+--EDU.utwente.CoCompose.lang.PublishedConcept
- All Implemented Interfaces:
- java.lang.Cloneable, java.awt.image.ImageObserver
- public class PublishedConcept
- extends CompositePartConcept
The role class representing the roles of the CoCompose design language
primitive Composite.
- Version:
- 0.1.10, 22 July 2003
- Author:
- Dennis Wagelaar
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 |
Method Summary |
void |
accept(ModelVisitor visitor)
Accepts a ModelVisitor. |
protected double |
boundDimension(double new_pos,
double size,
double bound_pos,
double bound_size)
Bounds one dimension of a position only. |
protected DPoint |
boundPosition(DPoint new_position)
Bounds a new role position within the bounds of the composite. |
protected DPoint3 |
boundPosition(DPoint3 new_position)
Bounds a new role position within the bounds of the composite. |
java.lang.String |
getPublicName()
Gets the public name attribute. |
UniqueRealm |
getPublicUniqueRealm()
Gets the unique realm namespace for the public name. |
protected void |
notifyNameChange(java.lang.String oldName,
java.lang.String newName)
Notfies the ProprtyChangeListeners of a name change. |
protected void |
notifyPublicNameChange(java.lang.String oldName,
java.lang.String newName)
Notfies the ProprtyChangeListeners of a public name change. |
void |
setDefaults()
Sets the defaults for this published concept. |
void |
setLabel()
Sets the label using the object attributes. |
void |
setPublicName(java.lang.String name_in)
Sets the public name attribute - sets label as well. |
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)
Create XML from this object using a SAX DefaultHandler. |
Methods inherited from class EDU.utwente.CoCompose.lang.CompositePartConcept |
getComposite, getDefaultFillColor, getInstantiatedBy, getPartOf, restoreCompositeOffset, saveCompositeOffset, setComposite, setInstantiatedBy, setPartOf, setPosition, setPosition, setPosition, setPosition |
Methods inherited from class EDU.utwente.CoCompose.lang.AbstractConcept |
addPropertyChangeListener, alignToGrid, alignToGrid, commentsToXML, copyAttributes, draw, drawLabel, drawSelected, drawShape, endXML, getComments, getCopiedFrom, getDrawBounds, getEdgeColor, getFillColor, getFontColor, getModel, getName, getSelectColor, getSpecification, getSpecificationLang, getTargetLanguage, getUniqueRealm, gmlToXML, notifyListeners, notifyRemovedFromModel, removePropertyChangeListener, scaleBounds, setComments, setEdgeColor, setFillColor, setFontColor, setId, setModel, setName, 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, scale, searchNextChild, setBoundingBox, setBoundingBox, setBoundingBox, setBoundingBox, setChild, setContext, setDefaultLabel, setGMLvalues, setGroup, setImage, setImageSource, setImageType, setLabel, setLabelPosition, setSelected, setShape, setTemp, setToolkit, toPSimage |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PublishedConcept
public PublishedConcept()
- Constructs a PublishedConcept.
boundDimension
protected double boundDimension(double new_pos,
double size,
double bound_pos,
double bound_size)
- Bounds one dimension of a position only.
- Overrides:
boundDimension
in class CompositePartConcept
- Parameters:
new_pos
- A new position coordinate dimension.size
- The corresponding dimension size.bound_pos
- The boundary position coordinate dimension.bound_size
- The corresponding dimension boundary size.- Returns:
- The clipped position coordinate dimension.
boundPosition
protected DPoint boundPosition(DPoint new_position)
- Bounds a new role position within the bounds of the composite.
- Overrides:
boundPosition
in class CompositePartConcept
- Parameters:
new_position
- The new position coordinate to clip.- Returns:
- The clipped position coordinate.
boundPosition
protected DPoint3 boundPosition(DPoint3 new_position)
- Bounds a new role position within the bounds of the composite.
- Overrides:
boundPosition
in class CompositePartConcept
- Parameters:
new_position
- The new position coordinate to clip.- Returns:
- The clipped position coordinate.
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 ConstrainedConcept
- 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.
notifyNameChange
protected void notifyNameChange(java.lang.String oldName,
java.lang.String newName)
- Notfies the ProprtyChangeListeners of a name change. Stub in this class,
because the normal name is not public within the model.
- Overrides:
notifyNameChange
in class AbstractConcept
- Parameters:
oldName
- The old name property value.newName
- The new name property value.
notifyPublicNameChange
protected void notifyPublicNameChange(java.lang.String oldName,
java.lang.String newName)
- Notfies the ProprtyChangeListeners of a public name change.
- Parameters:
oldName
- The old publicName property value.newName
- The new publicName property value.
setDefaults
public void setDefaults()
- Sets the defaults for this published concept.
- Overrides:
setDefaults
in class AbstractConcept
getPublicUniqueRealm
public UniqueRealm getPublicUniqueRealm()
- Gets the unique realm namespace for the public name. This is usually the
unique realm in which the composite resides.
- Returns:
- The unique realm or null.
getPublicName
public java.lang.String getPublicName()
- Gets the public name attribute.
- Overrides:
getPublicName
in class AbstractConcept
- Returns:
- The public name attribute.
setPublicName
public void setPublicName(java.lang.String name_in)
throws CoComposeException
- Sets the public name attribute - sets label as well.
- Parameters:
name_in
- The new public name.- Throws:
CoComposeException
- if the name is not a valid unique identifier or
if the Composite is not set for this.
setLabel
public void setLabel()
- Sets the label using the object attributes.
- Overrides:
setLabel
in class AbstractConcept
toXML
public void toXML(org.xml.sax.helpers.DefaultHandler handler)
throws org.xml.sax.SAXException
- Create XML from this object using a SAX DefaultHandler.
- Overrides:
toXML
in class AbstractConcept
- Parameters:
handler
- The SAX DefaultHandler.- Throws:
org.xml.sax.SAXException
- if an XML handler error occurs.
accept
public void accept(ModelVisitor visitor)
throws CoComposeException
- Accepts a ModelVisitor.
- Overrides:
accept
in class CompositePartConcept
- Parameters:
visitor
- The visitor object to accept.- Throws:
CoComposeException
- if visiting operation failed.