Class DoubleIcon

java.lang.Object
com.nomagic.ui.DoubleIcon
All Implemented Interfaces:
Icon

@OpenApiAll public class DoubleIcon extends Object implements Icon
Icon for painting two wrapped icons - icon B on top of icon A.
  • Field Details

    • iconA

      protected Icon iconA
    • iconB

      protected Icon iconB
  • Constructor Details

    • DoubleIcon

      public DoubleIcon(Icon iconA, Icon iconB)
      Constructor
      Parameters:
      iconA - icon below
      iconB - icon above
    • DoubleIcon

      public DoubleIcon(Icon iconA, Icon iconB, int iconBDeltaX, int iconBDeltaY)
      Constructor
      Parameters:
      iconA - icon below
      iconB - icon above
      iconBDeltaX - iconB translation by X
      iconBDeltaY - iconB translation by Y
    • DoubleIcon

      public DoubleIcon(Icon iconA, Icon iconB, int iconBDeltaX, int iconBDeltaY, int width, int height)
      Constructor. Allows to specify icon width or height
      Parameters:
      iconA - icon below
      iconB - icon above
      iconBDeltaX - iconB translation by X
      iconBDeltaY - iconB translation by Y
      width - icon width
      height - icon height
  • Method Details