JavaView® v2.00.a4 Debug

jv.number
Class PuColorWheel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--jv.object.PsPanel
                          |
                          +--jv.number.PuColorWheel

public class PuColorWheel
extends PsPanel
implements java.awt.image.ImageConsumer

Panel with rainbow color wheel loaded from image.

Version:
22.10.99, 1.20 revised (kp) Check if image has been loaded.
07.08.99, 1.10 revised (kp) Converted to AWT 1.1
00.00.98, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
PdColor_IP, PuColorPicker, Serialized Form

Fields inherited from class jv.object.PsPanel
BORDER_GROOVE, BORDER_LINE, BORDER_NONE, BORDER_SUNK
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Method Summary
 java.awt.Color colorAt(int x, int y)
           
 void imageComplete(int arg1)
           
 void paint(java.awt.Graphics g)
          Just draw image of color wheel and border around canvas.
 void setColorModel(java.awt.image.ColorModel arg1)
           
 void setDimensions(int x, int y)
           
 void setHints(int arg1)
           
 void setImage(java.awt.Image image)
           
 void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int off, int scan)
           
 void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int off, int scan)
           
 void setProperties(java.util.Hashtable arg1)
           
 void update(java.awt.Graphics g)
          Override Component.update(Graphics) to avoid clearing the component
 
Methods inherited from class jv.object.PsPanel
addLabelComponent, addLine, addSubTitle, addTextField, addTitle, drawBorder, drawBorder, drawText, getFather, getInsets, getLanguage, getTitle, hasTitle, init, instanceOf, setBorderType, setInsetSize, setParent, setTitle, setVisible, update
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFont, setLayout, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setImage

public void setImage(java.awt.Image image)

colorAt

public java.awt.Color colorAt(int x,
                              int y)

setDimensions

public void setDimensions(int x,
                          int y)
Specified by:
setDimensions in interface java.awt.image.ImageConsumer

setProperties

public void setProperties(java.util.Hashtable arg1)
Specified by:
setProperties in interface java.awt.image.ImageConsumer

setColorModel

public void setColorModel(java.awt.image.ColorModel arg1)
Specified by:
setColorModel in interface java.awt.image.ImageConsumer

setHints

public void setHints(int arg1)
Specified by:
setHints in interface java.awt.image.ImageConsumer

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      java.awt.image.ColorModel model,
                      byte[] pixels,
                      int off,
                      int scan)
Specified by:
setPixels in interface java.awt.image.ImageConsumer

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      java.awt.image.ColorModel model,
                      int[] pixels,
                      int off,
                      int scan)
Specified by:
setPixels in interface java.awt.image.ImageConsumer

imageComplete

public void imageComplete(int arg1)
Specified by:
imageComplete in interface java.awt.image.ImageConsumer

paint

public void paint(java.awt.Graphics g)
Just draw image of color wheel and border around canvas.
Overrides:
paint in class PsPanel
Tags copied from class: PsPanel
See Also:
PsPanel.setBorderType(int)

update

public void update(java.awt.Graphics g)
Override Component.update(Graphics) to avoid clearing the component
Overrides:
update in class java.awt.Container

JavaView® v2.00.a4 Debug

The software JavaView® is copyright protected. All Rights Reserved.