| Package | Description | 
|---|---|
| fr.lri.swingstates.applets | |
| fr.lri.swingstates.canvas | 
 
A package to program new widgets starting from the SwingStates' canvas that offers advanced features for programming interaction (state machines, tags, etc.). 
 | 
| fr.lri.swingstates.canvas.transitions | |
| fr.lri.swingstates.sm | 
 
A package to program state machines. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
ColorTag  | 
class  | 
MenuItem  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
CAndTag
A  
CAndTag is a CTag corresponding to the set of shapes tagged 
 by a CTag t1 and a CTag t2. | 
class  | 
CExtensionalTag
A  
CExtensionalTag tag is a tag that can be explicitely attached to and detached from a shape, 
 i.e. | 
class  | 
CHierarchyTag
An intentional tag to manage the "hierarchy" of a given  
CShape. | 
class  | 
CIntentionalTag
 Intentional tags label graphical objects, i.e. 
 | 
class  | 
ClassTag  | 
class  | 
CNamedTag
A  
CNamedTag tag is a CExtensionalTag. | 
class  | 
COrTag
A  
COrTag is a tag corresponding to the set of shapes tagged by a tag t1 or a tag t2. | 
| Modifier and Type | Method and Description | 
|---|---|
CTag | 
CTag.action()
Calls  
action(CShape s) for every CShape s that has this tag. | 
CTag | 
CTag.and(CTag t)
Builds a tag corresponding to the set of shapes tagged by this tag and by t. 
 | 
CTag | 
CTag.and(java.lang.String t)
Builds a tag corresponding to the set of shapes tagged by this tag and by the  
SMNamedTag t. | 
CTag | 
CTag.or(CTag t)
Builds a tag corresponding to the set of shapes tagged by this tag or by t. 
 | 
CTag | 
CTag.or(java.lang.String t)
Builds a tag corresponding to the set of shapes tagged by this tag or by the  
SMNamedTag t. | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.List<CTag> | 
Canvas.getAllTags()  | 
| Modifier and Type | Method and Description | 
|---|---|
CElement | 
CShape.addTag(CTag t)
Adds a tag to this shape only if the tag is a
  
CExtensionalTag, does anything otherwise. | 
CTag | 
CTag.and(CTag t)
Builds a tag corresponding to the set of shapes tagged by this tag and by t. 
 | 
CShape | 
CTag.getFirstHavingTag(CTag t)
Returns the topmost CShape that has tag t. 
 | 
CShape | 
CShape.getFirstHavingTag(CTag t)
Returns the topmost CShape that has tag t. 
 | 
CShape | 
CElement.getFirstHavingTag(CTag t)
Returns the topmost CShape that has tag t. 
 | 
CShape | 
Canvas.getFirstHavingTag(CTag t)
Returns the topmost CShape that has tag t. 
 | 
boolean | 
CTag.hasTag(CTag t)
Returns true if every shape with this tag also has tag t. 
 | 
boolean | 
CShape.hasTag(CTag t)
Tests whether this shape has a given tag. 
 | 
boolean | 
CElement.hasTag(CTag t)
Returns true if every shape with this tag also has tag t. 
 | 
boolean | 
Canvas.hasTag(CTag t)
Returns true if every shape with this tag also has tag t. 
 | 
CTag | 
CTag.or(CTag t)
Builds a tag corresponding to the set of shapes tagged by this tag or by t. 
 | 
CShape | 
Canvas.pickShapeHavingTag(java.awt.geom.Point2D p,
                  CTag tag)
Returns the top most shape having a given tag at a given position. 
 | 
Canvas | 
Canvas.removeShapes(CTag shapes)
Removes a set of tagged shapes from the canvas. 
 | 
| Constructor and Description | 
|---|
CAndTag(CTag t1,
       CTag t2)
Builds a  
CAndTagtag corresponding to the set of shapes tagged by a tag t1 and a tag t2. | 
COrTag(CTag t1,
      CTag t2)
Builds a  
COrTagtag corresponding to the set of shapes tagged by a tag t1 or a tag t2. | 
| Modifier and Type | Method and Description | 
|---|---|
CTag | 
EventOnTag.getTag()
Returns the tag instance hold by the CShape on which the mouse
 event firing this transition has occurred. 
 | 
| Constructor and Description | 
|---|
ClickOnTag(CTag tag)
Builds a transition triggered by a mouse clicked event with any
 modifier and any button on a tagged CShape that loops on the current
 state. 
 | 
ClickOnTag(CTag tag,
          int button)
Builds a transition triggered by a mouse clicked event with any
 modifier on a tagged CShape that loops on the current state. 
 | 
ClickOnTag(CTag tag,
          int button,
          int modifier)
Builds a transition triggered by a mouse clicked event on a tagged
 CShape that loops on the current state. 
 | 
ClickOnTag(CTag tag,
          int button,
          int modifier,
          java.lang.String outState)
Builds a transition triggered by a mouse clicked event on a tagged
 CShape. 
 | 
ClickOnTag(CTag tag,
          int button,
          java.lang.String outState)
Builds a transition triggered by a mouse clicked event with any
 modifier on a tagged CShape. 
 | 
ClickOnTag(CTag tag,
          java.lang.String outState)
Builds a transition triggered by a mouse clicked event with any
 modifier and any button on a tagged CShape. 
 | 
DragOnTag(CTag tag)
Builds a transition triggered by a mouse dragged event with any
 modifier and any button on a tagged CShape that loops on the current
 state. 
 | 
DragOnTag(CTag tag,
         int button)
Builds a transition triggered by a mouse dragged event with any
 modifier on a shape that loops on the current state. 
 | 
DragOnTag(CTag tag,
         int button,
         int modifier)
Builds a transition triggered by a mouse dragged event on a shape
 that loops on the current state. 
 | 
DragOnTag(CTag tag,
         int button,
         int modifier,
         java.lang.String outState)
Builds a transition triggered by a mouse dragged event on a shape. 
 | 
DragOnTag(CTag tag,
         int button,
         java.lang.String outState)
Builds a transition triggered by a mouse dragged event with any
 modifier on a shape. 
 | 
DragOnTag(CTag tag,
         java.lang.String outState)
Builds a transition triggered by a mouse dragged event with any
 modifier and any button on a tagged CShape. 
 | 
EnterOnTag(CTag tag)
Builds a transition triggered when the cursor enters with any
 modifier in a tagged shape. 
 | 
EnterOnTag(CTag tag,
          int modifier)
Builds a transition triggered when the cursor enters in a tagged
 shape. 
 | 
EnterOnTag(CTag tag,
          int modifier,
          java.lang.String outState)
Builds a transition triggered when the cursor enters in a tagged
 shape. 
 | 
EnterOnTag(CTag tag,
          java.lang.String outState)
Builds a transition triggered when the cursor enters with any
 modifier in a tagged shape. 
 | 
EventOnTag(CTag tag,
          java.lang.Class eventClass)
Builds a transition with any modifier on a tagged shape that loops on
 the current state. 
 | 
EventOnTag(CTag tag,
          java.lang.Class eventClass,
          java.lang.String outState)
Builds a transition with any modifier on a tagged shape. 
 | 
EventOnTag(CTag tag,
          java.lang.String keyEvent)
Builds a transition with any modifier on a tagged shape that loops on
 the current state. 
 | 
EventOnTag(CTag tag,
          java.lang.String keyEvent,
          java.lang.String outState)
Builds a transition with any modifier on a tagged shape. 
 | 
LeaveOnTag(CTag tag)
Builds a transition triggered when the cursor leaves with any
 modifier a tagged shape. 
 | 
LeaveOnTag(CTag tag,
          int modifier)
Builds a transition triggered when the cursor leaves a tagged shape. 
 | 
LeaveOnTag(CTag tag,
          int modifier,
          java.lang.String outState)
Builds a transition triggered when the cursor leaves a tagged shape. 
 | 
LeaveOnTag(CTag tag,
          java.lang.String outState)
Builds a transition triggered when the cursor leaves with any
 modifier a tagged shape. 
 | 
MouseOnTag(CTag tag)
Builds a mouse transition with any modifier and any button on a
 tagged shape that loops on the current state. 
 | 
MouseOnTag(CTag tag,
          int button)
Builds a mouse transition with no modifier on tagged shape that loops
 on the current state. 
 | 
MouseOnTag(CTag tag,
          int button,
          int modifier)
Builds a mouse transition on tagged shape that loops on the current
 state. 
 | 
MouseOnTag(CTag tag,
          int button,
          int modifier,
          java.lang.String outState)
Builds a mouse transition on tagged shape. 
 | 
MouseOnTag(CTag tag,
          int button,
          java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape. 
 | 
MouseOnTag(CTag tag,
          java.lang.String outState)
Builds a mouse transition with any modifier and any button on a
 tagged shape. 
 | 
MoveOnTag(CTag tag)
Builds a transition triggered by a mouse moved event with any
 modifier on a tagged CShape that loops on the current state. 
 | 
MoveOnTag(CTag tag,
         int modifier)
Builds a transition triggered by a mouse moved event on a tagged
 CShape that loops on the current state. 
 | 
MoveOnTag(CTag tag,
         int modifier,
         java.lang.String outState)
Builds a transition triggered by a mouse moved event on a tagged
 CShape. 
 | 
MoveOnTag(CTag tag,
         java.lang.String outState)
Builds a transition triggered by a mouse moved event with any
 modifier on a tagged CShape. 
 | 
PressOnTag(CTag tag)
Builds a transition triggered by a mouse pressed event with any
 modifier and any button on a tagged CShape that loops on the current
 state. 
 | 
PressOnTag(CTag tag,
          int button)
Builds a transition triggered by a mouse pressed event with any
 modifier on a tagged shape that loops on the current state. 
 | 
PressOnTag(CTag tag,
          int button,
          int modifier)
Builds a transition triggered by a mouse pressed event on a tagged
 shape that loops on the current state. 
 | 
PressOnTag(CTag tag,
          int button,
          int modifier,
          java.lang.String outState)
Builds a transition triggered by a mouse pressed event on a tagged
 shape. 
 | 
PressOnTag(CTag tag,
          int button,
          java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any
 modifier on a tagged shape. 
 | 
PressOnTag(CTag tag,
          java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any
 modifier and any button on a tagged CShape. 
 | 
ReleaseOnTag(CTag tag)
Builds a transition triggered by a mouse released event with any
 modifier and any button on a tagged CShape that loops on the current
 state. 
 | 
ReleaseOnTag(CTag tag,
            int button)
Builds a transition triggered by a mouse released event with any
 modifier on a tagged CShape that loops on the current state. 
 | 
ReleaseOnTag(CTag tag,
            int button,
            int modifier)
Builds a transition triggered by a mouse released event on a tagged
 CShape that loops on the current state. 
 | 
ReleaseOnTag(CTag tag,
            int button,
            int modifier,
            java.lang.String outState)
Builds a transition triggered by a mouse released event on a tagged
 CShape. 
 | 
ReleaseOnTag(CTag tag,
            int button,
            java.lang.String outState)
Builds a transition triggered by a mouse released event with any
 modifier on a tagged CShape. 
 | 
ReleaseOnTag(CTag tag,
            java.lang.String outState)
Builds a transition triggered by a mouse released event with any
 modifier and any button on a tagged CShape. 
 | 
WheelOnTag(CTag tag)
Builds a transition triggered by a mouse wheel event with any
 modifier on a tagged CShape that loops on the current state. 
 | 
WheelOnTag(CTag tag,
          int modifier)
Builds a transition triggered by a mouse wheel event on a tagged
 CShape that loops on the current state. 
 | 
WheelOnTag(CTag tag,
          int modifier,
          java.lang.String outState)
Builds a transition triggered by a mouse wheel event on a tagged
 CShape. 
 | 
WheelOnTag(CTag tag,
          java.lang.String outState)
Builds a transition triggered by a mouse wheel event with any
 modifier on a tagged CShape. 
 | 
| Constructor and Description | 
|---|
EventOnTag(java.lang.Class<? extends CTag> tagClass,
          java.lang.Class eventClass)
Builds a transition with any modifier on a tagged shape that loops on
 the current state. 
 | 
EventOnTag(java.lang.Class<? extends CTag> tgClass,
          java.lang.Class eventClass,
          java.lang.String outState)
Builds a transition with any modifier on a tagged shape. 
 | 
EventOnTag(java.lang.Class<? extends CTag> tagClass,
          java.lang.String keyEvent)
Builds a transition with any modifier on a tagged shape that loops on
 the current state. 
 | 
EventOnTag(java.lang.Class<? extends CTag> tagClass,
          java.lang.String keyEvent,
          java.lang.String outState)
Builds a transition with any modifier on a tagged shape. 
 | 
| Constructor and Description | 
|---|
DnDStateMachine(int button,
               CTag tag)
Builds a state machine to manage press-drag-release
 interactions that are inited on a  
CShape
 which has a given tag. |