Module:libextPackage:wrap.ext.utilParent:ObjectCopyright (c) 2007, 2008 Point5U, LLC
Milescript - ExtJS Wrapper Library: Project Home | Documentation

wrap.ext.util.TextMetrics

Inheritance : Object

Constructors

Signature
public TextMetrics()

Methods

NameSignature
bindvoid bind(String el)
bindvoid bind(HTMLElement el)
createInstanceTextMetrics createInstance(String el)
createInstanceTextMetrics createInstance(HTMLElement el)
createInstanceTextMetrics createInstance(String el, int fixedWidth)
createInstanceTextMetrics createInstance(HTMLElement el, int fixedWidth)
getHeightint getHeight(String text)
getSizeDimension getSize(String text)
getWidthint getWidth(String text)
measureDimension measure(HTMLElement el, String text)
measureDimension measure(String el, String text)
measureDimension measure(String el, String text, int fixedWidth)
measureDimension measure(HTMLElement el, String text, int fixedWidth)
setFixedWidthvoid setFixedWidth(int width)

Constructors

public TextMetrics()


Methods

bind

void bind(String el)

Parameters

NameTypeDescription
elcore.String

bind

void bind(HTMLElement el)

Parameters

NameTypeDescription
elorg.milescript.dom.HTMLElement

createInstance

TextMetrics createInstance(String el)

Returns
wrap.ext.util.TextMetrics

Parameters

NameTypeDescription
elcore.String

createInstance

TextMetrics createInstance(HTMLElement el)

Returns
wrap.ext.util.TextMetrics

Parameters

NameTypeDescription
elorg.milescript.dom.HTMLElement

createInstance

TextMetrics createInstance(String el, int fixedWidth)

Returns
wrap.ext.util.TextMetrics

Parameters

NameTypeDescription
elcore.String
fixedWidthcore.int

createInstance

TextMetrics createInstance(HTMLElement el, int fixedWidth)

Returns
wrap.ext.util.TextMetrics

Parameters

NameTypeDescription
elorg.milescript.dom.HTMLElement
fixedWidthcore.int

getHeight

int getHeight(String text)

Returns
core.int

Parameters

NameTypeDescription
textcore.String

getSize

Dimension getSize(String text)

Returns
org.milescript.types.Dimension

Parameters

NameTypeDescription
textcore.String

getWidth

int getWidth(String text)

Returns
core.int

Parameters

NameTypeDescription
textcore.String

measure

Dimension measure(HTMLElement el, String text)

Returns
org.milescript.types.Dimension

Parameters

NameTypeDescription
elorg.milescript.dom.HTMLElement
textcore.String

measure

Dimension measure(String el, String text)

Returns
org.milescript.types.Dimension

Parameters

NameTypeDescription
elcore.String
textcore.String

measure

Dimension measure(String el, String text, int fixedWidth)

Returns
org.milescript.types.Dimension

Parameters

NameTypeDescription
elcore.String
textcore.String
fixedWidthcore.int

measure

Dimension measure(HTMLElement el, String text, int fixedWidth)

Returns
org.milescript.types.Dimension

Parameters

NameTypeDescription
elorg.milescript.dom.HTMLElement
textcore.String
fixedWidthcore.int

setFixedWidth

void setFixedWidth(int width)

Parameters

NameTypeDescription
widthcore.int

Module:libextPackage:wrap.ext.utilParent:ObjectCopyright (c) 2007, 2008 Point5U, LLC
Milescript - ExtJS Wrapper Library: Project Home | Documentation