Class Index | File Index

Classes


Class Kinetic.Text


Extends Kinetic.Shape.

Defined in: kinetic.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Kinetic.Text(config)
Text constructor
Method Summary
Method Attributes Method Name and Description
 
get horizontal align
 
get font family
 
get font size
 
get font style
 
get padding
 
get text
 
get text fill color
 
get text height in pixels
 
get text size in pixels
 
get text stroke color
 
get text stroke width
 
get text width in pixels
 
get vertical align
 
setAlign(align)
set horizontal align of text
 
setFontFamily(fontFamily)
set font family
 
setFontSize(fontSize)
set font size
 
setFontStyle(fontStyle)
set font style.
 
setPadding(padding)
set padding
 
setText(text)
set text
 
setTextFill(textFill)
set text fill color
 
setTextStroke(textStroke)
set text stroke color
 
setTextStrokeWidth(textStrokeWidth)
set text stroke width
 
setVerticalAlign(verticalAlign)
set vertical align of text
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.Text(config)
Text constructor
Parameters:
{Object} config
Method Detail
getAlign()
get horizontal align

getFontFamily()
get font family

getFontSize()
get font size

getFontStyle()
get font style

getPadding()
get padding

getText()
get text

getTextFill()
get text fill color

getTextHeight()
get text height in pixels

getTextSize()
get text size in pixels

getTextStroke()
get text stroke color

getTextStrokeWidth()
get text stroke width

getTextWidth()
get text width in pixels

getVerticalAlign()
get vertical align

setAlign(align)
set horizontal align of text
Parameters:
{String} align
align can be 'left', 'center', or 'right'

setFontFamily(fontFamily)
set font family
Parameters:
{String} fontFamily

setFontSize(fontSize)
set font size
Parameters:
{int} fontSize

setFontStyle(fontStyle)
set font style. Can be "normal", "italic", or "bold". "normal" is the default.
Parameters:
{String} fontStyle

setPadding(padding)
set padding
Parameters:
{int} padding

setText(text)
set text
Parameters:
{String} text

setTextFill(textFill)
set text fill color
Parameters:
{String} textFill

setTextStroke(textStroke)
set text stroke color
Parameters:
{String} textStroke

setTextStrokeWidth(textStrokeWidth)
set text stroke width
Parameters:
{int} textStrokeWidth

setVerticalAlign(verticalAlign)
set vertical align of text
Parameters:
{String} verticalAlign
verticalAlign can be "top", "middle", or "bottom"

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