picturedream.implementation.processor
Class LinearColorScale

java.lang.Object
  |
  +--picturedream.implementation.processor.LinearColorScale
All Implemented Interfaces:
IPictureProcessor, ISliderListener

public class LinearColorScale
extends java.lang.Object
implements IPictureProcessor, ISliderListener

Title: PictureDream

Description:

Copyright: Copyright (c) 2003 MRoc

Organisation: MRoc Audiosolutions

Version:
1.0
Author:
MRoc mail@mroc.de

Field Summary
 int ivC1
          brightness
 double ivC2
          contrast
 IPicture picturepreview
           
protected  PictureView pictureview
          Picture View for a Preview Image
 
Constructor Summary
LinearColorScale()
           
 
Method Summary
 javax.swing.JComponent getEditor(IPicture preview)
           
 java.lang.String getName()
          returns the processors name
 void onSliderChanged(SliderControl slider)
          invoked when the slider status changed
 char[][] process(char[][] channels, int width, int height)
          processes the given channels and returns the modified version. can also directly work with the given data and can return this.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ivC1

public int ivC1
brightness

ivC2

public double ivC2
contrast

picturepreview

public IPicture picturepreview

pictureview

protected PictureView pictureview
Picture View for a Preview Image
Constructor Detail

LinearColorScale

public LinearColorScale()
Method Detail

process

public char[][] process(char[][] channels,
                        int width,
                        int height)
Description copied from interface: IPictureProcessor
processes the given channels and returns the modified version. can also directly work with the given data and can return this.
Specified by:
process in interface IPictureProcessor
Following copied from interface: picturedream.model.IPictureProcessor
Parameters:
channels - - the channels to be processed
Returns:
the processed channels

getEditor

public javax.swing.JComponent getEditor(IPicture preview)
Specified by:
getEditor in interface IPictureProcessor

getName

public java.lang.String getName()
returns the processors name
Specified by:
getName in interface IPictureProcessor

onSliderChanged

public void onSliderChanged(SliderControl slider)
invoked when the slider status changed
Specified by:
onSliderChanged in interface ISliderListener