JIDE 3.5.15

com.jidesoft.swing
Class TristateCheckBoxIcon

java.lang.Object
  extended by com.jidesoft.swing.TristateCheckBoxIcon
All Implemented Interfaces:
Icon, SynthConstants

public class TristateCheckBoxIcon
extends Object
implements Icon, SynthConstants


Field Summary
 
Fields inherited from interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
 
Constructor Summary
TristateCheckBoxIcon(UIDefaults.LazyValue originalIcon)
           
 
Method Summary
protected  void drawSquare(Component c, Graphics g, int x, int y)
           
 int getIconHeight()
           
 int getIconWidth()
           
protected  boolean isSynthIconClassName(String name)
          Check if the class name is a SynthIcon class name.
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TristateCheckBoxIcon

public TristateCheckBoxIcon(UIDefaults.LazyValue originalIcon)
Method Detail

isSynthIconClassName

protected boolean isSynthIconClassName(String name)
Check if the class name is a SynthIcon class name.

It's an interface reserved in case Sun changes the name or package of the class SynthIcon.

Parameters:
name - the class name to check
Returns:
true if it's a SynthIcon class name. Otherwise false.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

drawSquare

protected void drawSquare(Component c,
                          Graphics g,
                          int x,
                          int y)

JIDE 3.5.15