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.gestures | |
fr.lri.swingstates.gestures.rubine |
A package to add gesture recognition to interfaces.
|
Modifier and Type | Method and Description |
---|---|
static CPolyLine |
PieMenuApplet.pie(Canvas canvas,
java.awt.Color color,
double x,
double y,
double start,
double extent,
double radius)
Draws a pie shape.
|
Modifier and Type | Method and Description |
---|---|
CPolyLine |
CPolyLine.arcTo(double start,
double extent,
double rx,
double ry)
Adds an arc segment to this polyline.
|
CPolyLine |
CShape.asPolyLine() |
CPolyLine |
CPolyLine.close()
Closes this polyLine by drawing a straight line from the current point to
the starting point.
|
CPolyLine |
CPolyLine.curveTo(double ctrlx1,
double ctrly1,
double ctrlx2,
double ctrly2,
double xEnd,
double yEnd)
Adds a cubic curve segment to this polyline.
|
CPolyLine |
CPolyLine.curveTo(java.awt.geom.Point2D ptCtrl1,
java.awt.geom.Point2D ptCtrl2,
java.awt.geom.Point2D ptEnd)
Adds a cubic curve segment to this polyline.
|
CPolyLine |
CPolyLine.getArrow(double extent,
double sizeArrow)
Builds an arrow to end the current segment of this polyline.
|
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.
|
CPolyLine |
CPolyLine.lineTo(double x,
double y)
Adds a line segment to this polyline from the current point to point (x,
y).
|
CPolyLine |
CPolyLine.lineTo(java.awt.geom.Point2D pt)
Adds a line segment to this polyline from the current point to point pt.
|
CPolyLine |
CPolyLine.moveTo(double x,
double y)
Sets the current point of this polyLine to point (x, y).
|
CPolyLine |
CPolyLine.moveTo(java.awt.geom.Point2D pt)
Sets the current point of this polyLine to point pt.
|
CPolyLine |
Canvas.newPolyLine()
Create a new empty polyline and add it to the canvas.
|
CPolyLine |
Canvas.newPolyLine(double x,
double y)
Create a new polyline and add it to the canvas.
|
CPolyLine |
Canvas.newPolyLine(java.awt.geom.Point2D p)
Create a new polyline and add it to the canvas.
|
CPolyLine |
CPolyLine.quadTo(double ctrlx1,
double ctrly1,
double xEnd,
double yEnd)
Adds a quadric curve segment to this polyline.
|
CPolyLine |
CPolyLine.quadTo(java.awt.geom.Point2D ptCtrl,
java.awt.geom.Point2D ptEnd)
Adds a quadric curve segment to this polyline.
|
CPolyLine |
CPolyLine.removeLastSegment()
Removes the last segment of this polyline, if any.
|
CPolyLine |
CPolyLine.reset(double x,
double y)
Resets this polyline to the unique point (x, y).
|
CPolyLine |
CPolyLine.reset(java.awt.geom.Point2D pt)
Resets this polyline to the unique point pt.
|
Modifier and Type | Method and Description |
---|---|
CPolyLine |
Gesture.asPolyLine() |
static CPolyLine |
GestureUtils.asPolyLine(java.util.Vector<java.awt.geom.Point2D> points) |
CPolyLine |
AbstractClassifier.getRepresentative(java.lang.String className)
Returns a graphical representation for a given class of gestures.
|
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 |
---|---|
CPolyLine |
RubineClassifier.getRepresentative(java.lang.String className)
Returns a graphical representation for a given class of gestures.
|