com.jpeterson.virtlcd.swing.ui
Class BasicDotMatrixSixByEightUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by com.jpeterson.virtlcd.swing.ui.DotMatrixSixByEightUI
          extended by com.jpeterson.virtlcd.swing.ui.BasicDotMatrixSixByEightUI

public class BasicDotMatrixSixByEightUI
extends DotMatrixSixByEightUI

Implementation of the "view" for actually displaying the basic LCD character.

Author:
Jesse Peterson

Nested Class Summary
protected  class BasicDotMatrixSixByEightUI.DotMatrixSixByEightLayout
          Layout for the dot matrix display.
 
Field Summary
protected static java.awt.Point[][] coords
           
protected  JDotMatrixSixByEight dotMatrixSixByEight
          The associated dot matrix character.
protected  javax.swing.event.ChangeListener dotMatrixSixByEightChangeListener
           
protected static int HEIGHT
           
protected static int NUM_PIXELS_HIGH
           
protected static int NUM_PIXELS_WIDE
           
protected static int PIXEL_HEIGHT
           
protected static int PIXEL_INNER_HEIGHT
           
protected static int PIXEL_INNER_WIDTH
           
protected static int PIXEL_WIDTH
           
protected static int WIDTH
           
 
Constructor Summary
BasicDotMatrixSixByEightUI()
           
 
Method Summary
protected  java.awt.LayoutManager createLayoutManager()
          Invoked by installUI to create a layout manager object to manage the dot matrix display.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 void installComponents()
           
 void installDefaults()
           
 void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintPixels(java.awt.Graphics g)
           
 void uninstallComponents()
           
 void uninstallDefaults()
           
 void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dotMatrixSixByEight

protected JDotMatrixSixByEight dotMatrixSixByEight
The associated dot matrix character.


dotMatrixSixByEightChangeListener

protected javax.swing.event.ChangeListener dotMatrixSixByEightChangeListener

PIXEL_WIDTH

protected static final int PIXEL_WIDTH
See Also:
Constant Field Values

PIXEL_HEIGHT

protected static final int PIXEL_HEIGHT
See Also:
Constant Field Values

PIXEL_INNER_WIDTH

protected static final int PIXEL_INNER_WIDTH
See Also:
Constant Field Values

PIXEL_INNER_HEIGHT

protected static final int PIXEL_INNER_HEIGHT
See Also:
Constant Field Values

NUM_PIXELS_WIDE

protected static final int NUM_PIXELS_WIDE
See Also:
Constant Field Values

NUM_PIXELS_HIGH

protected static final int NUM_PIXELS_HIGH
See Also:
Constant Field Values

WIDTH

protected static final int WIDTH
See Also:
Constant Field Values

HEIGHT

protected static final int HEIGHT
See Also:
Constant Field Values

coords

protected static java.awt.Point[][] coords
Constructor Detail

BasicDotMatrixSixByEightUI

public BasicDotMatrixSixByEightUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

installDefaults

public void installDefaults()

installComponents

public void installComponents()

installListeners

public void installListeners()

uninstallDefaults

public void uninstallDefaults()

uninstallComponents

public void uninstallComponents()

uninstallListeners

public void uninstallListeners()

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

paintPixels

protected void paintPixels(java.awt.Graphics g)

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()
Invoked by installUI to create a layout manager object to manage the dot matrix display.

Returns:
a layout manager object


Copyright © 2008 Jesse Peterson. All Rights Reserved.