|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.memoire.bu
Class BuAbstractCellRenderer

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.memoire.bu.BuLabel
com.memoire.bu.BuAbstractCellRenderer
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, javax.swing.ListCellRenderer, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants, javax.swing.table.TableCellRenderer, javax.swing.tree.TreeCellRenderer
- Direct Known Subclasses:
- BuExplorer.FileCR, BuExplorer.FilterCR, BuLookPreferencesPanel.XCBCR, BuPreviewFrame.PCR, BuTableCellRenderer
- public class BuAbstractCellRenderer
- extends BuLabel
- implements javax.swing.ListCellRenderer, javax.swing.tree.TreeCellRenderer, javax.swing.table.TableCellRenderer
- extends BuLabel
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JLabel |
javax.swing.JLabel.AccessibleJLabel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
COMBOBOX
|
private static javax.swing.ListCellRenderer |
COMBOBOXCR
|
protected boolean |
darkerOddLines_
|
protected javax.swing.JLabel |
delegate_
|
static int |
LIST
|
private static javax.swing.ListCellRenderer |
LISTCR
|
protected static javax.swing.border.Border |
NO_FOCUS_BORDER
|
static int |
TABLE
|
private static javax.swing.table.TableCellRenderer |
TABLECR
|
static int |
TREE
|
private static javax.swing.tree.TreeCellRenderer |
TREECR
|
protected int |
type_
|
| Fields inherited from class javax.swing.JLabel |
labelFor |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
protected |
BuAbstractCellRenderer(int _type)
|
| Method Summary | |
private static java.awt.Color |
darken(java.awt.Color _c)
|
void |
doLayout()
Layout the components in this container. |
void |
firePropertyChange(java.lang.String _name,
boolean _old,
boolean _new)
A variant of firePropertyChange(String,Object,Object) 55
for properties with boolean values. |
void |
firePropertyChange(java.lang.String _name,
byte _old,
byte _new)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(java.lang.String _name,
char _old,
char _new)
A variant of firePropertyChange(String,Object,Object) 55
for properties with char values. |
void |
firePropertyChange(java.lang.String _name,
double _old,
double _new)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(java.lang.String _name,
float _old,
float _new)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(java.lang.String _name,
int _old,
int _new)
A variant of firePropertyChange(String,Object,Object) 55
for properties with int values. |
void |
firePropertyChange(java.lang.String _name,
long _old,
long _new)
Report a change in a bound property to any registered property listeners. |
protected void |
firePropertyChange(java.lang.String _name,
java.lang.Object _old,
java.lang.Object _new)
Report a change in a bound property to any registered property listeners. |
void |
firePropertyChange(java.lang.String _name,
short _old,
short _new)
Report a change in a bound property to any registered property listeners. |
java.awt.Color |
getBackground()
Returns this component's background color. |
static javax.swing.ListCellRenderer |
getDefaultComboBoxCellRenderer()
|
static javax.swing.ListCellRenderer |
getDefaultListCellRenderer()
|
static javax.swing.table.TableCellRenderer |
getDefaultTableCellRenderer()
|
static javax.swing.tree.TreeCellRenderer |
getDefaultTreeCellRenderer()
|
javax.swing.Icon |
getDisabledIcon()
This method returns the disabled icon. |
int |
getDisplayedMnemonic()
This method returns the keycode that is used for the label's mnemonic. |
java.awt.Color |
getForeground()
Returns this component's foreground color. |
int |
getHorizontalAlignment()
This method returns the horziontal alignment of the label. |
int |
getHorizontalTextPosition()
This method returns the horizontal text position of the label. |
javax.swing.Icon |
getIcon()
This method returns the active icon. |
int |
getIconTextGap()
This method returns the gap between the icon and the text. |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList _list,
java.lang.Object _value,
int _row,
boolean _selected,
boolean _focus)
|
java.awt.Dimension |
getMaximumSize()
Get the component's maximum size. |
java.awt.Dimension |
getMinimumSize()
Get the component's minimum size. |
java.awt.Container |
getParent()
Returns the parent of this component. |
java.awt.Dimension |
getPreferredSize()
Get the component's preferred size. |
protected java.awt.Component |
getRealRenderer(javax.swing.JComponent _comp,
java.lang.Object _value,
boolean _selected,
boolean _expanded,
boolean _leaf,
int _row,
int _column,
boolean _focus)
|
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable _table,
java.lang.Object _value,
boolean _selected,
boolean _focus,
int _row,
int _column)
Get table cell renderer component |
java.lang.String |
getText()
This method returns the label text. |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree _tree,
java.lang.Object _value,
boolean _selected,
boolean _expanded,
boolean _leaf,
int _row,
boolean _focus)
Returns a component that has been configured to display one element (or node) in a javax.swing.JTree component. |
int |
getVerticalAlignment()
This method returns the vertical alignment of the label. |
int |
getVerticalTextPosition()
This method returns the vertical text position of the label. |
void |
invalidate()
Invalidates this container to indicate that it (and all parent containers) need to be laid out. |
boolean |
isDarkerOddLines()
|
boolean |
isDoubleBuffered()
Get the value of the JComponent.doubleBuffered> JComponent.doubleBuffered 55 property. |
void |
paint(java.awt.Graphics _g)
Paint the component. |
void |
revalidate()
Queue a an invalidation and revalidation of this component, using RepaintManager.addInvalidComponent(javax.swing.JComponent)> RepaintManager.addInvalidComponent(javax.swing.JComponent) 55 . |
void |
setBackground(java.awt.Color _color)
Set the value of the background property. |
void |
setBounds(int _x,
int _y,
int _w,
int _h)
Sets the bounding rectangle for this component to the specified values. |
void |
setDarkerOddLines(boolean _darkerOddLines)
|
void |
setDisabledIcon(javax.swing.Icon _icon)
This method changes the "disabledIcon" property. |
void |
setDisplayedMnemonic(int _mnemonic)
This method sets the keycode that will be the label's mnemonic. |
void |
setDoubleBuffered(boolean _state)
Set the value of the JComponent.doubleBuffered> JComponent.doubleBuffered 55 property. |
void |
setForeground(java.awt.Color _color)
Set the value of the foreground property. |
void |
setHorizontalAlignment(int _halign)
This method changes the "horizontalAlignment" property. |
void |
setHorizontalTextPosition(int _htp)
This method changes the "horizontalTextPosition" property of the label. |
void |
setIcon(javax.swing.Icon _icon)
This method changes the "icon" property. |
void |
setIconTextGap(int _itg)
This method changes the "iconTextGap" property. |
void |
setMaximumSize(java.awt.Dimension _size)
Set the value of the JComponent.maximumSize> JComponent.maximumSize 55 property. |
void |
setMinimumSize(java.awt.Dimension _size)
Set the value of the JComponent.minimumSize> JComponent.minimumSize 55 property. |
void |
setPreferredSize(java.awt.Dimension _size)
Set the value of the JComponent.preferredSize> JComponent.preferredSize 55 property. |
void |
setText(java.lang.String _text)
This method changes the "text" property. |
void |
setVerticalAlignment(int _halign)
This method changes the "verticalAlignment" property of the label. |
void |
setVerticalTextPosition(int _htp)
This method changes the "verticalTextPosition" property of the label. |
void |
validate()
Re-lays out the components in this container. |
| Methods inherited from class com.memoire.bu.BuLabel |
getToolTipLocation |
| Methods inherited from class javax.swing.JLabel |
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisplayedMnemonicIndex, getLabelFor, getUI, getUIClassID, imageUpdate, paramString, setDisplayedMnemonic, setDisplayedMnemonicIndex, setFont, setLabelFor, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
LIST
public static final int LIST
- See Also:
- Constant Field Values
COMBOBOX
public static final int COMBOBOX
- See Also:
- Constant Field Values
TREE
public static final int TREE
- See Also:
- Constant Field Values
TABLE
public static final int TABLE
- See Also:
- Constant Field Values
NO_FOCUS_BORDER
protected static final javax.swing.border.Border NO_FOCUS_BORDER
type_
protected int type_
darkerOddLines_
protected boolean darkerOddLines_
delegate_
protected javax.swing.JLabel delegate_
LISTCR
private static final javax.swing.ListCellRenderer LISTCR
COMBOBOXCR
private static final javax.swing.ListCellRenderer COMBOBOXCR
TREECR
private static final javax.swing.tree.TreeCellRenderer TREECR
TABLECR
private static final javax.swing.table.TableCellRenderer TABLECR
| Constructor Detail |
BuAbstractCellRenderer
protected BuAbstractCellRenderer(int _type)
| Method Detail |
isDarkerOddLines
public boolean isDarkerOddLines()
setDarkerOddLines
public void setDarkerOddLines(boolean _darkerOddLines)
paint
public void paint(java.awt.Graphics _g)
- Description copied from class:
javax.swing.JComponent Paint the component. This is a delicate process, and should only be called from the repaint thread, under control of the javax.swing.RepaintManager. Client code should usually call Component.repaint()>
Component.repaint()55 to trigger painting.The body of the
paintcall involves calling JComponent.paintComponent(java.awt.Graphics)>JComponent.paintComponent(java.awt.Graphics)55 , JComponent.paintBorder(java.awt.Graphics)>JComponent.paintBorder(java.awt.Graphics)55 , and JComponent.paintChildren(java.awt.Graphics)>JComponent.paintChildren(java.awt.Graphics)55 in order. If you want to customize painting behavior, you should override one of these methods rather thanpaint.For more details on the painting sequence, see this article.
getBackground
public java.awt.Color getBackground()
- Description copied from class:
java.awt.Component - Returns this component's background color. If not set, this is inherited
from the parent.
setBackground
public void setBackground(java.awt.Color _color)
- Description copied from class:
javax.swing.JComponent - Set the value of the
backgroundproperty.
getForeground
public java.awt.Color getForeground()
- Description copied from class:
java.awt.Component - Returns this component's foreground color. If not set, this is inherited
from the parent.
setForeground
public void setForeground(java.awt.Color _color)
- Description copied from class:
javax.swing.JComponent - Set the value of the
foregroundproperty.
setBounds
public void setBounds(int _x,
int _y,
int _w,
int _h)
- Description copied from class:
java.awt.Component - Sets the bounding rectangle for this component to the specified values.
Note that these coordinates are relative to the parent, not to the screen.
isDoubleBuffered
public boolean isDoubleBuffered()
- Description copied from class:
javax.swing.JComponent - Get the value of the JComponent.doubleBuffered>
JComponent.doubleBuffered55 property.
setDoubleBuffered
public void setDoubleBuffered(boolean _state)
- Description copied from class:
javax.swing.JComponent - Set the value of the JComponent.doubleBuffered>
JComponent.doubleBuffered55 property.
getParent
public java.awt.Container getParent()
- Description copied from class:
java.awt.Component - Returns the parent of this component.
getIcon
public javax.swing.Icon getIcon()
- Description copied from class:
javax.swing.JLabel - This method returns the active icon. The active icon is painted when the
label is enabled.
setIcon
public void setIcon(javax.swing.Icon _icon)
- Description copied from class:
javax.swing.JLabel - This method changes the "icon" property. This icon (the active icon) will
be the one displayed when the label is enabled.
getDisabledIcon
public javax.swing.Icon getDisabledIcon()
- Description copied from class:
javax.swing.JLabel - This method returns the disabled icon. The disabled icon is painted when
the label is disabled. If the disabled icon is null and the active icon
is an ImageIcon, this method returns a grayed version of the icon. The
grayed version of the icon becomes the disabledIcon.
setDisabledIcon
public void setDisabledIcon(javax.swing.Icon _icon)
- Description copied from class:
javax.swing.JLabel - This method changes the "disabledIcon" property. This icon (the disabled
icon) will be the one displayed when the label is disabled.
getDisplayedMnemonic
public int getDisplayedMnemonic()
- Description copied from class:
javax.swing.JLabel - This method returns the keycode that is used for the label's mnemonic.
setDisplayedMnemonic
public void setDisplayedMnemonic(int _mnemonic)
- Description copied from class:
javax.swing.JLabel - This method sets the keycode that will be the label's mnemonic. If the
label is used as a label for another component, the label will give
focus to that component when the mnemonic is activated.
getHorizontalAlignment
public int getHorizontalAlignment()
- Description copied from class:
javax.swing.JLabel - This method returns the horziontal alignment of the label.
setHorizontalAlignment
public void setHorizontalAlignment(int _halign)
- Description copied from class:
javax.swing.JLabel - This method changes the "horizontalAlignment" property. The horizontal
alignment determines where the label will be placed horizontally.
getHorizontalTextPosition
public int getHorizontalTextPosition()
- Description copied from class:
javax.swing.JLabel - This method returns the horizontal text position of the label.
setHorizontalTextPosition
public void setHorizontalTextPosition(int _htp)
- Description copied from class:
javax.swing.JLabel - This method changes the "horizontalTextPosition" property of the label.
The horizontal text position determines where the text will be placed
horizontally relative to the icon.
getIconTextGap
public int getIconTextGap()
- Description copied from class:
javax.swing.JLabel - This method returns the gap between the icon and the text.
setIconTextGap
public void setIconTextGap(int _itg)
- Description copied from class:
javax.swing.JLabel - This method changes the "iconTextGap" property. The iconTextGap
determines how much space there is between the icon and the text.
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
javax.swing.JComponent - Get the component's minimum size. If the JComponent.minimumSize>
JComponent.minimumSize55 property has been explicitly set, it is returned. If the JComponent.minimumSize>JComponent.minimumSize55 property has not been set but the JComponent.ui>JComponent.ui55 property has been, the result of ComponentUI.getMinimumSize(javax.swing.JComponent)>ComponentUI.getMinimumSize(javax.swing.JComponent)55 is returned. If neither property has been set, the result of Container.getMinimumSize()>Container.getMinimumSize()55 is returned.
setMinimumSize
public void setMinimumSize(java.awt.Dimension _size)
- Description copied from class:
javax.swing.JComponent - Set the value of the JComponent.minimumSize>
JComponent.minimumSize55 property. The passed value is copied, the later direct changes on the argument have no effect on the property value.
getMaximumSize
public java.awt.Dimension getMaximumSize()
- Description copied from class:
javax.swing.JComponent - Get the component's maximum size. If the JComponent.maximumSize>
JComponent.maximumSize55 property has been explicitly set, it is returned. If the JComponent.maximumSize>JComponent.maximumSize55 property has not been set but the JComponent.ui>JComponent.ui55 property has been, the result of ComponentUI.getMaximumSize(javax.swing.JComponent)>ComponentUI.getMaximumSize(javax.swing.JComponent)55 is returned. If neither property has been set, the result of Container.getMaximumSize()>Container.getMaximumSize()55 is returned.
setMaximumSize
public void setMaximumSize(java.awt.Dimension _size)
- Description copied from class:
javax.swing.JComponent - Set the value of the JComponent.maximumSize>
JComponent.maximumSize55 property. The passed value is copied, the later direct changes on the argument have no effect on the property value.
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Description copied from class:
javax.swing.JComponent - Get the component's preferred size. If the JComponent.preferredSize>
JComponent.preferredSize55 property has been explicitly set, it is returned. If the JComponent.preferredSize>JComponent.preferredSize55 property has not been set but the JComponent.ui>JComponent.ui55 property has been, the result of ComponentUI.getPreferredSize(javax.swing.JComponent)>ComponentUI.getPreferredSize(javax.swing.JComponent)55 is returned. If neither property has been set, the result of Container.getPreferredSize()>Container.getPreferredSize()55 is returned.
setPreferredSize
public void setPreferredSize(java.awt.Dimension _size)
- Description copied from class:
javax.swing.JComponent - Set the value of the JComponent.preferredSize>
JComponent.preferredSize55 property. The passed value is copied, the later direct changes on the argument have no effect on the property value.
getText
public java.lang.String getText()
- Description copied from class:
javax.swing.JLabel - This method returns the label text.
setText
public void setText(java.lang.String _text)
- Description copied from class:
javax.swing.JLabel - This method changes the "text" property. The given text will be painted
in the label.
getVerticalAlignment
public int getVerticalAlignment()
- Description copied from class:
javax.swing.JLabel - This method returns the vertical alignment of the label.
setVerticalAlignment
public void setVerticalAlignment(int _halign)
- Description copied from class:
javax.swing.JLabel - This method changes the "verticalAlignment" property of the label. The
vertical alignment determines how where the label will be placed
vertically. If the alignment is not valid, it will default to the
center.
getVerticalTextPosition
public int getVerticalTextPosition()
- Description copied from class:
javax.swing.JLabel - This method returns the vertical text position of the label.
setVerticalTextPosition
public void setVerticalTextPosition(int _htp)
- Description copied from class:
javax.swing.JLabel - This method changes the "verticalTextPosition" property of the label. The
vertical text position determines where the text will be placed
vertically relative to the icon.
doLayout
public void doLayout()
- Description copied from class:
java.awt.Container - Layout the components in this container.
revalidate
public void revalidate()
- Description copied from class:
javax.swing.JComponent - Queue a an invalidation and revalidation of this component, using
RepaintManager.addInvalidComponent(javax.swing.JComponent)>
RepaintManager.addInvalidComponent(javax.swing.JComponent)55 .
invalidate
public void invalidate()
- Description copied from class:
java.awt.Container - Invalidates this container to indicate that it (and all parent
containers) need to be laid out.
validate
public void validate()
- Description copied from class:
java.awt.Container - Re-lays out the components in this container.
firePropertyChange
protected void firePropertyChange(java.lang.String _name, java.lang.Object _old, java.lang.Object _new)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
firePropertyChange
public void firePropertyChange(java.lang.String _name, byte _old, byte _new)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
firePropertyChange
public void firePropertyChange(java.lang.String _name, char _old, char _new)
- Description copied from class:
javax.swing.JComponent - A variant of Component.firePropertyChange(String,Object,Object)>
Component.firePropertyChange(String,Object,Object)55 for properties withcharvalues.
firePropertyChange
public void firePropertyChange(java.lang.String _name, short _old, short _new)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
firePropertyChange
public void firePropertyChange(java.lang.String _name, int _old, int _new)
- Description copied from class:
javax.swing.JComponent - A variant of Component.firePropertyChange(String,Object,Object)>
Component.firePropertyChange(String,Object,Object)55 for properties withintvalues.
firePropertyChange
public void firePropertyChange(java.lang.String _name, long _old, long _new)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
firePropertyChange
public void firePropertyChange(java.lang.String _name, float _old, float _new)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
firePropertyChange
public void firePropertyChange(java.lang.String _name, double _old, double _new)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
firePropertyChange
public void firePropertyChange(java.lang.String _name, boolean _old, boolean _new)
- Description copied from class:
javax.swing.JComponent - A variant of Component.firePropertyChange(String,Object,Object)>
Component.firePropertyChange(String,Object,Object)55 for properties withbooleanvalues.
getListCellRendererComponent
public java.awt.Component getListCellRendererComponent(javax.swing.JList _list, java.lang.Object _value, int _row, boolean _selected, boolean _focus)
- Specified by:
getListCellRendererComponentin interfacejavax.swing.ListCellRenderer
getTreeCellRendererComponent
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree _tree, java.lang.Object _value, boolean _selected, boolean _expanded, boolean _leaf, int _row, boolean _focus)
- Description copied from interface:
javax.swing.tree.TreeCellRenderer - Returns a component that has been configured to display one element (or
node) in a javax.swing.JTree component. The arguments to this method are used
to pass in the value and state of the element to be rendered.
- Specified by:
getTreeCellRendererComponentin interfacejavax.swing.tree.TreeCellRenderer
getTableCellRendererComponent
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable _table, java.lang.Object _value, boolean _selected, boolean _focus, int _row, int _column)
- Description copied from interface:
javax.swing.table.TableCellRenderer - Get table cell renderer component
- Specified by:
getTableCellRendererComponentin interfacejavax.swing.table.TableCellRenderer
getRealRenderer
protected java.awt.Component getRealRenderer(javax.swing.JComponent _comp, java.lang.Object _value, boolean _selected, boolean _expanded, boolean _leaf, int _row, int _column, boolean _focus)
darken
private static final java.awt.Color darken(java.awt.Color _c)
getDefaultListCellRenderer
public static final javax.swing.ListCellRenderer getDefaultListCellRenderer()
getDefaultComboBoxCellRenderer
public static final javax.swing.ListCellRenderer getDefaultComboBoxCellRenderer()
getDefaultTreeCellRenderer
public static final javax.swing.tree.TreeCellRenderer getDefaultTreeCellRenderer()
getDefaultTableCellRenderer
public static final javax.swing.table.TableCellRenderer getDefaultTableCellRenderer()
|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC