Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.Label

    Object
       |
       +--draw2d.Figure
             |
             +--draw2d.Label

class draw2d.Label
extends draw2d.Figure

Defined in Label.js
Version: 0.9.14
Author: Andreas Herz

Constructor Summary
`draw2d.Label ( <String> msg)`

Method Summary
`int` | `getHeight()`
`String` | `getText()` Returns the current text of the label.
`int` | `getWidth()`
`boolean` | `isResizeable()` A Label is not resizeable.
`void` | `setAlign( <String> align)`
`void` | `setBackgroundColor( <draw2d.Color> color)` Set the new background color of the label.
`void` | `setColor( <draw2d.Color> color)`
`void` | `setFontSize( <int> size)` Set the new font size in [pt].
`void` | `setStyledText( <String> text)`
`void` | `setText( <String> text )`
`void` | `setWordwrap( flag)`

Methods inherited from class draw2d.Figure
`getProperties, getProperty, setProperty, getId, getWorkflow, getParent, getZOrder, setZOrder, hasFixedPosition, getMinWidth, getMinHeight, setBorder, getContextMenu, onDoubleClick, onMouseEnter, onMouseLeave, onDragstart, setCanDrag, setAlpha, setDimension, setPosition, setResizeable, isSelectable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getY, getX, getAbsoluteY, getAbsoluteX, onKeyDown, getPosition, isOver, attachMoveListener, detachMoveListener`

Constructor Detail

### draw2d.Label

    draw2d.Label( <String> msg)

Parameters:

`msg` - The text of the label object

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getHeight

    int getHeight()

Returns:

the calculated height of the label

### getText

    String getText()

Returns the current text of the label.

Returns:

the current display text of the label

### getWidth

    int getWidth()

Returns:

the calculated width of the label

### isResizeable

    boolean isResizeable()

A Label is not resizeable. In this case this method returns always false.

Returns:

Returns always false in the case of a Label.

### setAlign

    void setAlign( <String> align)

Parameters:

`align` - The new align of the label ["left", "center", "right"]

### setBackgroundColor

    void setBackgroundColor( <draw2d.Color> color)

Set the new background color of the label.

Parameters:

`color` - The new background color.

### setColor

    void setColor( <draw2d.Color> color)

Parameters:

`color` - The new font color of the label.

### setFontSize

    void setFontSize( <int> size)

Set the new font size in [pt].

Parameters:

`size` - The new font size in `pt`

### setStyledText

    void setStyledText( <String> text)

Parameters:

`text` - The new HTML formated text for the label.

### setText

    void setText( <String> text )

Parameters:

`text` - The new text for the label.

### setWordwrap

    void setWordwrap( flag)

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008