IlvLegend

IlvObject
  |
  +--IlvEmptyView
       |
       +--IlvLegend
Category:
Graphics Framework component
JavaScript File:
IlvLegend.js
Description:
IlvLegend is a component that displays the list of layers that are available on the server and lets you turn the visibility of each layer on or off.

Constructor Summary
IlvLegend(left, top, width, height, view)

Method Summary
getBackgroundColor()
Returns the background color.
getFontSize()
Returns the font size of the text.
getTextColor()
Returns the color of the text.
getTitle()
Returns the title of the legend.
getTitleBackgroundColor()
Returns the background color of the title.
getTitleFontSize()
Returns the font size of the title text.
getTitleForegroundColor()
Returns the foreground color of the title.
getView()
Returns the view associated with this legend.
setBackgroundColor(color)
Changes the background color.
setFontSize(size)
Changes the font size of the text.
setTextColor(color)
Changes the color of the text.
setTitle(title)
Changes the title of the legend.
setTitleBackgroundColor(color)
Changes the background color of the title.
setTitleFontSize(size)
Changes the font size of the title text.
setTitleForegroundColor(color)
Changes the foreground color of the title.

Constructor Detail

IlvLegend

IlvLegend(left, top, width, height, view)
Creates an instance of IlvLegend.

Method Detail

getBackgroundColor

getBackgroundColor()
Returns the background color.

getFontSize

getFontSize()
Returns the font size of the text.

getTextColor

getTextColor()
Returns the color of the text.

getTitle

getTitle()
Returns the title of the legend.

getTitleBackgroundColor

getTitleBackgroundColor()
Returns the background color of the title.

getTitleFontSize

getTitleFontSize()
Returns the font size of the title text.

getTitleForegroundColor

getTitleForegroundColor()
Returns the foreground color of the title.

getView

getView()
Returns the view associated with this legend.

setBackgroundColor

setBackgroundColor(color)
Changes the background color.
Parameters:
color - The color.

setFontSize

setFontSize(size)
Changes the font size of the text.

setTextColor

setTextColor(color)
Changes the color of the text.
Parameters:
color - The color.

setTitle

setTitle(title)
Changes the title of the legend.
Parameters:
title - A string.

setTitleBackgroundColor

setTitleBackgroundColor(color)
Changes the background color of the title.
Parameters:
color - The color.

setTitleFontSize

setTitleFontSize(size)
Changes the font size of the title text.

setTitleForegroundColor

setTitleForegroundColor(color)
Changes the foreground color of the title.
Parameters:
color - The color.

Inherited Methods from IlvEmptyView
addSizeListener, childrenToHTML, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setChildrenBounds, setLocation, setSize, setStateInCookie, toHTML
Inherited Methods from IlvObject
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility