com.datamessenger.awt
Class BarCanvas


java.lang.Object

  |

  +--java.awt.Component

        |

        +--java.awt.Canvas

              |

              +--com.datamessenger.awt.BarCanvas

Direct Known Subclasses:
TimeLine

public class BarCanvas
extends java.awt.Canvas

Copyright (c) 1999-2000 Produx House, Corp. All rights reserved.

Version:
1.0, September 30 2000
Author:
Jon L. Boynton
See Also:
Serialized Form

Field Summary
protected  BarContext bar
           
protected  ColorScheme color
           
protected  java.awt.Rectangle shade
           
protected  double transparency
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
BarCanvas(BarContext bar, ColorScheme color)
          A new blank BarCanvas.
 
Method Summary
 BarContext getContext()
           
 void paint(java.awt.Graphics g)
          Calls update.
 void setBounds(int x, int y, int width, int height)
           
 void setShadeArea(java.awt.Rectangle shade)
           
 void setShadeTransparency(double trans)
           
 void update(java.awt.Graphics g)
          Paints button with a Graphics object.
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bar


protected BarContext bar

shade


protected java.awt.Rectangle shade

color


protected ColorScheme color

transparency


protected double transparency
Constructor Detail

BarCanvas


public BarCanvas(BarContext bar,

                 ColorScheme color)
A new blank BarCanvas.
Method Detail

setBounds


public void setBounds(int x,

                      int y,

                      int width,

                      int height)
Overrides:
setBounds in class java.awt.Component

setShadeTransparency


public void setShadeTransparency(double trans)

setShadeArea


public void setShadeArea(java.awt.Rectangle shade)

getContext


public BarContext getContext()

paint


public void paint(java.awt.Graphics g)
Calls update.
Overrides:
paint in class java.awt.Canvas
Parameters:
g - the graphics context of this component.

update


public void update(java.awt.Graphics g)
Paints button with a Graphics object.
Overrides:
update in class java.awt.Component
Parameters:
g - the graphics context of this component.


Comments, suggestions, and bug reports are welcomed and encouraged.
Please refer them to our support page. Thank you.

Copyright © 1999-2000 Produx House, Corp. All rights reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.