org.apache.myfaces.custom.roundeddiv
Class RoundedBorderGenerator
java.lang.Object
org.apache.myfaces.custom.roundeddiv.RoundedBorderGenerator
public class RoundedBorderGenerator
- extends java.lang.Object
Class that generates rounded images
- Version:
- $Revision: 676950 $ $Date: 2008-07-15 11:09:46 -0500 (Tue, 15 Jul 2008) $
- Author:
- Andrew Robinson (latest modification by $Author: skitching $)
Constructor Summary |
RoundedBorderGenerator(java.awt.Color borderColor,
int borderWidth,
int cornerRadius,
java.awt.Color color,
java.awt.Color background,
java.awt.Dimension size,
boolean inverse)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SECTION_TOPLEFT
public static final int SECTION_TOPLEFT
- See Also:
- Constant Field Values
SECTION_TOP
public static final int SECTION_TOP
- See Also:
- Constant Field Values
SECTION_TOPRIGHT
public static final int SECTION_TOPRIGHT
- See Also:
- Constant Field Values
SECTION_LEFT
public static final int SECTION_LEFT
- See Also:
- Constant Field Values
SECTION_CENTER
public static final int SECTION_CENTER
- See Also:
- Constant Field Values
SECTION_RIGHT
public static final int SECTION_RIGHT
- See Also:
- Constant Field Values
SECTION_BOTTOMLEFT
public static final int SECTION_BOTTOMLEFT
- See Also:
- Constant Field Values
SECTION_BOTTOM
public static final int SECTION_BOTTOM
- See Also:
- Constant Field Values
SECTION_BOTTOMRIGHT
public static final int SECTION_BOTTOMRIGHT
- See Also:
- Constant Field Values
RoundedBorderGenerator
public RoundedBorderGenerator(java.awt.Color borderColor,
int borderWidth,
int cornerRadius,
java.awt.Color color,
java.awt.Color background,
java.awt.Dimension size,
boolean inverse)
- Constructor
- Parameters:
borderColor
- Border colorborderWidth
- Border widthcornerRadius
- Corner radiuscolor
- Foreground colorbackground
- Background colorsize
- Image sizeinverse
- if the 3D border should be inverse (depressed look)
dispose
public void dispose()
isInverse
public boolean isInverse()
- Returns:
- the inverse
getBackground
public java.awt.Color getBackground()
- Returns:
- the background
getBorderColor
public java.awt.Color getBorderColor()
- Returns:
- the borderColor
getBorderWidth
public int getBorderWidth()
- Returns:
- the borderWidth
getColor
public java.awt.Color getColor()
- Returns:
- the color
getCornerRadius
public int getCornerRadius()
- Returns:
- the cornerRadius
getSize
public java.awt.Dimension getSize()
- Returns:
- the size
createImageSection
public java.awt.image.BufferedImage createImageSection(int section)
createImage
public java.awt.image.BufferedImage createImage()
main
public static void main(java.lang.String[] args)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.