com.miginfocom.util.gfx
Class ImageBorder

java.lang.Object
  extended by com.miginfocom.util.gfx.ScaleableImage
      extended by com.miginfocom.util.gfx.SlicedImage
          extended by com.miginfocom.util.gfx.ImageBorder
All Implemented Interfaces:
java.awt.Transparency, java.io.Serializable, javax.swing.border.Border, javax.swing.Icon

public class ImageBorder
extends SlicedImage
implements javax.swing.border.Border

A border based on a SlicedImage.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.miginfocom.util.gfx.SlicedImage
SlicedImage.ImageSlice
 
Field Summary
 
Fields inherited from class com.miginfocom.util.gfx.SlicedImage
slices
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
ImageBorder(SliceSpec spec)
           
ImageBorder(SliceSpec spec, XtdImage image)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class com.miginfocom.util.gfx.SlicedImage
createSlices, drawImage, equals, flush, getCenterSize, getIconHeight, getIconWidth, getSliceDimSz, getSliceSpec, getTransparency, getXtdImage, paintIcon, setXtdImage
 
Methods inherited from class com.miginfocom.util.gfx.ScaleableImage
drawImage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBorder

public ImageBorder(SliceSpec spec)

ImageBorder

public ImageBorder(SliceSpec spec,
                   XtdImage image)
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.