Package org.jdesktop.swingx.icon
Class RadianceIconUIResource
java.lang.Object
org.jdesktop.swingx.icon.RadianceIconUIResource
- All Implemented Interfaces:
Icon,UIResource,SwingConstants,JXIcon,RadianceIcon,SizingConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jdesktop.swingx.icon.RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory -
Field Summary
FieldsFields inherited from interface org.jdesktop.swingx.icon.SizingConstants
ACTION_ICON, BUTTON_ICON, L, LAUNCHER_ICON, M, N, S, SMALL_ICON, XL, XS, XXLFields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdoublebooleanvoidvoidsetColorFilter(RadianceIcon.ColorFilter colorFilter) voidsetDimension(Dimension newDimension) Changes the dimension ofthisicon.voidsetReflection(boolean horizontal, boolean vertical) A hint for point/axis reflection (mirroring) the icon when painting.voidsetRotation(double theta) A hint to rotate the icon when paintingbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdesktop.swingx.icon.JXIcon
setReflection, setRotationMethods inherited from interface org.jdesktop.swingx.icon.RadianceIcon
toImage
-
Field Details
-
delegate
-
-
Constructor Details
-
RadianceIconUIResource
-
-
Method Details
-
setReflection
public void setReflection(boolean horizontal, boolean vertical) Description copied from interface:JXIconA hint for point/axis reflection (mirroring) the icon when painting.setReflection(true, true)means point reflection- Specified by:
setReflectionin interfaceJXIcon- Parameters:
horizontal- will mirror the icon horizontal (X axis)vertical- will mirror the icon vertical (Y axis)
-
isReflection
public boolean isReflection()- Specified by:
isReflectionin interfaceJXIcon
-
setRotation
public void setRotation(double theta) Description copied from interface:JXIconA hint to rotate the icon when painting- Specified by:
setRotationin interfaceJXIcon- Parameters:
theta- the angle of rotation in radians, zero means no rotation
-
getRotation
public double getRotation()- Specified by:
getRotationin interfaceJXIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
paintIcon
-
setDimension
Description copied from interface:RadianceIconChanges the dimension ofthisicon.- Specified by:
setDimensionin interfaceRadianceIcon- Parameters:
newDimension- New dimension forthisicon.
-
supportsColorFilter
public boolean supportsColorFilter()- Specified by:
supportsColorFilterin interfaceRadianceIcon
-
setColorFilter
- Specified by:
setColorFilterin interfaceRadianceIcon
-