ilog.views.maps.beans
Class IlvFeatureSelectorPanel.CheckBoxIcon

java.lang.Object
  extended by ilog.views.maps.beans.IlvFeatureSelectorPanel.CheckBoxIcon
All Implemented Interfaces:
Icon
Enclosing class:
IlvFeatureSelectorPanel

public static class IlvFeatureSelectorPanel.CheckBoxIcon
extends Object
implements Icon

Utility class that displays an Icon as either checked, enabled or normal.

Since:
JViews 7.5

Method Summary
protected  int getControlSize()
          The default size of icon is 13.
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 void paintIcon(Component c, Graphics g, int x, int y)
          Paints a rectangle and a check mark according to icon state.
 void setChecked(boolean checked)
          Changes the check box selected state.
 void setEnabled(boolean enabled)
          Changes the check box enabled state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setChecked

public void setChecked(boolean checked)
Changes the check box selected state.

Parameters:
checked - if true, this icon will draw a check mark.

setEnabled

public void setEnabled(boolean enabled)
Changes the check box enabled state.

Parameters:
enabled - if true, this icon will be black, else, it will be grayed out.

getControlSize

protected int getControlSize()
The default size of icon is 13.

Returns:
the size of icon.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Paints a rectangle and a check mark according to icon state.

Specified by:
paintIcon in interface Icon
See Also:
Icon.paintIcon(java.awt.Component, java.awt.Graphics, int, int)

getIconWidth

public int getIconWidth()
Returns the icon's width.

Specified by:
getIconWidth in interface Icon
See Also:
getControlSize()

getIconHeight

public int getIconHeight()
Returns the icon's height.

Specified by:
getIconHeight in interface Icon
See Also:
getControlSize()


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.