| 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.events | 
 
A package containing all the SwingStates events. 
 | 
| fr.lri.swingstates.gestures | |
| fr.lri.swingstates.sm | 
 
A package to program state machines. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static CShape | 
PieMenuApplet.pieMenu(int radius,
       Canvas c)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
CDynamicWidget
 A widget shape for use with an  
Canvas. | 
class  | 
CEllipse
An ellipse shape for use with a  
Canvas. | 
class  | 
CImage
An image shape for use with a  
Canvas. | 
class  | 
CPolyLine
An arbitrary shape for use with a  
Canvas. | 
class  | 
CRectangle
A rectangle shape for use with a  
Canvas. | 
class  | 
CRectangularShape
An abstract rectangular shape for use with an  
Canvas. | 
class  | 
CSegment
A segment for use with an  
Canvas. | 
class  | 
CText
A text shape for use with an  
Canvas. | 
class  | 
CWidget
 A widget shape for use with an  
Canvas. | 
| Modifier and Type | Method and Description | 
|---|---|
CShape | 
CShape.addChild(CShape c)
Adds a child to this shape. 
 | 
CShape | 
CShape.addTo(Canvas c)
Adds this shape to a canvas. 
 | 
CShape | 
CTag.contains(double x,
        double y)
Returns the topmost CShape containing the point (x, y). 
 | 
CShape | 
CShape.contains(double x,
        double y)
Tests whether a point (x, y) is inside this shape. 
 | 
CShape | 
CElement.contains(double x,
        double y)
Returns the topmost CShape containing the point (x, y). 
 | 
CShape | 
Canvas.contains(double x,
        double y)
Returns the topmost CShape containing the point (x, y). 
 | 
CShape | 
CTag.contains(double x,
        double y,
        double w,
        double h)
Returns the topmost CShape containing a given rectangle. 
 | 
CShape | 
CShape.contains(double x,
        double y,
        double w,
        double h)
Tests whether a rectangle R is inside this shape. 
 | 
CShape | 
CElement.contains(double x,
        double y,
        double w,
        double h)
Returns the topmost CShape containing a given rectangle R. 
 | 
CShape | 
Canvas.contains(double x,
        double y,
        double w,
        double h)
Returns the topmost CShape containing a given rectangle R. 
 | 
CShape | 
CTag.contains(java.awt.geom.Point2D p)
Returns the topmost CShape containing the point p. 
 | 
CShape | 
CShape.contains(java.awt.geom.Point2D p)
Tests whether a point p is inside this shape (ignores clipping shape). 
 | 
CShape | 
CElement.contains(java.awt.geom.Point2D p)
Returns the topmost CShape containing the point p. 
 | 
CShape | 
Canvas.contains(java.awt.geom.Point2D p)
Returns the topmost CShape containing the point p. 
 | 
CShape | 
CTag.contains(java.awt.Rectangle r)
Returns the topmost CShape containing a given rectangle. 
 | 
CShape | 
CShape.contains(java.awt.Rectangle r)
Tests whether a rectangle R is inside this shape. 
 | 
CShape | 
CElement.contains(java.awt.Rectangle r)
Returns the topmost CShape containing a given rectangle. 
 | 
CShape | 
Canvas.contains(java.awt.Rectangle r)
Returns the topmost CShape containing a given rectangle. 
 | 
CShape | 
CWidget.copyTo(CShape sms)
Copies this widget into a destination widget. 
 | 
CShape | 
CText.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CShape.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CPolyLine.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CImage.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CWidget.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CText.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CShape.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CSegment.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CRectangle.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CPolyLine.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CImage.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CEllipse.duplicate()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CShape.duplicateWithTags()
Creates a new copy of this shape and returns it. 
 | 
CShape | 
CTag.firstShape()
Returns the first shape that has this tag. 
 | 
CShape | 
CShape.firstShape()
Returns the first shape contained in this  
CElement. | 
CShape | 
CElement.firstShape()
Returns the first shape contained in this  
CElement. | 
CShape | 
Canvas.firstShape()
Returns the first shape contained in this  
CElement. | 
CShape | 
CPolyLine.fixReferenceShapeToCurrent()
This method can be useful before changing the parent of a shape while keeping 
 its transformation that can be inherited from its current parent. 
 | 
CShape | 
CShape.getChild(int i)
Returns the ith child of this shape. 
 | 
CShape | 
CShape.getClip()
Returns the shape that clips this shape, if any. 
 | 
CShape | 
CTag.getFirstAntialiasedShape()
Returns the first antialiased CShape contained in this  
CElement. | 
CShape | 
CShape.getFirstAntialiasedShape()
Returns the first antialiased CShape contained in this  
CElement. | 
CShape | 
CElement.getFirstAntialiasedShape()
Returns the first antialiased CShape contained in this  
CElement. | 
CShape | 
Canvas.getFirstAntialiasedShape()
Returns the first antialiased CShape contained in this  
CElement. | 
CShape | 
CTag.getFirstFilledShape()
Returns the first CShape contained in this  
CElement and that is filled. | 
CShape | 
CShape.getFirstFilledShape()
Returns the first CShape contained in this  
CElement and that is filled. | 
CShape | 
CElement.getFirstFilledShape()
Returns the first CShape contained in this  
CElement and that is filled. | 
CShape | 
Canvas.getFirstFilledShape()
Returns the first CShape contained in this  
CElement and that is filled. | 
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. 
 | 
CShape | 
CTag.getFirstOutlinedShape()
Returns the first CShape contained in this  
CElement and that is outlined. | 
CShape | 
CShape.getFirstOutlinedShape()
Returns the first CShape contained in this  
CElement and that is outlined. | 
CShape | 
CElement.getFirstOutlinedShape()
Returns the first CShape contained in this  
CElement and that is outlined. | 
CShape | 
Canvas.getFirstOutlinedShape()
Returns the first CShape contained in this  
CElement and that is outlined. | 
CShape | 
CShape.getGhost()
Builds the 'ghost' of this shape if it does not already exists. 
 | 
CShape | 
CShape.getParent()
Returns the parent of this shape, if any. 
 | 
CShape | 
CTag.getTopLeastShape()  | 
CShape | 
CTag.getTopMostShape()  | 
CShape | 
CTag.intersects(CShape s)
Returns the topmost  
CShape that intersects the given CShape s. | 
CShape | 
CShape.intersects(CShape s)
Tests whether a  
CShape s intersects this shape. | 
CShape | 
CElement.intersects(CShape s)
Returns the topmost  
CShape that intersects the given CShape s. | 
CShape | 
Canvas.intersects(CShape s)
Returns the topmost  
CShape that intersects the given CShape s. | 
CShape | 
CTag.isOnOutline(java.awt.geom.Point2D p)
Returns the topmost CShape whose outline contains the point p. 
 | 
CShape | 
CShape.isOnOutline(java.awt.geom.Point2D p)
Tests whether a point p is on this shape's outline. 
 | 
CShape | 
CElement.isOnOutline(java.awt.geom.Point2D p)
Returns the topmost CShape whose outline contains the point p. 
 | 
CShape | 
Canvas.isOnOutline(java.awt.geom.Point2D p)
Returns the topmost CShape whose outline contains the point p. 
 | 
CShape | 
CTag.nextShape()  | 
CShape | 
COrTag.nextShape() | 
CShape | 
CAndTag.nextShape() | 
CShape | 
Canvas.pick(java.awt.geom.Point2D p)
Returns the topmost shape at a given position. 
 | 
CShape | 
CShape.pick(java.awt.geom.Point2D p,
    int tolerance)
Tests whether a point p is inside this shape. 
 | 
CShape | 
Canvas.pickShapeHavingTag(java.awt.geom.Point2D p,
                  CTag tag)
Returns the top most shape having a given tag at a given position. 
 | 
CShape | 
Canvas.pickShapeHavingTag(java.awt.geom.Point2D p,
                  java.lang.String tag)
Returns the top most shape having a given named tag at a given position. 
 | 
CShape | 
CShape.remove()
Removes this shape from its canvas. 
 | 
CShape | 
CShape.removeChild(CShape s)
Removes a child from this shape. 
 | 
CShape | 
CShape.removeChild(int i)
Removes the ith child of this shape and returns it. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.LinkedList<CShape> | 
CTag.getAntialiasedShapes()
Returns the list of CShape that have this tag and that are antialiased. 
 | 
java.util.LinkedList<CShape> | 
CShape.getAntialiasedShapes()
Returns the list of CShape that have this tag and that are antialiased. 
 | 
java.util.LinkedList<CShape> | 
CElement.getAntialiasedShapes()
Returns the list of CShape that have this tag and that are antialiased. 
 | 
java.util.LinkedList<CShape> | 
Canvas.getAntialiasedShapes()
Returns the list of CShape that have this tag and that are antialiased. 
 | 
java.util.LinkedList<CShape> | 
CShape.getChildren()
Returns the children of this shape as a linked list. 
 | 
java.util.List<CShape> | 
Canvas.getDisplayList()  | 
java.util.LinkedList<CShape> | 
CTag.getFilledShapes()
Returns the list of CShape that have this tag and that are filled. 
 | 
java.util.LinkedList<CShape> | 
CShape.getFilledShapes()
Returns the list of CShape that have this tag and that are filled. 
 | 
java.util.LinkedList<CShape> | 
CElement.getFilledShapes()
Returns the list of CShape that have this tag and that are filled. 
 | 
java.util.LinkedList<CShape> | 
Canvas.getFilledShapes()
Returns the list of CShape that have this tag and that are filled. 
 | 
java.util.LinkedList<CShape> | 
CTag.getOutlinedShapes()  | 
java.util.LinkedList<CShape> | 
CShape.getOutlinedShapes()
Returns the list of CShape that have this tag and that are outlined. 
 | 
java.util.LinkedList<CShape> | 
CElement.getOutlinedShapes()
Returns the list of CShape that have this tag and that are outlined. 
 | 
java.util.LinkedList<CShape> | 
Canvas.getOutlinedShapes()
Returns the list of CShape that have this tag and that are outlined. 
 | 
java.util.LinkedList<CShape> | 
Canvas.pickAll(java.awt.geom.Point2D p)
Returns a list containing all the shapes at a given position. 
 | 
java.util.LinkedList<CShape> | 
CShape.removeAllChildren()
Removes all the children of this shape and returns them. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
CTag.action(CShape s)
Method called by  
action(). | 
CShape | 
CShape.addChild(CShape c)
Adds a child to this shape. 
 | 
void | 
CExtensionalTag.added(CShape s)
Method called when this tag is added to an CShape. 
 | 
Canvas | 
Canvas.addShape(CShape sms)
Adds a shape to the canvas. 
 | 
CExtensionalTag | 
CExtensionalTag.addTo(CShape s)
Adds the shape s to the collection containing all the shapes that have this tag. 
 | 
boolean | 
CStateMachine.controls(CShape source)  | 
CShape | 
CWidget.copyTo(CShape sms)
Copies this widget into a destination widget. 
 | 
CShape | 
CText.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CShape.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CPolyLine.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
CShape | 
CImage.copyTo(CShape sms)
Copies this shape into a destination shape. 
 | 
boolean | 
ClassTag.criterion(CShape s)
The method to override to specify the property a shape must check to be tagged by this tag. 
 | 
abstract boolean | 
CIntentionalTag.criterion(CShape s)
The method to override to specify the property a shape must check to be tagged by this tag. 
 | 
boolean | 
CHierarchyTag.criterion(CShape s)
The method to override to specify the property a shape must check to be tagged by this tag. 
 | 
CPolyLine | 
CTag.getIntersection(CShape s)
Tests whether a  
CShape s intersects this CElement. | 
CPolyLine | 
CShape.getIntersection(CShape s)
Computes the shape corresponding to the intersection of this shape with
 another given shape. 
 | 
CPolyLine | 
CElement.getIntersection(CShape s)
Tests whether a  
CShape s intersects this CElement. | 
CPolyLine | 
Canvas.getIntersection(CShape s)
Tests whether a  
CShape s intersects this
 CElement. | 
CPolyLine | 
CShape.getSubtraction(CShape s)
Computes the shape corresponding to the subtraction of this shape by
 another given shape. 
 | 
int | 
CShape.indexOf(CShape child)
Returns the index of  
child. | 
CShape | 
CTag.intersects(CShape s)
Returns the topmost  
CShape that intersects the given CShape s. | 
CShape | 
CShape.intersects(CShape s)
Tests whether a  
CShape s intersects this shape. | 
CShape | 
CElement.intersects(CShape s)
Returns the topmost  
CShape that intersects the given CShape s. | 
CShape | 
Canvas.intersects(CShape s)
Returns the topmost  
CShape that intersects the given CShape s. | 
boolean | 
CShape.isAbove(CShape before)
Tests if this shape is above another shape in the display list. 
 | 
boolean | 
CShape.isBelow(CShape after)
Tests if this shape is before another shape in the display list. 
 | 
CElement | 
CShape.pickStyle(CShape picked)
Copies style attributes of a given CShape on this CShape. 
 | 
CShape | 
CShape.removeChild(CShape s)
Removes a child from this shape. 
 | 
void | 
CExtensionalTag.removed(CShape s)
Method called when this tag is removed from an CShape. 
 | 
CExtensionalTag | 
CExtensionalTag.removeFrom(CShape s)
Removes the shape s from the collection containing all the shapes that have this tag. 
 | 
Canvas | 
Canvas.removeShape(CShape shape)
Removes a shape from the canvas. 
 | 
CElement | 
CTag.setClip(CShape clip)
Calls  
setClip(CShape clip) for every CShape contained in this CElement. | 
CElement | 
CShape.setClip(CShape clip)
Sets the clipping shape of this shape. 
 | 
CElement | 
CElement.setClip(CShape clip)
Calls  
setClip(CShape clip) for every CShape contained in this CElement. | 
CElement | 
Canvas.setClip(CShape clip)
Sets the clip for every CShape drawn in this canvas (global rendering
 hints). 
 | 
CElement | 
CTag.setParent(CShape parent)
Calls  
setParent(CShape parent) for every CShape contained in this CElement. | 
CElement | 
CShape.setParent(CShape p)
Sets the parent of this shape (only if the parent and this ahape are in
 the same canvas). 
 | 
CElement | 
CElement.setParent(CShape parent)
Calls  
setParent(CShape parent) for every CShape contained in this CElement. | 
CElement | 
Canvas.setParent(CShape parent)
Calls  
setParent(CShape parent) for every CShape contained in this CElement. | 
boolean | 
CTag.tagsShape(CShape s)
Tests if the shape s is tagged by this tag. 
 | 
| Constructor and Description | 
|---|
CHierarchyTag(CShape s)
Builds a  
CHierarchyTag with the set composed of s and every shape having s as an ancestor.. | 
| Modifier and Type | Method and Description | 
|---|---|
CShape | 
MouseOnTag.getShape()
Returns the CShape on which the event firing this transition has
 occured. 
 | 
CShape | 
MouseOnShape.getShape()
Returns the CShape on which the event firing this transition has
 occured. 
 | 
CShape | 
EventOnShape.getShape()
Returns the CShape on which the event firing this transition has
 occured. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CShape | 
PickerCMouseWheelEvent.getPicked()  | 
CShape | 
PickerCMouseEvent.getPicked()  | 
CShape | 
VirtualCanvasEvent.getShape()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
PickerCMouseWheelEvent.setPicked(CShape picked)  | 
void | 
PickerCMouseEvent.setPicked(CShape picked)  | 
void | 
VirtualCanvasEvent.setShape(CShape shape)
Sets the picked shape for this event. 
 | 
| Constructor and Description | 
|---|
PickerCMouseEvent(java.awt.Component source,
                 CShape picked,
                 Picker picker,
                 int id,
                 long when,
                 int modifiers,
                 int x,
                 int y,
                 int clickCount,
                 boolean popupTrigger)
Builds a  
PickerCMouseEvent. | 
PickerCMouseEvent(java.awt.Component source,
                 CShape picked,
                 Picker picker,
                 int id,
                 long when,
                 int modifiers,
                 int x,
                 int y,
                 int clickCount,
                 boolean popupTrigger,
                 int button)
Builds a  
PickerCMouseEvent. | 
PickerCMouseWheelEvent(java.awt.Component source,
                      CShape picked,
                      Picker picker,
                      int id,
                      long when,
                      int modifiers,
                      int x,
                      int y,
                      int clickCount,
                      boolean popupTrigger,
                      int scrollType,
                      int scrollAmount,
                      int wheelRotation)
Builds a  
PickerCEvent. | 
VirtualCanvasEvent(CShape shape,
                  java.awt.geom.Point2D pt)
Builds a  
VirtualCanvasEvent. | 
VirtualCanvasEvent(java.lang.String n,
                  CShape shape,
                  java.awt.geom.Point2D pt)
Builds a  
VirtualCanvasEvent. | 
| Modifier and Type | Method and Description | 
|---|---|
static CShape | 
GestureUtils.showArrowPreview(Canvas canvas,
                CPolyLine polyline,
                int x,
                int y,
                int sizeBoundingBox,
                int sizeSpan,
                double sizeStartPoint)
Displays a polyline of a gesture example in a bounding box in a
 SwingStates  
Canvas. | 
static CShape | 
GestureUtils.showPreview(Canvas canvas,
           CPolyLine polyline,
           int x,
           int y,
           int sizeBoundingBox,
           int sizeSpan,
           double sizeStartPoint)
Displays a polyline of a gesture example in a bounding box in a
 SwingStates  
Canvas. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
DnDStateMachine.dragAction(CShape shape,
          double previousX,
          double previousY,
          double currentX,
          double currentY)
The method to override in subclasses to specify
 action to do when a drag event occurs. 
 | 
void | 
DnDStateMachine.pressAction(CShape shape,
           double currentX,
           double currentY)
The method to override in subclasses to specify
 action to do when a press event on a  
CShape
 occurs. | 
void | 
DnDStateMachine.releaseAction(CShape shape,
             double previousX,
             double previousY,
             double currentX,
             double currentY)
The method to override in subclasses to specify
 action to do when a release event occurs. 
 |