Documentation of 'org.jhotdraw.gui.plaf.palette.PaletteSliderThumbIcon' Java class
PaletteSliderThumbIcon
org.jhotdraw.gui.plaf.palette

Class PaletteSliderThumbIcon

  • All Implemented Interfaces:
    javax.swing.Icon


    public class PaletteSliderThumbIcon
    extends MultiIcon
    An Icon with different visuals reflecting the state of the slider on which it draws on.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PaletteSliderThumbIcon(javax.swing.Icon[] icons)
      Creates a new instance.
      PaletteSliderThumbIcon(javax.swing.Icon e, javax.swing.Icon ep, javax.swing.Icon d, javax.swing.Icon i, javax.swing.Icon di)
      Creates a new instance.
      PaletteSliderThumbIcon(java.awt.Image[] images)
      Creates a new instance.
      PaletteSliderThumbIcon(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly)
      Creates a new instance.
      PaletteSliderThumbIcon(java.lang.String resource, int tileCount, boolean isTiledHorizontaly)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PaletteSliderThumbIcon

        public PaletteSliderThumbIcon(javax.swing.Icon e,
                                      javax.swing.Icon ep,
                                      javax.swing.Icon d,
                                      javax.swing.Icon i,
                                      javax.swing.Icon di)
        Creates a new instance. All icons must have the same dimensions. If an icon is null, an icon is derived for the state from the other icons.
      • PaletteSliderThumbIcon

        public PaletteSliderThumbIcon(java.awt.Image[] images)
        Creates a new instance. All icons must have the same dimensions. The array indices are used to represente the following states: [0] Enabled [1] Enabled Pressed [2] Disabled [3] Enabled Inactive [4] Disabled Inactive [5] Focus Ring If an array element is null, an icon is derived for the state from the other icons.
      • PaletteSliderThumbIcon

        public PaletteSliderThumbIcon(javax.swing.Icon[] icons)
        Creates a new instance. All icons must have the same dimensions. If an icon is null, nothing is drawn for this state.
      • PaletteSliderThumbIcon

        public PaletteSliderThumbIcon(java.awt.Image tiledImage,
                                      int tileCount,
                                      boolean isTiledHorizontaly)
        Creates a new instance. The icon representations are created lazily from the image.
      • PaletteSliderThumbIcon

        public PaletteSliderThumbIcon(java.lang.String resource,
                                      int tileCount,
                                      boolean isTiledHorizontaly)
        Creates a new instance. The icon representations are created lazily from the specified resource.
        Parameters:
        resource - A resource URL.
        tileCount - The number of tiles.
        isTiledHorizontaly - True if the image is to be tilled horizontally, false for vertically.
    • Method Detail

      • paintIcon

        public void paintIcon(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
        Overrides:
        paintIcon in class MultiIcon

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.