Logo Search packages:      
Sourcecode: visualvm version File versions  Download package

org::netbeans::lib::profiler::ui::components::table::CustomBarCellRenderer Class Reference

Inheritance diagram for org::netbeans::lib::profiler::ui::components::table::CustomBarCellRenderer:

org::netbeans::lib::profiler::ui::components::table::EnhancedTableCellRenderer org::netbeans::lib::profiler::ui::components::table::TableCellRendererPersistent org::netbeans::lib::profiler::ui::components::table::DiffBarCellRenderer

List of all members.


Detailed Description

Custom Table cell renderer that paints a bar based on numerical value within min/max bounds.

Author:
Ian Formanek

Jiri Sedlacek

Definition at line 53 of file CustomBarCellRenderer.java.


Public Member Functions

 CustomBarCellRenderer (long min, long max)
int getHorizontalAlignment ()
boolean getSupportsFocusBorder ()
final Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Component getTableCellRendererComponentPersistent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
void paintComponent (Graphics g)
void setBorder (Border border)
void setHorizontalAlignment (int horizontalAlignment)
void setMaximum (long n)
void setMinimum (long n)
void setRelValue (double n)
void setSupportsFocusBorder (boolean supportsFocusBorder)

Static Public Member Functions

static Color getDarker (Color c)

Static Public Attributes

static final Color BAR_FOREGROUND_COLOR = new Color(195, 41, 41)

Protected Member Functions

double calculateViewValue (double n)
double calculateViewValue (long n)
void setRowBackground (Color c)
void setRowForeground (Color c)
void setState (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
void setValue (JTable table, Object value, int row, int column)

Protected Attributes

long max
long min
double relValue
boolean supportsFocusBorder

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index