MATES 3.0-rc2

org.mates.ui.graphical
Class MatesIcon

java.lang.Object
  extended byjava.awt.Image
      extended byjava.awt.image.BufferedImage
          extended byorg.mates.ui.graphical.MatesIcon
All Implemented Interfaces:
javax.swing.Icon, java.awt.image.RenderedImage, java.awt.image.WritableRenderedImage

public class MatesIcon
extends java.awt.image.BufferedImage
implements javax.swing.Icon

Class for painting the MATES logo.

Author:
Evan Sultanik

Field Summary
 
Fields inherited from class java.awt.image.BufferedImage
TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY
 
Fields inherited from class java.awt.Image
SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH, UndefinedProperty
 
Constructor Summary
MatesIcon(int width, int height)
          Constructs a new MATES icon of a specific width and height.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paint(java.awt.Graphics graphics)
          Draws this icon to the given graphics object, with an offset position of (0, 0).
 void paintIcon(java.awt.Component component, java.awt.Graphics graphics, int x, int y)
           
 
Methods inherited from class java.awt.image.BufferedImage
addTileObserver, coerceData, copyData, createGraphics, flush, getAlphaRaster, getColorModel, getData, getData, getGraphics, getHeight, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getRaster, getRGB, getRGB, getSampleModel, getSource, getSources, getSubimage, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString
 
Methods inherited from class java.awt.Image
getScaledInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatesIcon

public MatesIcon(int width,
                 int height)
Constructs a new MATES icon of a specific width and height.

Method Detail

paint

public void paint(java.awt.Graphics graphics)
Draws this icon to the given graphics object, with an offset position of (0, 0). The dimensions of the drawn icon will be equal to those provided when this icon was constructed.


getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component component,
                      java.awt.Graphics graphics,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

MATES 3.0-rc2

Submit a bug or request a feature
http://mates.sourceforge.net/

Copyright 2004 Evan Sultanik