IlvZoomTool

IlvObject
  |
  +--IlvEmptyView
       |
       +--IlvZoomTool
Category:
Graphics Framework component
JavaScript File:
IlvZoomTool.js
Description:
The IlvZoomTool component displays several buttons vertically or horizontally, each button corresponding to a zoom level.

Constructor Summary
IlvZoomTool(left, top, width, height, nbbuttons, view, plusminus)

Method Summary
getMessagePanel()
Returns the message panel where the messages will be displayed.
getOrientation()
Returns the orientation of the tool.
getView()
Returns the main view associated with this component.
setMessagePanel(panel)
Sets the message panel where the message will be displayed.
setOrientation(orientation)
Sets the orientation of the tool.

Constructor Detail

IlvZoomTool

IlvZoomTool(left, top, width, height, nbbuttons, view, plusminus)
Creates an instance of IlvZoomTool.

Fields

currentImage
The image for the button showing the current zoom level.

downImage
The image for zooming in when the tool is vertical.

leftImage
The image for zooming out when the tool is horizontal.

minusImage
The image for the minus button.

plusImage
The image for the plus button.

rightImage
The image for zooming in when the tool is horizontal.

rolloverCurrentImage
The rollover image for the button showing the current zoom level.

rolloverDownImage
The rollover image for zooming in when the tool is vertical.

rolloverLeftImage
The rollover image for zooming out when the tool is horizontal

rolloverMinusImage
The rollover image for the minus button.

rolloverPlusImage
The rollover image for the plus button.

rolloverRightImage
The rollover image for zooming in when the tool is horizontal.

rolloverUpImage
The rollover image for zooming out when the tool is vertical.

upImage
The image for zooming out when the tool is vertical.

Method Detail

getMessagePanel

getMessagePanel()
Returns the message panel where the messages will be displayed.
Returns:
An instance of IlvHTMLPanel or null.

getOrientation

getOrientation()
Returns the orientation of the tool.

getView

getView()
Returns the main view associated with this component.

setMessagePanel

setMessagePanel(panel)
Sets the message panel where the message will be displayed.
Parameters:
ilvHTMLPanel - An instance of IlvHTMLPanel.

setOrientation

setOrientation(orientation)
Sets the orientation of the tool.
Parameters:
orientation - The orientation, which can be 'Vertical' or 'Horizontal'.

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