datechooser.view.appearance.custom
Class CustomCellRenderer

java.lang.Object
  extended by datechooser.view.appearance.CellRenderer
      extended by datechooser.view.appearance.custom.CustomCellRenderer
All Implemented Interfaces:
java.io.Serializable

public class CustomCellRenderer
extends CellRenderer

Customized cell's renderer.
Рисовальщик настраиваемых ячеек.

Since:
1.0
Author:
Androsov Vadim
See Also:
Serialized Form

Constructor Summary
CustomCellRenderer(CustomCellAppearance anAppearance)
           
 
Method Summary
 CustomCellAppearance getAppearance()
           
 void render(java.awt.Graphics2D g, java.awt.Component c, java.lang.String text, int width, int height, boolean isCursor)
          Draw cell method.
 void setAppearance(CustomCellAppearance appearance)
           
 
Methods inherited from class datechooser.view.appearance.CellRenderer
paintCursor, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCellRenderer

public CustomCellRenderer(CustomCellAppearance anAppearance)
Method Detail

render

public void render(java.awt.Graphics2D g,
                   java.awt.Component c,
                   java.lang.String text,
                   int width,
                   int height,
                   boolean isCursor)
Description copied from class: CellRenderer
Draw cell method.
Метод рисования ячейки.

Specified by:
render in class CellRenderer
Parameters:
g - Graphics.
Графический контекст.
c - Palette component.
Компонент, на котором осуществляется рисование.
text - Cell text.
Текст ячейки.
width - Cell width.
Ширина ячейки.
height - Cell height.
Высота ячейки.
isCursor - Draw cursor.
Рисовать курсор.

getAppearance

public CustomCellAppearance getAppearance()

setAppearance

public void setAppearance(CustomCellAppearance appearance)