|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.ZSceneGraphObject | +--edu.umd.cs.jazz.ZNode | +--edu.umd.cs.jazz.ZLeaf | +--edu.umd.cs.jazz.ZVisualLeaf | +--venice.ZVisualLeafModelElement | +--venice.ZInterface
ZInterface is a concrete implementation of VInterface using Jazz library.
Field Summary | |
private static double |
CIRCLE_SIZE
size of the circle in pixels from left to right (not radius!) |
private edu.umd.cs.jazz.component.ZLabel |
mExpandedInterfaceLabel
visual component representing the label for interface |
private edu.umd.cs.jazz.component.ZText |
mExpandedInterfaceOpsText
visual component representing the operations list text area |
private edu.umd.cs.jazz.component.ZRectangle |
mExpandedInterfaceRectangle
visual component representing the class rectangle |
private edu.umd.cs.jazz.component.ZLine |
mExpandedInterfaceSeparator
visual component representing the line between name and operations |
private edu.umd.cs.jazz.component.ZLabel |
mExpandedInterfaceStereoLabel
visual component representing the < |
private java.util.LinkedList |
mHiddenRelationships
list of relationships to this interface which are hidden currently |
private edu.umd.cs.jazz.component.ZEllipse |
mInterfaceEllipse
visual component representing the circle |
private edu.umd.cs.jazz.component.ZLabel |
mInterfaceLabel
visual component representing the label under the circle |
private int |
mInterfaceType
type of the interface, one of the TYPE_ constants |
private java.lang.Object[] |
mOperations
operations of the interface as an array. toString() method is used to get a String representation |
private java.util.LinkedList |
mSubsDeps
list of dependencies greated to substitute this interface when hidden. |
private int |
mViewMode
view mode of the interface, one of the VIEWMODE_constants. |
Fields inherited from class edu.umd.cs.jazz.ZVisualLeaf |
cacheVolatile, visualComponents |
Fields inherited from class edu.umd.cs.jazz.ZNode |
clientProperties, editorFactory, findable, findable_DEFAULT, hasNodeListener, hasNodeListener_DEFAULT, parent, pickable, pickable_DEFAULT, savable, savable_DEFAULT, selectable, selectable_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
bounds, inClone, listenerList, objRefTable, volatileBounds, volatileBounds_DEFAULT |
Fields inherited from interface venice.VInterface |
TYPE_OFFERED, TYPE_REQUIRED, VIEWMODE_CIRCLE, VIEWMODE_EXPANDED |
Constructor Summary | |
ZInterface(java.lang.String inId)
Constructor. |
Method Summary | |
void |
addSubsDeps(VModelElement inElement)
Add parameter to the list. |
void |
clearHiddenRelationships()
Clear hidden relationship list. |
protected void |
dataChanged()
dataChanged() is called when model element data is changed. subclasses should override this method with a method which modifies the component appearance according to data changes. |
java.util.LinkedList |
getHiddenRelationships()
Gets content of hidden relationship list. |
int |
getInterfaceType()
returns the type of interface (offered or required) |
java.lang.Object[] |
getOperations()
returns the array which contains the operations in this interface. |
java.awt.geom.Point2D |
getRelationshipConnectPoint()
get the point where relationships should be attached to. |
java.util.LinkedList |
getSubsDeps()
Gets content of substitute dependency list. |
int |
getViewMode()
returns the current view mode of the interface. |
java.awt.geom.Point2D |
intersectWithLine(java.awt.geom.Line2D inLine)
Intersect this visualization element with a line. |
void |
removeSubsDeps()
Clear all elements from substitute dependency list. |
void |
setHiddenRelationships(VModelElement inElement)
Sets parameter to hidden relationship list |
void |
setInterfaceType(int inType)
sets the type of the interface (offered or required). |
void |
setOperations(java.lang.Object[] inOps)
sets the operations of the interface. |
void |
setViewMode(int inMode)
sets the view mode of the interface. |
Methods inherited from class edu.umd.cs.jazz.ZVisualLeaf |
addVisualComponent, addVisualComponents, clearVisualComponents, computeBounds, duplicateObject, getFirstVisualComponent, getNumVisualComponents, getVisualComponent, getVisualComponentBounds, getVisualComponentGlobalBounds, getVisualComponents, getVolatileBounds, indexOf, pick, removeVisualComponent, render, setState, setVisualComponent, setVisualComponent, trimToSize, updateObjectReferences, updateVolatility, writeObject, writeObject, writeObjectRecurse |
Methods inherited from class edu.umd.cs.jazz.ZNode |
|
Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
addMouseListener, addMouseMotionListener, clone, fireEvent, fireMouseEvent, getBounds, getBoundsReference, getListenerList, hasLisenerOfType, hasMouseListener, processMouseEvent, removeEventListener, removeMouseListener, removeMouseMotionListener, reshape, setBounds, setVolatileBounds |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Methods inherited from interface venice.VModelElement |
addRelationship, addToCompositeRelationshipList, debugDump, getCompositeRelationships, getId, getName, getRelationships, getType, getVisible, getVParent, setName, setType, setVisible |
Field Detail |
private static final double CIRCLE_SIZE
private int mInterfaceType
private int mViewMode
private java.lang.Object[] mOperations
private edu.umd.cs.jazz.component.ZLabel mInterfaceLabel
private edu.umd.cs.jazz.component.ZEllipse mInterfaceEllipse
private edu.umd.cs.jazz.component.ZText mExpandedInterfaceOpsText
private edu.umd.cs.jazz.component.ZLabel mExpandedInterfaceStereoLabel
private edu.umd.cs.jazz.component.ZLabel mExpandedInterfaceLabel
private edu.umd.cs.jazz.component.ZRectangle mExpandedInterfaceRectangle
private edu.umd.cs.jazz.component.ZLine mExpandedInterfaceSeparator
private java.util.LinkedList mSubsDeps
private java.util.LinkedList mHiddenRelationships
Constructor Detail |
public ZInterface(java.lang.String inId)
inId
- model element idMethod Detail |
public void addSubsDeps(VModelElement inElement)
addSubsDeps
in interface VInterface
inElement
- public void removeSubsDeps()
removeSubsDeps
in interface VInterface
public void setHiddenRelationships(VModelElement inElement)
setHiddenRelationships
in interface VInterface
inElement
- public java.util.LinkedList getHiddenRelationships()
getHiddenRelationships
in interface VInterface
public void clearHiddenRelationships()
clearHiddenRelationships
in interface VInterface
public java.util.LinkedList getSubsDeps()
getSubsDeps
in interface VInterface
public int getInterfaceType()
VInterface
getInterfaceType
in interface VInterface
venice.VInterface
public java.lang.Object[] getOperations()
VInterface
The array has been given to VInterface using setOperations method. See setOperations method description for information on the array content
getOperations
in interface VInterface
public int getViewMode()
VInterface
getViewMode
in interface VInterface
venice.VInterface
public void setInterfaceType(int inType)
VInterface
setInterfaceType
in interface VInterface
public void setOperations(java.lang.Object[] inOps)
VInterface
The operations are shown when the interface is visualized in expanded mode.
setOperations
in interface VInterface
venice.VInterface
inOps
- the array of objects representing the operations
of the interface. The objects toString() method is used
to get string representation of the operationspublic void setViewMode(int inMode)
VInterface
setViewMode
in interface VInterface
venice.VInterface
inMode
- one of VIEWMODE_ constantsprotected void dataChanged()
ZVisualLeafModelElement
dataChanged
in class ZVisualLeafModelElement
public java.awt.geom.Point2D getRelationshipConnectPoint()
VModelElement
getRelationshipConnectPoint
in interface VModelElement
venice.VModelElement
public java.awt.geom.Point2D intersectWithLine(java.awt.geom.Line2D inLine)
VModelElement
intersectWithLine
in interface VModelElement
venice.VModelElement
inLine
- the line to calculate intersection with
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |