org.apache.myfaces.custom.roundeddiv
Class RoundedBorderGenerator

java.lang.Object
  extended by 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 $)

Field Summary
static int SECTION_BOTTOM
           
static int SECTION_BOTTOMLEFT
           
static int SECTION_BOTTOMRIGHT
           
static int SECTION_CENTER
           
static int SECTION_LEFT
           
static int SECTION_RIGHT
           
static int SECTION_TOP
           
static int SECTION_TOPLEFT
           
static int SECTION_TOPRIGHT
           
 
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
 
Method Summary
 java.awt.image.BufferedImage createImage()
           
 java.awt.image.BufferedImage createImageSection(int section)
           
 void dispose()
           
 java.awt.Color getBackground()
           
 java.awt.Color getBorderColor()
           
 int getBorderWidth()
           
 java.awt.Color getColor()
           
 int getCornerRadius()
           
 java.awt.Dimension getSize()
           
 boolean isInverse()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 color
borderWidth - Border width
cornerRadius - Corner radius
color - Foreground color
background - Background color
size - Image size
inverse - if the 3D border should be inverse (depressed look)
Method Detail

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.