fr.umlv.unitex
Class GraphBox

java.lang.Object
  extended by fr.umlv.unitex.GenericGraphBox
      extended by fr.umlv.unitex.GraphBox

public class GraphBox
extends GenericGraphBox

This class describes a box of a graph.

Author:
Sébastien Paumier

Field Summary
 
Fields inherited from class fr.umlv.unitex.GenericGraphBox
FINAL, INITIAL, NORMAL
 
Constructor Summary
GraphBox(int x, int y, int type, GraphicalZone p)
          Constructs a new box
 
Method Summary
 void setContent(java.lang.String s)
          Sets the box content.
 void sortNodeLabel()
          Sorts the lines of the box.
 
Methods inherited from class fr.umlv.unitex.GenericGraphBox
addTransitionTo, draw, drawTransition, drawTransitions, getContent, getGraphClicked, getTransitions, getType, getWidth, getX_in, getX_out, getX, getX1, getY_in, getY_out, getY, getY1, hasTransitionToItself, isSelected, isSelectedByRectangle, maxLineWidth, onlyAddTransitionTo, removeTransitionTo, setSelected, setTransitions, setType, setX_in, setX_out, setX, setX1, setY_in, setY_out, setY, setY1, translate, translateToPosition, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphBox

public GraphBox(int x,
                int y,
                int type,
                GraphicalZone p)
Constructs a new box

Parameters:
x - X coordinate of the input point of the box
y - Y coordinate of the input point of the box
type - indicates if the box is initial, final or normal
p - component on which the box will be drawn
Method Detail

setContent

public void setContent(java.lang.String s)
Sets the box content.

Specified by:
setContent in class GenericGraphBox
Parameters:
s - the content

sortNodeLabel

public void sortNodeLabel()
Sorts the lines of the box. If there is an output, it is not taken in account.