| java.lang.Object com.salmonllc.util.ImageFactory
ImageFactory | public class ImageFactory (Code) | | This utility class is used to create images that can be streamed back to the browser via the GifEncoder class.
|
Method Summary | |
public synchronized Image | createOnePixelImage(Color color) This method creates a 1 pixel image. | public synchronized Image | createOvalButton(int width, int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, Color transparentColor, boolean clicked, boolean enabled) This method creates an oval shaped button. | public Image | createOvalButton(int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, Color transparentColor, boolean clicked, boolean enabled) This method creates a rectangular shaped button where the width is based on the size of the text. | public synchronized Image | createRectangleButton(int width, int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, boolean clicked, boolean enabled) This method creates a rectangular shaped button. | public Image | createRectangleButton(int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, boolean clicked, boolean enabled) This method creates a rectangular shaped button where the width is based on the size of the text. | public Image | createTab(int width, int height, Font f, String text, Color textColor, Color backColor, Color borderColor1, Color borderColor2, Color transColor, boolean selected) This method creates a tab image. | public Image | createTab(int height, Font f, String text, Color textColor, Color backColor, Color borderColor1, Color borderColor2, Color transColor, boolean selected) This method creates a tab image. | protected void | finalize() |
_showFrame | static boolean _showFrame(Code) | | |
ImageFactory | public ImageFactory()(Code) | | Create a new image factory
|
createOnePixelImage | public synchronized Image createOnePixelImage(Color color)(Code) | | This method creates a 1 pixel image.
java.awt.Image The button image Parameters: color - java.awt.Color The color to draw the text in |
createOvalButton | public synchronized Image createOvalButton(int width, int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, Color transparentColor, boolean clicked, boolean enabled)(Code) | | This method creates an oval shaped button.
java.awt.Image The button image Parameters: width - int The width of the button Parameters: height - int The height of the button Parameters: f - java.awt.Font The font to use to draw the text Parameters: text - java.lang.String The font to use to draw the text Parameters: textColor - java.awt.Color The color to draw the text in Parameters: backColor - java.awt.Color The color for the button background Parameters: topColor - java.awt.Color The color for the top and left border Parameters: bottomColor - java.awt.Color The color for the bottom and right border Parameters: transparentColor - java.awt.Color The color for the areas on the button that need to be transparent Parameters: clicked - boolean True if you want the button to appear to be clicked Parameters: enabled - boolean True if you want the button to appear to be enabled |
createOvalButton | public Image createOvalButton(int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, Color transparentColor, boolean clicked, boolean enabled)(Code) | | This method creates a rectangular shaped button where the width is based on the size of the text.
java.awt.Image The button image Parameters: height - int The height of the button Parameters: f - java.awt.Font The font to use to draw the text Parameters: text - java.lang.String The font to use to draw the text Parameters: textColor - java.awt.Color The color to draw the text in Parameters: backColor - java.awt.Color The color for the button background Parameters: topColor - java.awt.Color The color for the top and left border Parameters: bottomColor - java.awt.Color The color for the bottom and right border Parameters: transparentColor - java.awt.Color The color to use for transparent areas on the button Parameters: clicked - boolean True if you want the button to appear to be clicked Parameters: enabled - boolean True if you want the button to appear to be enabled |
createRectangleButton | public synchronized Image createRectangleButton(int width, int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, boolean clicked, boolean enabled)(Code) | | This method creates a rectangular shaped button.
java.awt.Image The button image Parameters: width - int The width of the button Parameters: height - int The height of the button Parameters: f - java.awt.Font The font to use to draw the text Parameters: text - java.lang.String The font to use to draw the text Parameters: textColor - java.awt.Color The color to draw the text in Parameters: backColor - java.awt.Color The color for the button background Parameters: topColor - java.awt.Color The color for the top and left border Parameters: bottomColor - java.awt.Color The color for the bottom and right border Parameters: clicked - boolean True if you want the button to appear to be clicked Parameters: enabled - boolean True if you want the button to appear to be enabled |
createRectangleButton | public Image createRectangleButton(int height, Font f, String text, Color textColor, Color backColor, Color topColor, Color bottomColor, boolean clicked, boolean enabled)(Code) | | This method creates a rectangular shaped button where the width is based on the size of the text.
java.awt.Image The button image Parameters: height - int The height of the button Parameters: f - java.awt.Font The font to use to draw the text Parameters: text - java.lang.String The font to use to draw the text Parameters: textColor - java.awt.Color The color to draw the text in Parameters: backColor - java.awt.Color The color for the button background Parameters: topColor - java.awt.Color The color for the top and left border Parameters: bottomColor - java.awt.Color The color for the bottom and right border Parameters: clicked - boolean True if you want the button to appear to be clicked Parameters: enabled - boolean True if you want the button to appear to be enabled |
createTab | public Image createTab(int width, int height, Font f, String text, Color textColor, Color backColor, Color borderColor1, Color borderColor2, Color transColor, boolean selected)(Code) | | This method creates a tab image.
java.awt.Image The tab image Parameters: width - int The width of the tab Parameters: height - int The height of the tab Parameters: f - java.awt.Font The font to use to draw the text Parameters: text - java.lang.String The font to use to draw the text Parameters: textColor - java.awt.Color The color to draw the text in Parameters: backColor - java.awt.Color The color for the button background Parameters: borderColor1 - java.awt.Color The color for the top and left border Parameters: borderColor2 - java.awt.Color The color for the right border Parameters: selected - boolean True if you want the button to appear to be selected (no underline) |
createTab | public Image createTab(int height, Font f, String text, Color textColor, Color backColor, Color borderColor1, Color borderColor2, Color transColor, boolean selected)(Code) | | This method creates a tab image. The width of the tab is determined by the text width.
java.awt.Image The tab image Parameters: width - int The width of the tab Parameters: height - int The height of the tab Parameters: f - java.awt.Font The font to use to draw the text Parameters: text - java.lang.String The font to use to draw the text Parameters: textColor - java.awt.Color The color to draw the text in Parameters: backColor - java.awt.Color The color for the button background Parameters: borderColor1 - java.awt.Color The color for the top and left border Parameters: borderColor2 - java.awt.Color The color for the right border Parameters: selected - boolean True if you want the button to appear to be selected (no underline) |
finalize | protected void finalize()(Code) | | |
|
|