Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Color.dispose()


        Color color = new Color(Display.getCurrent(), rgbs[rgbs.length
            * i / width]);
        graphics.setForegroundColor(color);
        graphics.drawLine(x + i, topY + (int) (i * yTopRate), x + i,
            bottomY - (int) (i * yBottomRate));
        color.dispose();
      }
      graphics.popState();
    }

  }
 
View Full Code Here


        Color color = new Color(Display.getCurrent(), rgbs[rgbs.length
            * i / width]);
        graphics.setForegroundColor(color);
        graphics.drawLine(x - i, topY + (int) (i * yTopRate), x - i,
            bottomY - (int) (i * yBottomRate));
        color.dispose();
      }
      graphics.popState();
    }
  }

 
View Full Code Here

      if (i != dottedCount - 1) {
        pad += paddings[i];
      }
    }
    graphics.popState();
    color.dispose();

  }

  private void drawDashedBorder(Graphics graphics, RGB[] rgbs, String style,
      Rectangle rect, int borderThick) {
View Full Code Here

      if (i != dottedCount - 1) {
        pad += paddings[i];
      }
    }
    graphics.popState();
    color.dispose();
  }

}
View Full Code Here

          ICSSPropertyID.ATTR_TEXTDECORATION)).intValue());
      y += fontHeight;
    }

    if (newColor != null) {
      newColor.dispose();
    }
  }

  /**
   * @param value
View Full Code Here

      TextLayoutSupport.paintTextDecoration(g, new Rectangle(x, y, width,
          g.getFontMetrics().getHeight()), ((Integer) getCSSStyle()
          .getStyleProperty(ICSSPropertyID.ATTR_TEXTDECORATION))
          .intValue());
      if (newColor != null) {
        newColor.dispose();
      }
    }
  }

  /**
 
View Full Code Here

          && (i * fontHeight < rect.height - VERTICAL_PADDING); i++) {
        g.drawString(_options[i], x, y);
        y += fontHeight;
      }
      if (newColor != null) {
        newColor.dispose();
      }

      int borderThick = 2;
      Rectangle barRect = new Rectangle(rect.x, rect.y + borderThick,
          rect.width - borderThick, rect.height - 2 * borderThick);
 
View Full Code Here

          break;
        }
        i++;
      }
      if (newColor != null) {
        newColor.dispose();
      }
    }
    int borderThick = 2;
    BorderUtil
        .drawVertialBar(g, ARRAWWIDTH, ARROWHEIGHT, borderThick, rect);
View Full Code Here

                  ICSSPropertyID.ATTR_TEXTDECORATION))
              .intValue(), range[0], range[1],
          ColorConstants.white, Display.getDefault().getSystemColor(SWT.COLOR_LIST_SELECTION));
    }
    if (color != result && color != null) {
      color.dispose();
    }
  }

  /**
   * Find out lines which has closer y coordinate to point, and then line
View Full Code Here

      }
    }
    g.popState();

    if (newColor != null) {
      newColor.dispose();
    }
  }

  /**
   * @param g
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.