fdda.graphics
Interface Node

All Superinterfaces:
Cloneable, Component, PropertyHolder, WorkingPart
All Known Implementing Classes:
Node

public interface Node
extends Component, WorkingPart, PropertyHolder

Represents the graphical symbol of a node in the model.

Author:
Jörg Rüdenauer

Field Summary
 
Fields inherited from interface fdda.graphics.Component
SEL_ALL, SEL_EQUALS, SEL_MOVABLES, SEL_NOTHING
 
Method Summary
 double getLineStartX()
          Returns the x coordinate of the point where lines should start.
 double getLineStartY()
          Returns the y coordinate of the point where lines should start.
 Node getModelNode()
          Returns the model node which is symbolized by this node.
 Color getPrimaryColor()
          Returns the main color of the node.
 Color getSecondaryColor()
          Returns the secondary color of the node.
 void repaint()
          Refreshes the graphics.
 void setModelNode(Node node)
          Sets the model node which is symbolized by this node.
 void setPrimaryColor(Color color)
          Sets the main color of the node.
 void setSecondaryColor(Color color)
          Sets the secondary color of the node.
 
Methods inherited from interface fdda.graphics.Component
clone, deselect, getGraphicalSystem, getShape, getX, getY, isMovable, isSelected, move, recalculateShape, select, selectableWith, setGraphicalSystem, setXY, visit
 
Methods inherited from interface fdda.graphics.WorkingPart
isWorking, setWorking
 
Methods inherited from interface fdda.model.PropertyHolder
addProperty, addPropertyListener, changeProperty, firePropertyChanged, getProperties, getProperty, removeProperty, removePropertyListener
 

Method Detail

getLineStartX

public double getLineStartX()
Returns the x coordinate of the point where lines should start.

Returns:
the x coordinate of the line start point

getLineStartY

public double getLineStartY()
Returns the y coordinate of the point where lines should start.

Returns:
the y coordinate of the line start point

setPrimaryColor

public void setPrimaryColor(Color color)
Sets the main color of the node. May be ignored by implementations.

Parameters:
color - the main color

getPrimaryColor

public Color getPrimaryColor()
Returns the main color of the node.

Returns:
the main color.

setSecondaryColor

public void setSecondaryColor(Color color)
Sets the secondary color of the node. May be ignored by implementations.

Parameters:
color - the secondary color.

getSecondaryColor

public Color getSecondaryColor()
Returns the secondary color of the node.

Returns:
the secondary color

getModelNode

public Node getModelNode()
Returns the model node which is symbolized by this node.

Returns:
the model node

setModelNode

public void setModelNode(Node node)
Sets the model node which is symbolized by this node.

Parameters:
node - the model node

repaint

public void repaint()
Refreshes the graphics.



API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.