| adapt ( ) |
|
Use this method to adapt a group of of figures to a group.
|
| addElement ( ) |
|
Use this method to add a new element.
|
| addGroup ( ) |
|
Use this method to add a new element.
|
| contains ( ) |
|
Use this to return a specific tangent on the curve. It returns true if the point passed as a parameter is inside the group.
|
| countElements ( ) |
|
Use this method to count the number of elements in the group.
|
| draw ( ) |
|
Use this method to draw the group. This will draw each element at a time, without worrying about intersections or holes. This is the main difference between having a shape with multiple paths and having a group with multiple shapes.
|
| getArea ( ) |
|
Use this method to get the area of an element.
|
| getBounds ( ) |
|
Use this method to get the bounding box of the element.
|
| getCenter ( ) |
|
Use this method to get the center point of the element.
|
| getCenteringTransf ( ) |
|
Use this method to get the transformation matrix in order to fit and center the element on the canvas. Scaling and translation damping parameters are available, in order to create animations.
|
| getCentroid ( ) |
|
Use this method to get the centroid of the element.
|
| getCurveLength ( ) |
|
Use this to return the points on the curve. It returns the points in the way of an array of RPoint.
|
| getCurveLengths ( ) |
|
Use this to return the points on the curve. It returns the points in the way of an array of RPoint.
|
| getHandles ( ) |
|
Use this to return the points of the group. It returns the points in the way of an array of RPoint.
|
| getHeight ( ) |
|
Use this method to get the height of the element.
|
| getPoints ( ) |
|
Use this to return the points of the group. It returns the points in the way of an array of RPoint.
|
| getPointsInPaths ( ) |
|
Use this to return the points of each path of the group. It returns the points in the way of an array of array of RPoint.
|
| getTangents ( ) |
|
Use this to return the points of the group. It returns the points in the way of an array of RPoint.
|
| getType ( ) |
|
Use this method to get the type of element this is.
|
| getWidth ( ) |
|
Use this method to get the width of the element.
|
| getX ( ) |
|
Use this method to get the x (left side position) of the element.
|
| getY ( ) |
|
Use this method to get the y (left side position) of the element.
|
| insertHandleInPaths ( ) |
|
Use this to insert a split point into each command of the group.
|
| isIn ( ) |
|
Use this method to know if the shape is inside a graphics object. This might be useful if we want to delete objects that go offscreen.
|
| removeElement ( ) |
|
Use this method to remove an element.
|
| rotate ( ) |
|
Use this to apply a rotation to the point.
|
| scale ( ) |
|
Use this to scale the point.
|
| toMeshGroup ( ) |
|
Use this method to get a new group whose elements are the corresponding Meshes of the elemnts in the current group. This can be used for increasing performance in exchange of losing abstraction.
|
| toPolygonGroup ( ) |
|
Use this method to get a new group whose elements are the corresponding Polygons of the elemnts in the current group. At this moment there is no implementation for transforming aMesh to a Polygon so applying this method to groups holding Mesh elements will generate an exception.
|
| toShapeGroup ( ) |
|
Use this method to get a new group whose elements are all the corresponding Shapes of the elemnts in the current group. At this moment there is no implementation for transforming a Mesh or a Polygon to a Shape so applying this method to groups holding Mesh or Polygon elements will generate an exception.
|
| transform ( ) |
|
Transform the geometric object to fit in a rectangle defined by the parameters passed.
|
| translate ( ) |
|
Use this to apply a translation to the point.
|