fr.umlv.unitex
Class FstGraphBox

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

public class FstGraphBox
extends GenericGraphBox

This class describes a box of a sentence automaton.

Author:
Sébastien Paumier

Field Summary
 
Fields inherited from class fr.umlv.unitex.GenericGraphBox
FINAL, INITIAL, NORMAL
 
Constructor Summary
FstGraphBox(int x, int y, int type, FstGraphicalZone p)
          Constructs a new box
 
Method Summary
 void setContent(java.lang.String s)
          Sets the content 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

FstGraphBox

public FstGraphBox(int x,
                   int y,
                   int type,
                   FstGraphicalZone 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 content of the box

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