Class Index | File Index

Classes


Class Kinetic.Line


Extends Kinetic.Shape.

Defined in: kinetic.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Kinetic.Line(config)
Line constructor.
Method Summary
Method Attributes Method Name and Description
 
get line cap
 
get points array
 
setLineCap(lineCap)
set line cap.
 
setPoints(points)
set points array
Methods borrowed from class Kinetic.Shape:
applyLineJoin, clearData, fillStroke, getCanvas, getContext, getFill, getLineJoin, getStroke, getStrokeWidth, intersects, saveData, setDrawFunc, setFill, setLineJoin, setStroke, setStrokeWidth, stroke
Methods borrowed from class Kinetic.Node:
draggable, getAbsoluteAlpha, getAbsolutePosition, getAbsoluteTransform, getAbsoluteZIndex, getAlpha, getAttrs, getCenterOffset, getDetectionType, getDragBounds, getDragConstraint, getLayer, getLevel, getName, getParent, getPosition, getRotation, getRotationDeg, getScale, getStage, getTransform, getX, getY, getZIndex, hide, isDragging, isVisible, listen, move, moveDown, moveTo, moveToBottom, moveToTop, moveUp, off, on, rotate, rotateDeg, setAbsolutePosition, setAlpha, setAttrs, setCenterOffset, setDefaultAttrs, setDetectionType, setDragBounds, setDragConstraint, setPosition, setRotation, setRotationDeg, setScale, setX, setY, setZIndex, show, transitionTo
Class Detail
Kinetic.Line(config)
Line constructor.  Lines are defined by an array of points
Parameters:
{Object} config
Method Detail
getLineCap()
get line cap

getPoints()
get points array

setLineCap(lineCap)
set line cap. Can be butt, round, or square
Parameters:
{String} lineCap

setPoints(points)
set points array
Parameters:
{Array} points

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 19 2012 23:24:19 GMT+0200 (MESZ)