Exemple #1
0
    public int getIconHeight(SynthContext context) {
      Icon icon = getIcon(context);

      if (icon != null) {
        return icon.getIconHeight();
      }
      return 0;
    }
Exemple #2
0
    public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) {
      Icon icon = getIcon(context);

      if (icon != null) {
        if (context == null) {
          icon.paintIcon(null, g, x, y);
        } else {
          icon.paintIcon(context.getComponent(), g, x, y);
        }
      }
    }