| com.xoetrope.swing.XReflectedImage
XReflectedImage | public class XReflectedImage extends XImage (Code) | | Display an image along with a reflection of that image at a user defined angle.
The image is render at a size that preserves the aspect ration but allows
enough room to just show both the image and its reflection
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
Field Summary | |
protected double | shear |
Method Summary | |
public int | getArc() Gets the amount of arc used on the border of
the component. | public double | getShear() Gets the degree of shear of the control's text. | public void | paintComponent(Graphics g) | public void | setArc(int value) Sets the amount of arc used on the border of
the component. | public int | setAttribute(String attribName, Object attribValue) Set one or more attributes of the component. | public void | setShear(double value) Sets the degree of shear of the control's text. |
shear | protected double shear(Code) | | The shear factor, defaults to -0.15
|
XReflectedImage | public XReflectedImage()(Code) | | Creates a new instance of XReflectedImage
|
getArc | public int getArc()(Code) | | Gets the amount of arc used on the border of
the component.
the arc amount |
getShear | public double getShear()(Code) | | Gets the degree of shear of the control's text.
The range is 0 to 3600.
the new shear factor |
paintComponent | public void paintComponent(Graphics g)(Code) | | Render the component
Parameters: g - the graphics context |
setArc | public void setArc(int value)(Code) | | Sets the amount of arc used on the border of
the component.
Parameters: value - the new arc amount |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- content, value=the image file name
- imagename, value=the image file name
- tooltip, value=the tooltip text
- hear, value=the percentage of shear for the reflection
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value 0 for success, non zero otherwise |
setShear | public void setShear(double value)(Code) | | Sets the degree of shear of the control's text.
The range is 0 to 3600.
Parameters: value - the new shear factor |
|
|