Class TrafficLightGreenIcon

java.lang.Object
org.jdesktop.swingx.icon.TrafficLightGreenIcon
All Implemented Interfaces:
Icon, SwingConstants, JXIcon, RadianceIcon, SizingConstants

public class TrafficLightGreenIcon extends Object implements RadianceIcon
This class has been automatically generated using Radiance SVG converter.
  • Method Details

    • setReflection

      public void setReflection(boolean horizontal, boolean vertical)
      Description copied from interface: JXIcon
      A hint for point/axis reflection (mirroring) the icon when painting.

      setReflection(true, true) means point reflection

      Specified by:
      setReflection in interface JXIcon
      Parameters:
      horizontal - will mirror the icon horizontal (X axis)
      vertical - will mirror the icon vertical (Y axis)
    • isReflection

      public boolean isReflection()
      Specified by:
      isReflection in interface JXIcon
    • setRotation

      public void setRotation(double theta)
      Description copied from interface: JXIcon
      A hint to rotate the icon when painting
      Specified by:
      setRotation in interface JXIcon
      Parameters:
      theta - the angle of rotation in radians, zero means no rotation
    • getRotation

      public double getRotation()
      Specified by:
      getRotation in interface JXIcon
    • getOrigX

      public static double getOrigX()
      Returns the X of the bounding box of the original SVG image.
      Returns:
      The X of the bounding box of the original SVG image.
    • getOrigY

      public static double getOrigY()
      Returns the Y of the bounding box of the original SVG image.
      Returns:
      The Y of the bounding box of the original SVG image.
    • getOrigWidth

      public static double getOrigWidth()
      Returns the width of the bounding box of the original SVG image.
      Returns:
      The width of the bounding box of the original SVG image.
    • getOrigHeight

      public static double getOrigHeight()
      Returns the height of the bounding box of the original SVG image.
      Returns:
      The height of the bounding box of the original SVG image.
    • getIconHeight

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • setDimension

      public void setDimension(Dimension newDimension)
      Description copied from interface: RadianceIcon
      Changes the dimension of this icon.
      Specified by:
      setDimension in interface RadianceIcon
      Parameters:
      newDimension - New dimension for this icon.
    • supportsColorFilter

      public boolean supportsColorFilter()
      Specified by:
      supportsColorFilter in interface RadianceIcon
    • setColorFilter

      public void setColorFilter(RadianceIcon.ColorFilter colorFilter)
      Specified by:
      setColorFilter in interface RadianceIcon
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • of

      public static RadianceIcon of(int width, int height)
      Returns a new instance of this icon with specified dimensions.
      Parameters:
      width - Required width of the icon
      height - Required height of the icon
      Returns:
      A new instance of this icon with specified dimensions.
    • uiResourceOf

      public static RadianceIconUIResource uiResourceOf(int width, int height)
      Returns a new UIResource instance of this icon with specified dimensions.
      Parameters:
      width - Required width of the icon
      height - Required height of the icon
      Returns:
      A new UIResource instance of this icon with specified dimensions.
    • factory

      public static RadianceIcon.Factory factory()
      Returns a factory that returns instances of this icon on demand.
      Returns:
      Factory that returns instances of this icon on demand.