Generators

org.topcased.modeler.diagramconfigurator
Interface NodePartConfiguration

All Superinterfaces:
EObject, Notifier, PartConfiguration

public interface NodePartConfiguration
extends PartConfiguration

A representation of the model object 'Node Part Configuration'.

The following features are supported:

See Also:
DiagramconfiguratorPackage.getNodePartConfiguration()
** Generated **
Model:
annotation="http://www.topcased.org/documentation documentation='A PartConfiguration will be associated with a NodeEditPart at the generation process.'" annotation="http://www.eclipse.org/emf/2002/Ecore constraints='Container'"

Method Summary
 boolean alreadyExtendContainerFigure()
           
 EList<NodePartConfiguration> getChildElements()
          Returns the value of the 'Child Elements' reference list.
 org.eclipse.swt.graphics.Color getDefaultBackgroundColor()
          Returns the value of the 'Default Background Color' attribute.
 java.lang.String getDefaultBackgroundColorStringValue()
           
 int getDefaultHeight()
          Returns the value of the 'Default Height' attribute.
 int getDefaultWidth()
          Returns the value of the 'Default Width' attribute.
 org.eclipse.draw2d.IFigure getExtendedFigure()
          Return the Figure extended by this figure.
 java.lang.String getFeatureID(GenClass childGenClass)
          Get the FeatureID of the first feature of the GenClass asosciated with the current NodePartConfiguration (if it exists).
 LayoutType getLayout()
          Returns the value of the 'Layout' attribute.
 int getMaximumHeight()
          Returns the value of the 'Maximum Height' attribute.
 int getMaximumWidth()
          Returns the value of the 'Maximum Width' attribute.
 int getMinimumHeight()
          Returns the value of the 'Minimum Height' attribute.
 int getMinimumWidth()
          Returns the value of the 'Minimum Width' attribute.
 ResizableType getResizing()
          Returns the value of the 'Resizing' attribute.
 NodePartConfiguration getSuperType()
          Returns the value of the 'Super Type' reference.
 java.lang.String getType()
          Returns the value of the 'Type' attribute.
 boolean isAttachedToBorder()
          Returns the value of the 'Attached To Border' attribute.
 boolean isBackgroundColorChangeable()
          Returns the value of the 'Background Color Changeable' attribute.
 boolean isConnectable()
          Check if a nodePartConfiguration is connectable in a diagram
 boolean isContainer()
          Returns the value of the 'Container' attribute.
 boolean isDirectEditable()
          Returns the value of the 'Direct Editable' attribute.
 void setAttachedToBorder(boolean value)
          Sets the value of the 'Attached To Border' attribute.
 void setBackgroundColorChangeable(boolean value)
          Sets the value of the 'Background Color Changeable' attribute.
 void setContainer(boolean value)
          Sets the value of the 'Container' attribute.
 void setDefaultBackgroundColor(org.eclipse.swt.graphics.Color value)
          Sets the value of the 'Default Background Color' attribute.
 void setDefaultHeight(int value)
          Sets the value of the 'Default Height' attribute.
 void setDefaultWidth(int value)
          Sets the value of the 'Default Width' attribute.
 void setDirectEditable(boolean value)
          Sets the value of the 'Direct Editable' attribute.
 void setLayout(LayoutType value)
          Sets the value of the 'Layout' attribute.
 void setMaximumHeight(int value)
          Sets the value of the 'Maximum Height' attribute.
 void setMaximumWidth(int value)
          Sets the value of the 'Maximum Width' attribute.
 void setMinimumHeight(int value)
          Sets the value of the 'Minimum Height' attribute.
 void setMinimumWidth(int value)
          Sets the value of the 'Minimum Width' attribute.
 void setResizing(ResizableType value)
          Sets the value of the 'Resizing' attribute.
 void setSuperType(NodePartConfiguration value)
          Sets the value of the 'Super Type' reference.
 void setType(java.lang.String value)
          Sets the value of the 'Type' attribute.
 boolean shouldImplementIContainerFigure()
           
 boolean shouldImplementILabelFigure()
           
 
Methods inherited from interface org.topcased.modeler.diagramconfigurator.PartConfiguration
getActions, getConstraint, getDefaultFont, getDefaultFontStringValue, getDefaultForegroundColor, getDefaultForegroundColorStringValue, getLineStyle, getLineWidth, getObject, getPrefix, getPresentation, isFontChangeable, isForegroundColorChangeable, setDefaultFont, setDefaultForegroundColor, setFontChangeable, setForegroundColorChangeable, setLineStyle, setLineWidth, setObject, setPrefix, setPresentation
 
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

getType

java.lang.String getType()
Returns the value of the 'Type' attribute. The default value is "Figure".

If the meaning of the 'Type' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Type' attribute.
See Also:
setType(String), DiagramconfiguratorPackage.getNodePartConfiguration_Type()
** Generated **
Model:
default="Figure"

setType

void setType(java.lang.String value)
Sets the value of the 'Type' attribute.

Parameters:
value - the new value of the 'Type' attribute.
See Also:
getType()
** Generated **

getChildElements

EList<NodePartConfiguration> getChildElements()
Returns the value of the 'Child Elements' reference list. The list contents are of type NodePartConfiguration.

If the meaning of the 'Child Elements' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Child Elements' reference list.
See Also:
DiagramconfiguratorPackage.getNodePartConfiguration_ChildElements()
** Generated **
Model:
type="org.topcased.modeler.diagramconfigurator.NodePartConfiguration"

getSuperType

NodePartConfiguration getSuperType()
Returns the value of the 'Super Type' reference.

If the meaning of the 'Super Type' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Super Type' reference.
See Also:
setSuperType(NodePartConfiguration), DiagramconfiguratorPackage.getNodePartConfiguration_SuperType()
** Generated **
Model:

setSuperType

void setSuperType(NodePartConfiguration value)
Sets the value of the 'Super Type' reference.

Parameters:
value - the new value of the 'Super Type' reference.
See Also:
getSuperType()
** Generated **

getDefaultBackgroundColor

org.eclipse.swt.graphics.Color getDefaultBackgroundColor()
Returns the value of the 'Default Background Color' attribute. The default value is "255,255,255".

If the meaning of the 'Default Background Color' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Default Background Color' attribute.
See Also:
setDefaultBackgroundColor(Color), DiagramconfiguratorPackage.getNodePartConfiguration_DefaultBackgroundColor()
** Generated **
Model:
default="255,255,255" dataType="org.topcased.modeler.diagramconfigurator.Color"

setDefaultBackgroundColor

void setDefaultBackgroundColor(org.eclipse.swt.graphics.Color value)
Sets the value of the 'Default Background Color' attribute.

Parameters:
value - the new value of the 'Default Background Color' attribute.
See Also:
getDefaultBackgroundColor()
** Generated **

isBackgroundColorChangeable

boolean isBackgroundColorChangeable()
Returns the value of the 'Background Color Changeable' attribute. The default value is "true".

If the meaning of the 'Background Color Changeable' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Background Color Changeable' attribute.
See Also:
setBackgroundColorChangeable(boolean), DiagramconfiguratorPackage.getNodePartConfiguration_BackgroundColorChangeable()
** Generated **
Model:
default="true"

setBackgroundColorChangeable

void setBackgroundColorChangeable(boolean value)
Sets the value of the 'Background Color Changeable' attribute.

Parameters:
value - the new value of the 'Background Color Changeable' attribute.
See Also:
isBackgroundColorChangeable()
** Generated **

getResizing

ResizableType getResizing()
Returns the value of the 'Resizing' attribute. The default value is "ALL". The literals are from the enumeration ResizableType.

If the meaning of the 'Resizing' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Resizing' attribute.
See Also:
ResizableType, setResizing(ResizableType), DiagramconfiguratorPackage.getNodePartConfiguration_Resizing()
** Generated **
Model:
default="ALL"

setResizing

void setResizing(ResizableType value)
Sets the value of the 'Resizing' attribute.

Parameters:
value - the new value of the 'Resizing' attribute.
See Also:
ResizableType, getResizing()
** Generated **

isContainer

boolean isContainer()
Returns the value of the 'Container' attribute. The default value is "false".

If the meaning of the 'Container' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Container' attribute.
See Also:
setContainer(boolean), DiagramconfiguratorPackage.getNodePartConfiguration_Container()
** Generated **
Model:
default="false"

setContainer

void setContainer(boolean value)
Sets the value of the 'Container' attribute.

Parameters:
value - the new value of the 'Container' attribute.
See Also:
isContainer()
** Generated **

getLayout

LayoutType getLayout()
Returns the value of the 'Layout' attribute. The default value is "XYLayout". The literals are from the enumeration LayoutType.

If the meaning of the 'Layout' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Layout' attribute.
See Also:
LayoutType, setLayout(LayoutType), DiagramconfiguratorPackage.getNodePartConfiguration_Layout()
** Generated **
Model:
default="XYLayout"

setLayout

void setLayout(LayoutType value)
Sets the value of the 'Layout' attribute.

Parameters:
value - the new value of the 'Layout' attribute.
See Also:
LayoutType, getLayout()
** Generated **

isDirectEditable

boolean isDirectEditable()
Returns the value of the 'Direct Editable' attribute. The default value is "true".

If the meaning of the 'Direct Editable' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Direct Editable' attribute.
See Also:
setDirectEditable(boolean), DiagramconfiguratorPackage.getNodePartConfiguration_DirectEditable()
** Generated **
Model:
default="true"

setDirectEditable

void setDirectEditable(boolean value)
Sets the value of the 'Direct Editable' attribute.

Parameters:
value - the new value of the 'Direct Editable' attribute.
See Also:
isDirectEditable()
** Generated **

getDefaultWidth

int getDefaultWidth()
Returns the value of the 'Default Width' attribute. The default value is "50".

If the meaning of the 'Default Width' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Default Width' attribute.
See Also:
setDefaultWidth(int), DiagramconfiguratorPackage.getNodePartConfiguration_DefaultWidth()
** Generated **
Model:
default="50"

setDefaultWidth

void setDefaultWidth(int value)
Sets the value of the 'Default Width' attribute.

Parameters:
value - the new value of the 'Default Width' attribute.
See Also:
getDefaultWidth()
** Generated **

getDefaultHeight

int getDefaultHeight()
Returns the value of the 'Default Height' attribute. The default value is "50".

If the meaning of the 'Default Height' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Default Height' attribute.
See Also:
setDefaultHeight(int), DiagramconfiguratorPackage.getNodePartConfiguration_DefaultHeight()
** Generated **
Model:
default="50"

setDefaultHeight

void setDefaultHeight(int value)
Sets the value of the 'Default Height' attribute.

Parameters:
value - the new value of the 'Default Height' attribute.
See Also:
getDefaultHeight()
** Generated **

getMinimumWidth

int getMinimumWidth()
Returns the value of the 'Minimum Width' attribute. The default value is "20".

If the meaning of the 'Minimum Width' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Minimum Width' attribute.
See Also:
setMinimumWidth(int), DiagramconfiguratorPackage.getNodePartConfiguration_MinimumWidth()
** Generated **
Model:
default="20"

setMinimumWidth

void setMinimumWidth(int value)
Sets the value of the 'Minimum Width' attribute.

Parameters:
value - the new value of the 'Minimum Width' attribute.
See Also:
getMinimumWidth()
** Generated **

getMinimumHeight

int getMinimumHeight()
Returns the value of the 'Minimum Height' attribute. The default value is "20".

If the meaning of the 'Minimum Height' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Minimum Height' attribute.
See Also:
setMinimumHeight(int), DiagramconfiguratorPackage.getNodePartConfiguration_MinimumHeight()
** Generated **
Model:
default="20"

setMinimumHeight

void setMinimumHeight(int value)
Sets the value of the 'Minimum Height' attribute.

Parameters:
value - the new value of the 'Minimum Height' attribute.
See Also:
getMinimumHeight()
** Generated **

getMaximumWidth

int getMaximumWidth()
Returns the value of the 'Maximum Width' attribute. The default value is "200".

If the meaning of the 'Maximum Width' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Maximum Width' attribute.
See Also:
setMaximumWidth(int), DiagramconfiguratorPackage.getNodePartConfiguration_MaximumWidth()
** Generated **
Model:
default="200"

setMaximumWidth

void setMaximumWidth(int value)
Sets the value of the 'Maximum Width' attribute.

Parameters:
value - the new value of the 'Maximum Width' attribute.
See Also:
getMaximumWidth()
** Generated **

getMaximumHeight

int getMaximumHeight()
Returns the value of the 'Maximum Height' attribute. The default value is "200".

If the meaning of the 'Maximum Height' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Maximum Height' attribute.
See Also:
setMaximumHeight(int), DiagramconfiguratorPackage.getNodePartConfiguration_MaximumHeight()
** Generated **
Model:
default="200"

setMaximumHeight

void setMaximumHeight(int value)
Sets the value of the 'Maximum Height' attribute.

Parameters:
value - the new value of the 'Maximum Height' attribute.
See Also:
getMaximumHeight()
** Generated **

isAttachedToBorder

boolean isAttachedToBorder()
Returns the value of the 'Attached To Border' attribute. The default value is "false".

If the meaning of the 'Attached To Border' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Attached To Border' attribute.
See Also:
setAttachedToBorder(boolean), DiagramconfiguratorPackage.getNodePartConfiguration_AttachedToBorder()
** Generated **
Model:
default="false"

setAttachedToBorder

void setAttachedToBorder(boolean value)
Sets the value of the 'Attached To Border' attribute.

Parameters:
value - the new value of the 'Attached To Border' attribute.
See Also:
isAttachedToBorder()
** Generated **

isConnectable

boolean isConnectable()
Check if a nodePartConfiguration is connectable in a diagram

Returns:
true if at least one edge may be connected to the nodePartConfiguration

getFeatureID

java.lang.String getFeatureID(GenClass childGenClass)
Get the FeatureID of the first feature of the GenClass asosciated with the current NodePartConfiguration (if it exists). The type of the feature should match with the type of the passed GenClass.

Parameters:
childGenClass - a type of GenClass to match
Returns:
the FeatureID as a String if one is found. Return null otherwise.

getExtendedFigure

org.eclipse.draw2d.IFigure getExtendedFigure()
Return the Figure extended by this figure. This is used by the NodeFigure.javajet template to determiner whether the generated Figure should extend the IContainerFigure and the ILabelFigure.

Returns:
Figure the extended Figure

shouldImplementIContainerFigure

boolean shouldImplementIContainerFigure()

shouldImplementILabelFigure

boolean shouldImplementILabelFigure()

alreadyExtendContainerFigure

boolean alreadyExtendContainerFigure()

getDefaultBackgroundColorStringValue

java.lang.String getDefaultBackgroundColorStringValue()

Generators

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.