java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FileCellRenderer.ExpansionToggleBorder
public FileCellRenderer.ExpansionToggleBorder(int state,
int level)
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)