Class lime.Polygon
Extends
lime.Sprite.
Defined in: polygon.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.Polygon(points)
Polygon shaped textured object
|
| Field Attributes | Field Name and Description |
|---|---|
|
Common name for polygon objects
|
|
- Fields borrowed from class lime.Sprite:
- fill_, getCanvasContextName_
- Fields borrowed from class lime.Node:
- customEvent_, eventHandlers_, inTree_, transitionsAdd_, transitionsClear_
| Method Attributes | Method Name and Description |
|---|---|
|
addPoint(coord)
Adds a point to current polygon points.
|
|
|
addPoints(points)
Adds points to current polygon points.
|
|
|
Returns array of points that define the polygon
|
|
|
getSize()
|
|
|
hitTest(e)
|
|
|
setPoints(points)
Sets points that define the polygon.
|
- Methods borrowed from class lime.Sprite:
- getFill, getStroke, setFill, setStroke
- Methods borrowed from class lime.Node:
- addDependency, addEventListener, addTransition, appendChild, calcRelativeQuality, clearTransition, createDomElement, getAutoResize, getBoundingBox, getChildAt, getChildIndex, getDeepestDomElement, getDeepestParentWithDom, getDirector, getDirty, getFrame, getHidden, getMask, getNumberOfChildren, getOpacity, getParent, getParentStack_, getPosition, getQuality, getRelativeQuality, getRotation, getScale, getScene, localToNode, localToParent, localToScreen, measureContents, needsDomElement, parentToLocal, releaseDependencies, removeAllChildren, removeChild, removeChildAt, removeDependency, removeDomElement, removeEventListener, runAction, screenToLocal, setAnchorPoint, setAutoResize, setChildIndex, setDirty, setHidden, setMask, setOpacity, setPosition, setQuality, setRenderer, setRotation, setScale, setSize, setupDependencies, update, updateDomElement, updateLayout, wasAddedToTree, wasRemovedFromTree
Class Detail
lime.Polygon(points)
Polygon shaped textured object
- Parameters:
-
{Array.
} points - Polygon points.
Field Detail
id
Common name for polygon objects
supportedRenderers
Method Detail
{lime.Polygon}
addPoint(coord)
Adds a point to current polygon points.
- Parameters:
- {goog.math.Coordinate} coord
- Point to add.
- Returns:
- {lime.Polygon} object itself.
{lime.Polygon}
addPoints(points)
Adds points to current polygon points. Also accepts floats.
- Parameters:
-
{Array.
} points - Polygon points.
- Returns:
- {lime.Polygon} object itself.
getAnchorPoint()
{Array.}
getPoints()
Returns array of points that define the polygon
- Returns:
- {Array.
} Array of polygon points.
getSize()
hitTest(e)
- Parameters:
- e
{lime.Polygon}
setPoints(points)
Sets points that define the polygon. Also accepts floats.
- Parameters:
-
{Array.
} points - Polygon points.
- Returns:
- {lime.Polygon} object itself.