net.sf.jtikz
Class JTikzIcon
- java.lang.Object
-
- java.awt.Image
-
- java.awt.image.BufferedImage
-
- net.sf.jtikz.JTikzIcon
-
- All Implemented Interfaces:
- java.awt.image.RenderedImage, java.awt.image.WritableRenderedImage, java.awt.Transparency, javax.swing.Icon
public class JTikzIcon extends java.awt.image.BufferedImage implements javax.swing.IconClass for painting the JTikZ logo.
-
-
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
-
-
Constructor Summary
Constructors Constructor and Description JTikzIcon(int width, int height)Constructs a new MATES icon of a specific width and height.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetIconHeight()intgetIconWidth()static voidmain(java.lang.String[] args)voidpaint(java.awt.Graphics graphics)Draws this icon to the givengraphicsobject, with an offset position of (0, 0).voidpaintIcon(java.awt.Component component, java.awt.Graphics graphics, int x, int y)-
Methods inherited from class java.awt.image.BufferedImage
addTileObserver, coerceData, copyData, createGraphics, 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, getTransparency, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString
-
-
-
-
Constructor Detail
-
JTikzIcon
public JTikzIcon(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 givengraphicsobject, 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:
getIconWidthin interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component component, java.awt.Graphics graphics, int x, int y)- Specified by:
paintIconin interfacejavax.swing.Icon
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
DataMelt 3.0 © DataMelt by jWork.ORG