Class ShiftedIcon

  • All Implemented Interfaces:
    Icon

    public class ShiftedIcon
    extends Object
    implements Icon
    ShiftedIcon renders a target icon at a different location and can return different width and height values than the target.
    • Constructor Detail

      • ShiftedIcon

        public ShiftedIcon​(Icon target,
                           Point shift)
        Creates a new instance.
      • ShiftedIcon

        public ShiftedIcon​(Icon target,
                           Rectangle shiftAndSize)