|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A graphical system, consisting (at this level of abstraction) of nodes, lines and (while in demo mode) messages.
Method Summary | |
void |
addLine(Line line)
Adds a line to the system. |
void |
addMessage(Message message)
Adds a message to the system |
void |
addNode(Node node)
Adds a node to the system. |
void |
clear()
Removes all nodes and all lines from the system. |
void |
clearMessages()
Removes all messages from the system |
Collection |
getAllMessages()
Returns all messages in the system. |
Component |
getElementAt(double x,
double y)
Returns the 'topmost' component at a certain point. |
Rectangle2D |
getEnclosingRectangle()
Returns a rectangle that just encloses all components in the system. |
Component |
getMovableComponents()
Returns all movable components in the graphical system. |
Component |
getMovableComponentsInArea(Area area)
Returns all movable components that lie in the specified area. |
Project |
getProject()
Returns the project which includes this graphical system. |
void |
recalculateShapes()
Recalculates the shapes of all components in the system. |
void |
removeLine(Line line)
Removes a line from the system. |
void |
removeMessage(Message message)
Removes a message from the system |
void |
removeNode(Node node)
Removes a node from the system. |
void |
setChanged(boolean changed)
Sets whether the system was changed since the last save operation. |
void |
setProject(Project project)
Sets the project which includes this graphical system. |
boolean |
wasChanged()
Returns whether the graphical system was changed since the last save operation. |
Method Detail |
public void addNode(Node node)
node
- the nodepublic void removeNode(Node node)
node
- the nodepublic void addLine(Line line)
line
- the linepublic void removeLine(Line line)
line
- the linepublic void clear()
public Component getElementAt(double x, double y)
x
- the x coordinate of the pointy
- the y coordinate of the point
public Component getMovableComponentsInArea(Area area)
area
- the area
public Component getMovableComponents()
public Rectangle2D getEnclosingRectangle()
public void recalculateShapes()
public boolean wasChanged()
public void setChanged(boolean changed)
changed
- whether the system was changedpublic Project getProject()
public void setProject(Project project)
project
- the projectpublic void addMessage(Message message)
message
- the messagepublic void removeMessage(Message message)
message
- the messagepublic void clearMessages()
public Collection getAllMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |