|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'View'.
The views are the central abstraction in a notation model. View objects reference a business model and contain other notation objects that together hold all the properties needed to visualize that business model. The reason the view object does not have all the properties itself but rather delegates to other abstractions is to allow for easy extension of properties.
The following features are supported:
NotationPackage.getView()
Method Summary | |
Node |
createChild(org.eclipse.emf.ecore.EClass eClass)
A utililty method to create a new Node from the given eClass paramter
and then inserts the object in the view's Children collection
|
Style |
createStyle(org.eclipse.emf.ecore.EClass eClass)
A utililty method to create a new Style from the given eClass paramter
and then inserts the object in the view's Styles collection
|
org.eclipse.emf.common.util.EList |
getChildren()
Returns the value of the 'Children' containment reference list. |
Diagram |
getDiagram()
Returns the value of the 'Diagram' reference |
org.eclipse.emf.ecore.EObject |
getElement()
Returns the value of the 'Element' reference |
org.eclipse.emf.common.util.EList |
getSourceEdges()
Returns the value of the 'Source Edges' reference list. |
Style |
getStyle(org.eclipse.emf.ecore.EClass eClass)
Looks up a style in the view's collection of styles that extends/implements the given EClass . |
org.eclipse.emf.common.util.EList |
getStyles()
Returns the value of the 'Styles' containment reference list. |
org.eclipse.emf.common.util.EList |
getTargetEdges()
Returns the value of the 'Target Edges' reference list. |
String |
getType()
Returns the value of the 'Type' attribute. |
boolean |
isVisible()
Returns the value of the 'Visible' attribute. |
void |
setElement(org.eclipse.emf.ecore.EObject value)
Sets the value of the ' Element ' reference |
void |
setType(String value)
Sets the value of the ' Type ' attribute |
void |
setVisible(boolean value)
Sets the value of the ' Visible ' attribute |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public boolean isVisible()
"true"
.
setVisible(boolean)
,
NotationPackage.getView_Visible()
public void setVisible(boolean value)
Visible
' attribute.
value
- the new value of the 'Visible' attribute.isVisible()
public String getType()
""
.
The view's type is a context-defined unique string representing the kind of the view. It is usually used if the view is a subview or if it is a top level view that does not have a business model
setType(String)
,
NotationPackage.getView_Type()
public void setType(String value)
Type
' attribute.
The view's type is a context-defined unique string representing the kind of the view. It is usually used if the view is a subview or if it is a top level view that does not have a business model
value
- the new value of the 'Type' attribute.getType()
public org.eclipse.emf.common.util.EList getSourceEdges()
Edge
.
It is bidirectional and its opposite is 'Source
'.
The property is a list of zero or more outgoing edges from the view
NotationPackage.getView_SourceEdges()
,
Edge.getSource()
public org.eclipse.emf.common.util.EList getTargetEdges()
Edge
.
It is bidirectional and its opposite is 'Target
'.
The property is a list of zero or more incoming edges to the view
NotationPackage.getView_TargetEdges()
,
Edge.getTarget()
public org.eclipse.emf.common.util.EList getChildren()
Node
.
NotationPackage.getView_Children()
public org.eclipse.emf.common.util.EList getStyles()
Style
.
The list contains unique instances of these styles
NotationPackage.getView_Styles()
public org.eclipse.emf.ecore.EObject getElement()
This is The referenced business model element
setElement(EObject)
,
NotationPackage.getView_Element()
public void setElement(org.eclipse.emf.ecore.EObject value)
Element
' reference.
This is The referenced business model element
value
- the new value of the 'Element' reference.getElement()
public Diagram getDiagram()
The diagram is the top level container of this view
NotationPackage.getView_Diagram()
public Style getStyle(org.eclipse.emf.ecore.EClass eClass)
Looks up a style in the view's collection of styles that extends/implements
the given EClass
. Thefore the returned style instance is not guaranteed
to be unique for different EClass
es
public Node createChild(org.eclipse.emf.ecore.EClass eClass)
A utililty method to create a new Node
from the given eClass
paramter
and then inserts the object in the view's Children collection
eClass
- the EClass
to be used in creating the Node
object
public Style createStyle(org.eclipse.emf.ecore.EClass eClass)
A utililty method to create a new Style
from the given eClass
paramter
and then inserts the object in the view's Styles collection
eClass
- the EClass
to be used in creating the Style
object
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.