Class IX_tint

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--IX_tint

public class IX_tint
extends java.awt.Canvas

This IX API class is used to adjust the color tint angle of an image.

Author:
The J Maker
See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
IX_tint(java.awt.Image im)
          This is a constructor.
IX_tint(java.awt.Image im, int angle)
          This is a constructor.
IX_tint(int[] data, int width, int height)
          This is a constructor.
IX_tint(int[] data, int width, int height, int angle)
          This is a constructor.
 
Method Summary
 int getAngle()
          This returns the tint angle.
 int getHeight()
          This returns the image height.
 java.awt.Dimension getMinimizeSize()
           
 int[] getOutputArray()
          This returns the output array.
 java.awt.Image getOutputImage()
          This returns the output image.
 java.awt.Dimension getPreferredSize()
           
 int getWidth()
          This returns the image width.
 void paint(java.awt.Graphics g)
           
 void setAllParameters(int angle)
           
 void setAngle(int angle)
          This sets the tint angle.
 void update(java.awt.Graphics g)
           
 
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, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, 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, 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
 

Constructor Detail

IX_tint

public IX_tint(java.awt.Image im)
This is a constructor.
Parameters:
im - input image (default angle = 100)

IX_tint

public IX_tint(java.awt.Image im,
               int angle)
This is a constructor.
Parameters:
im - input image
angle - tint angle (-180, 180)

IX_tint

public IX_tint(int[] data,
               int width,
               int height)
This is a constructor.
Parameters:
data - input array
width - input image width
height - input image height

IX_tint

public IX_tint(int[] data,
               int width,
               int height,
               int angle)
This is a constructor.
Parameters:
data - input array
width - input image width
height - input image height
angle - tint angle (-180, 180)
Method Detail

setAllParameters

public void setAllParameters(int angle)

setAngle

public void setAngle(int angle)
This sets the tint angle.
Parameters:
data - input array
angle - tint angle (-180, 180)

getAngle

public int getAngle()
This returns the tint angle.

getWidth

public int getWidth()
This returns the image width.
Overrides:
getWidth in class java.awt.Component

getHeight

public int getHeight()
This returns the image height.
Overrides:
getHeight in class java.awt.Component

getOutputImage

public java.awt.Image getOutputImage()
This returns the output image.

getOutputArray

public int[] getOutputArray()
This returns the output array.

getMinimizeSize

public java.awt.Dimension getMinimizeSize()

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Component

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Component