com.sas.swing.visuals.tableview
Class IndicatorCellRenderer

com.sas.swing.visuals.tableview.IndicatorCellRenderer
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants, javax.swing.table.TableCellRenderer

public class IndicatorCellRenderer
implements javax.swing.table.TableCellRenderer

See Also:
Serialized Form

Field Summary
protected  java.util.Hashtable limitColors
           
protected  int[] limitValues
           
protected static javax.swing.border.Border noFocusBorder
           
protected  java.awt.Color unselectedBackground
           
protected  java.awt.Color unselectedForeground
           
 
Constructor Summary
IndicatorCellRenderer()
           
IndicatorCellRenderer(int min, int max)
           
 
Method Summary
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
           
 boolean isOpaque()
          Overridden for performance reasons.
 void repaint(long tm, int x, int y, int width, int height)
          Overridden for performance reasons.
 void repaint(java.awt.Rectangle r)
          Overridden for performance reasons.
 void revalidate()
          Overridden for performance reasons.
 void setBackground(java.awt.Color c)
          Overrides JComponent.setForeground to assign the unselected-background color to the specified color.
 void setForeground(java.awt.Color c)
          Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.
 void setLimits(java.util.Hashtable limitColors)
           
 void updateUI()
          Notification from the UIManager that the look and feel [L&F] has changed.
 void validate()
          Overridden for performance reasons.
 

Field Detail

noFocusBorder

protected static javax.swing.border.Border noFocusBorder

limitColors

protected java.util.Hashtable limitColors

limitValues

protected int[] limitValues

unselectedForeground

protected java.awt.Color unselectedForeground

unselectedBackground

protected java.awt.Color unselectedBackground
Constructor Detail

IndicatorCellRenderer

public IndicatorCellRenderer()

IndicatorCellRenderer

public IndicatorCellRenderer(int min,
                             int max)
Method Detail

setForeground

public void setForeground(java.awt.Color c)
Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.

Overrides:
setForeground in class javax.swing.JComponent
Parameters:
c - set the foreground color to this value

setBackground

public void setBackground(java.awt.Color c)
Overrides JComponent.setForeground to assign the unselected-background color to the specified color.

Overrides:
setBackground in class javax.swing.JComponent
Parameters:
c - set the background color to this value

updateUI

public void updateUI()
Notification from the UIManager that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the UIManager.

Overrides:
updateUI in class javax.swing.JProgressBar
See Also:
JComponent.updateUI()

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer

isOpaque

public boolean isOpaque()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
isOpaque in class javax.swing.JComponent

validate

public void validate()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
validate in class java.awt.Container

revalidate

public void revalidate()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
revalidate in class javax.swing.JComponent

repaint

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
repaint in class javax.swing.JComponent

repaint

public void repaint(java.awt.Rectangle r)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
repaint in class javax.swing.JComponent

setLimits

public void setLimits(java.util.Hashtable limitColors)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.