Math2mat
Public Member Functions | Static Public Attributes | Protected Member Functions

m2m.frontend.dynamicview.model.Node Class Reference

Inheritance diagram for m2m.frontend.dynamicview.model.Node:
Inheritance graph
[legend]
Collaboration diagram for m2m.frontend.dynamicview.model.Node:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Node ()
void setLevel (int level)
int getLevel ()
void setElement (Element element)
Element getElement ()
void addConnection (Connection conn)
void removeConnection (Connection conn)
Vector< ConnectiongetSourceConnections ()
Vector< ConnectiongetTargetConnections ()
void setName (String name)
String getName ()
boolean getVisible ()
void setVisible (boolean visible)
void setLayout (Rectangle newLayout)
void setLayoutReduction (Rectangle newLayout)
Rectangle getLayout ()
Rectangle getLayoutReduction ()
void removeLayoutReduction ()
void addChild (Node child)
void removeChild (Node child)
Vector< NodegetChildrenArray ()
void setParent (Node parent)
Node getParent ()
boolean getColorConditionSelected ()
void setColorConditionSelected (boolean colorConditionSelected)
void addPropertyChangeListener (PropertyChangeListener listener)
void removePropertyChangeListener (PropertyChangeListener listener)
PropertyChangeSupport getListeners ()
boolean CanSetLayout (Rectangle layoutTest)
boolean nodeUnderNode (Rectangle layoutTest, Rectangle layoutNode)
boolean isInParent (Rectangle layoutTest)
void setDepthLevel ()
int getDepthLevel ()

Static Public Attributes

static final String LAYOUT = "Layout"
static final String VISIBLE_COMPONENT = "VisibleComponent"
static final String CHANGE_COLOR = "ChangeColor"

Protected Member Functions

void firePropertyChange (String property, Object oldValue, Object newValue)

Detailed Description

Definition at line 27 of file Node.java.


Constructor & Destructor Documentation

m2m.frontend.dynamicview.model.Node.Node ( )

Default contructor of a Node.

Definition at line 100 of file Node.java.


Member Function Documentation

void m2m.frontend.dynamicview.model.Node.addChild ( Node  child)

Add a child in the vector of children of the node.

Parameters:
childThe child to the vector to add

Definition at line 299 of file Node.java.

void m2m.frontend.dynamicview.model.Node.addConnection ( Connection  conn)

Add a connection in the vector of source connections or the vector of target connections of the node.

Parameters:
connThe connection to the node to add

Definition at line 154 of file Node.java.

void m2m.frontend.dynamicview.model.Node.addPropertyChangeListener ( PropertyChangeListener  listener)

Add a listener in the list of listeners of the node.

Parameters:
listenerThe listener to the node to add

Definition at line 372 of file Node.java.

boolean m2m.frontend.dynamicview.model.Node.CanSetLayout ( Rectangle  layoutTest)
void m2m.frontend.dynamicview.model.Node.firePropertyChange ( String  property,
Object  oldValue,
Object  newValue 
) [protected]

Raise an event for each listener of the node.

Parameters:
propertythe property to the listeners to raise
oldValuethe old value to the connection to replace
newValuethe new value to the connection to set

Definition at line 404 of file Node.java.

Vector<Node> m2m.frontend.dynamicview.model.Node.getChildrenArray ( )

Get the vector of children of the node.

Returns:
the vector of children of the node

Reimplemented in m2m.frontend.dynamicview.model.GraphicIf, and m2m.frontend.dynamicview.model.GraphicLoopIterator.

Definition at line 320 of file Node.java.

boolean m2m.frontend.dynamicview.model.Node.getColorConditionSelected ( )

Get the color condition selected atribute of the node.

Returns:
the color condition selected atribute of the node

Definition at line 350 of file Node.java.

int m2m.frontend.dynamicview.model.Node.getDepthLevel ( )

Get the depth level of the node.

Returns:
the depth level of the node

Definition at line 487 of file Node.java.

Element m2m.frontend.dynamicview.model.Node.getElement ( )

Get the structure element of the node.

Returns:
the structure element of the node

Definition at line 144 of file Node.java.

Rectangle m2m.frontend.dynamicview.model.Node.getLayout ( )

Get the layout of the node.

Returns:
the layout of the node

Definition at line 270 of file Node.java.

Rectangle m2m.frontend.dynamicview.model.Node.getLayoutReduction ( )

Get the layout reduction of the node.

Returns:
the layout reduction of the node

Definition at line 280 of file Node.java.

int m2m.frontend.dynamicview.model.Node.getLevel ( )

Get the graphical level of the node.

Returns:
the graphical level of the node

Definition at line 124 of file Node.java.

PropertyChangeSupport m2m.frontend.dynamicview.model.Node.getListeners ( )

Get all change property listeners of the node.

Returns:
the list of listeners of the node

Definition at line 392 of file Node.java.

String m2m.frontend.dynamicview.model.Node.getName ( )

Get the name of the node.

Returns:
the name of the node

Definition at line 214 of file Node.java.

Node m2m.frontend.dynamicview.model.Node.getParent ( )

Get the parent node of the node.

Returns:
the parent node of the node

Definition at line 340 of file Node.java.

Vector<Connection> m2m.frontend.dynamicview.model.Node.getSourceConnections ( )

Get the vector of source connections of the node.

Returns:
the vector of source connections of the node

Definition at line 184 of file Node.java.

Vector<Connection> m2m.frontend.dynamicview.model.Node.getTargetConnections ( )

Get the vector of target connections of the node.

Returns:
the vector of targe connections of the node.

Definition at line 194 of file Node.java.

boolean m2m.frontend.dynamicview.model.Node.getVisible ( )

Get the visible attribute of the node.

Returns:
the visible attribute of the node

Definition at line 224 of file Node.java.

boolean m2m.frontend.dynamicview.model.Node.isInParent ( Rectangle  layoutTest)

Check if a node layout is in its parent node layout.

Parameters:
layoutTestLayout of the node to check
Returns:
the result of the control

Definition at line 449 of file Node.java.

boolean m2m.frontend.dynamicview.model.Node.nodeUnderNode ( Rectangle  layoutTest,
Rectangle  layoutNode 
)

Indicate if a layout superposed an other layout.

Parameters:
layoutTestThe layout to test
layoutNodeThe layout use for the test
Returns:
the result of the control

Definition at line 435 of file Node.java.

void m2m.frontend.dynamicview.model.Node.removeChild ( Node  child)

Remove a child in the list of children of the node.

Parameters:
childThe child to the vector to remove

Definition at line 310 of file Node.java.

void m2m.frontend.dynamicview.model.Node.removeConnection ( Connection  conn)

Remove a connection in the vector of source connections or the vector of target connections of the node.

Parameters:
connThe connection to the node to remove

Definition at line 169 of file Node.java.

void m2m.frontend.dynamicview.model.Node.removeLayoutReduction ( )

Remove the last used layout reduction of the node.

Definition at line 289 of file Node.java.

void m2m.frontend.dynamicview.model.Node.removePropertyChangeListener ( PropertyChangeListener  listener)

Remove a listener in the list of listeners of this node.

Parameters:
listenerlistener The listener to the node to remove

Definition at line 382 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setColorConditionSelected ( boolean  colorConditionSelected)

Set the color condition selected attribute of the node.

Parameters:
colorConditionSelectedThe value to the condition selected attribute to set

Definition at line 360 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setDepthLevel ( )

Set the depth level of the node.

Returns:
the depth level of the node

Definition at line 466 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setElement ( Element  element)

Set the structure element of the node.

Parameters:
elementThe structure element to the node to set

Definition at line 134 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setLayout ( Rectangle  newLayout)

Set the layout of the node.

Parameters:
newLayoutThe new layout to the node to set

Definition at line 246 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setLayoutReduction ( Rectangle  newLayout)

Set the layout reduction of the node.

Parameters:
newLayoutThe layout reduction to the node to set

Definition at line 258 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setLevel ( int  level)

Set the graphical level of the node.

Parameters:
levelThe level to the node to set

Definition at line 114 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setName ( String  name)

Set the name of the node.

Parameters:
nameThe name to the node to set

Definition at line 204 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setParent ( Node  parent)

Set the parent node of the node.

Parameters:
parentThe parent node to the node to set

Definition at line 330 of file Node.java.

void m2m.frontend.dynamicview.model.Node.setVisible ( boolean  visible)

Set the visible attribute of the node.

Parameters:
visiblethe value to the visible attribute to set

Reimplemented in m2m.frontend.dynamicview.model.GraphicIf, m2m.frontend.dynamicview.model.GraphicLoop, and m2m.frontend.dynamicview.model.GraphicLoopIterator.

Definition at line 234 of file Node.java.


Member Data Documentation

final String m2m.frontend.dynamicview.model.Node.CHANGE_COLOR = "ChangeColor" [static]

Use to raise event for changing the color of the node.

Definition at line 40 of file Node.java.

final String m2m.frontend.dynamicview.model.Node.LAYOUT = "Layout" [static]

Use to raise an event when the layout is changing.

Definition at line 32 of file Node.java.

final String m2m.frontend.dynamicview.model.Node.VISIBLE_COMPONENT = "VisibleComponent" [static]

Use to raise an event when the visible attribute is changing.

Definition at line 36 of file Node.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations