org.jacorb.demo.notification.whiteboard
Class BrushSizePixelImage

java.lang.Object
  extended by org.jacorb.demo.notification.whiteboard.PixelImage
      extended by org.jacorb.demo.notification.whiteboard.BrushSizePixelImage
Direct Known Subclasses:
ExtendedPixelImage

public class BrushSizePixelImage
extends PixelImage

Author:
Alphonse Bendt

Field Summary
 
Fields inherited from class org.jacorb.demo.notification.whiteboard.PixelImage
m_pixels
 
Constructor Summary
BrushSizePixelImage(int width, int height)
           
 
Method Summary
 void clearAll()
           
 int getBrushSize()
           
 void setArea(int x, int y, int r, int g, int b)
           
 void setBrushSize(int x)
           
 void setPixel(int x, int y, int red, int green, int blue)
          sets a pixel to a specific color.
 
Methods inherited from class org.jacorb.demo.notification.whiteboard.PixelImage
drawLine, getPixelBuffer, getProducer, setPixel, setPixelBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrushSizePixelImage

public BrushSizePixelImage(int width,
                           int height)
Method Detail

setBrushSize

public void setBrushSize(int x)

getBrushSize

public int getBrushSize()

setArea

public void setArea(int x,
                    int y,
                    int r,
                    int g,
                    int b)

setPixel

public void setPixel(int x,
                     int y,
                     int red,
                     int green,
                     int blue)
Description copied from class: PixelImage
sets a pixel to a specific color.

Overrides:
setPixel in class PixelImage
Parameters:
x - the pixels x value.
y - the pixels y value.
red - the pixels red value.
green - the pixels green value.
blue - the pixels blue value.

clearAll

public void clearAll()
Overrides:
clearAll in class PixelImage


Copyright © 2015 JacORB. All rights reserved.