Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit.browser
Class FileCellRenderer.ExpansionToggleBorder  view FileCellRenderer.ExpansionToggleBorder download FileCellRenderer.ExpansionToggleBorder.java

java.lang.Object
  extended byorg.gjt.sp.jedit.browser.FileCellRenderer.ExpansionToggleBorder
All Implemented Interfaces:
javax.swing.border.Border
Enclosing class:
FileCellRenderer

static class FileCellRenderer.ExpansionToggleBorder
extends java.lang.Object
implements javax.swing.border.Border


Field Summary
(package private) static javax.swing.Icon COLLAPSED_ICON
           
(package private) static javax.swing.Icon EXPANDED_ICON
           
(package private) static int ICON_WIDTH
           
private  int level
           
(package private) static int LEVEL_WIDTH
           
private  int state
           
(package private) static int STATE_COLLAPSED
           
(package private) static int STATE_EXPANDED
           
(package private) static int STATE_NONE
           
 
Constructor Summary
FileCellRenderer.ExpansionToggleBorder(int state, int level)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Measures the width of this border.
 boolean isBorderOpaque()
          Determines whether this border fills every pixel in its area when painting.
static boolean isExpansionToggle(int level, int x)
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the border for a given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLLAPSED_ICON

static final javax.swing.Icon COLLAPSED_ICON

EXPANDED_ICON

static final javax.swing.Icon EXPANDED_ICON

ICON_WIDTH

static final int ICON_WIDTH

LEVEL_WIDTH

static final int LEVEL_WIDTH
See Also:
Constant Field Values

STATE_NONE

static final int STATE_NONE
See Also:
Constant Field Values

STATE_COLLAPSED

static final int STATE_COLLAPSED
See Also:
Constant Field Values

STATE_EXPANDED

static final int STATE_EXPANDED
See Also:
Constant Field Values

state

private int state

level

private int level
Constructor Detail

FileCellRenderer.ExpansionToggleBorder

public FileCellRenderer.ExpansionToggleBorder(int state,
                                              int level)
Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Description copied from interface: javax.swing.border.Border
Paints the border for a given component.

Specified by:
paintBorder in interface javax.swing.border.Border

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Description copied from interface: javax.swing.border.Border
Measures the width of this border.

Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

public boolean isBorderOpaque()
Description copied from interface: javax.swing.border.Border
Determines whether this border fills every pixel in its area when painting.

Specified by:
isBorderOpaque in interface javax.swing.border.Border

isExpansionToggle

public static boolean isExpansionToggle(int level,
                                        int x)