org.lyra.Widgets
Class ResizeIcon
java.lang.Object
org.lyra.Widgets.ResizeIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class ResizeIcon
- extends java.lang.Object
- implements javax.swing.Icon
Creates an icon used for the resizing capability of a window. This makes
the window fall in line with the bulk of Windows-Based applications which
use this sort of UI element.
- Version:
- 1.0.5, %Revision, 174%, %LastChangedDate, 27/10/12 3:33PM%
- Author:
- Martin Foster
Method Summary |
private void |
draw3dSquare(java.awt.Graphics g,
int x,
int y)
In order to produce a 3D effect used for the interface element we first
start by drawing the white component. |
private void |
drawSquare(java.awt.Graphics g,
int x,
int y)
Draws a singular point used with the structure. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THREE_D_EFFECT_COLOR
private static final java.awt.Color THREE_D_EFFECT_COLOR
SQUARE_COLOR_LEFT
private static final java.awt.Color SQUARE_COLOR_LEFT
SQUARE_COLOR_TOP_RIGHT
private static final java.awt.Color SQUARE_COLOR_TOP_RIGHT
SQUARE_COLOR_BOTTOM_RIGHT
private static final java.awt.Color SQUARE_COLOR_BOTTOM_RIGHT
WIDTH
private static final int WIDTH
- See Also:
- Constant Field Values
HEIGHT
private static final int HEIGHT
- See Also:
- Constant Field Values
ResizeIcon
public ResizeIcon()
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon
draw3dSquare
private void draw3dSquare(java.awt.Graphics g,
int x,
int y)
- In order to produce a 3D effect used for the interface element we first
start by drawing the white component. That component is handed by this
method.
- Parameters:
g
- Graphics drawing instance.x
- Coordinate on the X plane.y
- Coordinate on the Y plane.
drawSquare
private void drawSquare(java.awt.Graphics g,
int x,
int y)
- Draws a singular point used with the structure. Used to complete the
three dimensional look the draw3dSquare method has provided a base for.
- Parameters:
g
- Graphics drawing instance.x
- Coordinate on the X plane.y
- Coordinate on the Y plane.