|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.model.AbstractDESIModel
edu.usc.cse.desi.model.view.AbstractViewModel
edu.usc.cse.desi.model.view.AbstractNodeViewModel
The super class that all node view models inherrit from.
| Field Summary | |
static java.lang.String |
C_DISPLAY_IMAGEDATA
|
static java.lang.String |
C_DISPLAY_MODELDATA
|
protected org.eclipse.swt.graphics.Color |
myBGColor
|
protected int |
myBorderWidth
|
protected java.util.List |
myChildren
|
private java.util.HashMap |
myConnectedNodes
|
protected java.util.List |
myConnections
|
protected int |
myFigPosX
|
protected int |
myFigPosY
|
protected int |
myFigSizeH
|
protected int |
myFigSizeW
|
static java.lang.String |
P_DISPLAY_FIGLOCATION_X
|
static java.lang.String |
P_DISPLAY_FIGLOCATION_Y
|
static java.lang.String |
P_DISPLAY_FIGSIZE_H
|
static java.lang.String |
P_DISPLAY_FIGSIZE_W
|
static java.lang.String |
P_DISPLAY_NUMCHILDREN
|
static java.lang.String |
P_DISPLAY_NUMCONNECTIONS
|
static java.lang.String |
P_ID_FIGLOCATION_X
|
static java.lang.String |
P_ID_FIGLOCATION_Y
|
static java.lang.String |
P_ID_FIGSIZE_H
|
static java.lang.String |
P_ID_FIGSIZE_W
|
static java.lang.String |
P_ID_NUMCHILDREN
|
static java.lang.String |
P_ID_NUMCONNECTIONS
|
| Fields inherited from class edu.usc.cse.desi.model.view.AbstractViewModel |
myDataModel |
| Fields inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
listeners |
| Constructor Summary | |
AbstractNodeViewModel()
|
|
| Method Summary | |
void |
addConnectedNode(AbstractNodeViewModel arg0,
AbstractConnectionViewModel arg1)
|
private org.eclipse.ui.views.properties.IPropertyDescriptor[] |
buildPropertyDescriptor()
Build the array of property descriptors from this object's PropertyHolder. |
java.util.List |
getChildren()
|
AbstractConnectionViewModel |
getConnectedLink(AbstractNodeViewModel arg0)
Returns the link that connects this node and the given node. |
java.util.Iterator |
getConnectedNodes()
|
java.util.List |
getConnections()
|
java.lang.Object |
getEditableValue()
|
org.eclipse.swt.graphics.Color |
getMyBGColor()
Return the background color of this Node. |
int |
getMyBorderWidth()
|
int |
getMyFigPosX()
|
int |
getMyFigPosY()
|
int |
getMyFigSizeH()
|
int |
getMyFigSizeW()
|
PropertyInitializer |
getMyPropetyInitializer()
I overrode this method: |
java.util.Collection |
getProperties()
I overrode this method: |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Returns the texts descriptions of the properties that will appear in the property sheet. |
java.lang.String |
getPropertyDisplayName(java.lang.String prop_name)
I overrode this method: |
java.lang.Object |
getPropertyValue(java.lang.Object obj)
Return the value associated with the given property. |
java.lang.Object |
getPropertyValue(java.lang.String prop_name)
I overrode this method: |
boolean |
hasProperty(java.lang.String prop_name)
I overrode this method: |
boolean |
isConnectedToNode(AbstractNodeViewModel arg0)
|
boolean |
isPropertySet(java.lang.Object id)
At this point I am not sure what this method does but it is necessary for the IPropertySource interface and in the Eclipse book they return false. |
int |
numOfConnectedNodes()
|
void |
reinitialize()
I overrode this method: |
void |
removeConnectedNode(AbstractNodeViewModel arg0)
|
void |
resetPropertyValue(java.lang.Object id)
Same is true for this function as is isPropertySet() except that in the Eclipse book, they didn't mention this method AT ALL. |
void |
setMyBGColor(org.eclipse.swt.graphics.Color color)
Set the foreground color of this Node. |
void |
setMyBorderWidth(int i)
|
protected void |
setMyDataModel(AbstractNodeDataModel model)
|
void |
setMyFigPosX(int i)
|
void |
setMyFigPosY(int i)
|
void |
setMyFigSizeH(int i)
|
void |
setMyFigSizeW(int i)
|