Examples of RoundedRectangle


Examples of org.eclipse.draw2d.RoundedRectangle

            DroolsEclipsePlugin.getDefault().getBundle().getEntry("icons/action.gif")).createImage();
       
        private RoundedRectangle rectangle;
       
        protected void customizeFigure() {
            rectangle = new RoundedRectangle();
            rectangle.setCornerDimensions(new Dimension(25, 25));
            add(rectangle, 0);
            rectangle.setBackgroundColor(color);
            rectangle.setBounds(getBounds());
            setSelected(false);
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

            DroolsEclipsePlugin.getDefault().getBundle().getEntry("icons/timer.gif")).createImage();
           
        private RoundedRectangle rectangle;
       
        protected void customizeFigure() {
            rectangle = new RoundedRectangle();
            rectangle.setCornerDimensions(new Dimension(25, 25));
            add(rectangle, 0);
            rectangle.setBackgroundColor(color);
            rectangle.setBounds(getBounds());
            setSelected(false);
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.RoundedRectangle

   */
  private void createBox(IAddContext context, LocalVariableStatement lvs,
      ContainerShape containerShape, int height) {

    // create and set graphics algorithm
    RoundedRectangle roundedRectangle =
        Graphiti.getGaService().createRoundedRectangle(
            containerShape, 5, 5);
    roundedRectangle.setStyle(StyleUtil.getStyleForPE(getDiagram()));
    Graphiti.getGaService().setLocationAndSize(roundedRectangle,
        context.getX(), context.getY(), BOX_WIDTH, height);
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.RoundedRectangle

    IGaService gaService = Graphiti.getGaService();

    {
      // create and set graphics algorithm
      RoundedRectangle roundedRectangle =
          gaService.createRoundedRectangle(containerShape, 5, 5);
      roundedRectangle.setStyle(StyleUtil.getStyleForCI(getDiagram()));
      gaService.setLocationAndSize(roundedRectangle,
          context.getX(), context.getY(), width, height);

      //Don't think this should happen, but want to be sure
      if (addedVar.eResource() == null) {
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.RoundedRectangle

    IGaService gaService = Graphiti.getGaService();

    {
      // create and set graphics algorithm
      RoundedRectangle roundedRectangle =
          gaService.createRoundedRectangle(containerShape, 5, 5);
      roundedRectangle.setStyle(StyleUtil.getStyleForLiteral(getDiagram()));
      gaService.setLocationAndSize(roundedRectangle,
          context.getX() + 10, context.getY() + 10, width, height);

      //Don't think this should happen, but want to check
      if (addedObj.eResource() == null) {
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.RoundedRectangle

    org.eclipse.swt.graphics.Rectangle contentRect = new org.eclipse.swt.graphics.Rectangle(0 + BASE_RECT_SPACE_X, 0 + BASE_RECT_SPACE_Y, content_width, image_height + label_height + IMAGE_LABEL_SPACE + TOP_BOTTOM_SPACE + TOP_BOTTOM_SPACE);
    org.eclipse.swt.graphics.Rectangle imageRect = new org.eclipse.swt.graphics.Rectangle(0 + BASE_RECT_SPACE_X, 0 + BASE_RECT_SPACE_Y + TOP_BOTTOM_SPACE, content_width, image_height);
    org.eclipse.swt.graphics.Rectangle labelRect = new org.eclipse.swt.graphics.Rectangle(0 + BASE_RECT_SPACE_X, 0 + BASE_RECT_SPACE_Y + image_height + IMAGE_LABEL_SPACE, content_width, label_height + TOP_BOTTOM_SPACE);
   
    final IGaService gaService = Graphiti.getGaService();
    final RoundedRectangle baseRectangle = gaService.createRoundedRectangle(containerShape, ROUNDED_RECTANGLE_WIDTH, ROUNDED_RECTANGLE_HEIGHT);

    // create invisible outer rectangle expanded by
    // the width needed for the anchor
    gaService.setLocationAndSize(baseRectangle, baseRect.x, baseRect.y, baseRect.width, baseRect.height);
    baseRectangle.setFilled(false);
    baseRectangle.setLineVisible(false);
   
    // shadow
    RoundedRectangle shadowRectangle; // need to access it later
    {
      // create and set visible rectangle inside invisible rectangle
      shadowRectangle = gaService.createRoundedRectangle(baseRectangle, ROUNDED_RECTANGLE_WIDTH, ROUNDED_RECTANGLE_HEIGHT);
      shadowRectangle.setParentGraphicsAlgorithm(baseRectangle);
      shadowRectangle.setStyle(StyleUtil.getShadowStyleForCamelClass(getDiagram()));
      shadowRectangle.setLineVisible(false);
      shadowRectangle.setFilled(true);
      gaService.setLocationAndSize(shadowRectangle, shadowRect.x, shadowRect.y, shadowRect.width, shadowRect.height);
    }

    // the real figure
    RoundedRectangle roundedRectangle; // need to access it later
    {
      // create and set visible rectangle inside invisible rectangle
      roundedRectangle = gaService.createRoundedRectangle(baseRectangle, ROUNDED_RECTANGLE_WIDTH, ROUNDED_RECTANGLE_HEIGHT);
      roundedRectangle.setParentGraphicsAlgorithm(baseRectangle);
      roundedRectangle.setStyle(StyleUtil.getStyleForCamelClass(getDiagram()));
      gaService.setLocationAndSize(roundedRectangle, contentRect.x, contentRect.y, contentRect.width, contentRect.height);
    }
   
    // image
    {
View Full Code Here

Examples of org.newdawn.slick.geom.RoundedRectangle

   */
  public void init(GameContainer container) throws SlickException {
    this.container = container;
 
    rect = new Rectangle(400,100,200,150);
    round = new RoundedRectangle(150,100,200,150,50);
    round2 = new RoundedRectangle(150,300,200,150,50);
    center = new Rectangle(350,250,100,100);
   
    poly = new Polygon();
    poly.addPoint(400,350);
    poly.addPoint(550,320);
View Full Code Here

Examples of org.newdawn.slick.geom.RoundedRectangle

     */
    public void init(GameContainer container) throws SlickException {
        shapes = new ArrayList();
        rect = new Rectangle(10, 10, 100, 80);
        shapes.add(rect);
        roundRect = new RoundedRectangle(150, 10, 60, 80, 20);
        shapes.add(roundRect);
        ellipse = new Ellipse(350, 40, 50, 30);
        shapes.add(ellipse);
        circle = new Circle(470, 60, 50);
        shapes.add(circle);
View Full Code Here

Examples of org.newdawn.slick.geom.RoundedRectangle

   */
  public void init(GameContainer container) throws SlickException {
    this.container = container;
 
    rect = new Rectangle(400,100,200,150);
    round = new RoundedRectangle(150,100,200,150,50);
    round2 = new RoundedRectangle(150,300,200,150,50);
    center = new Rectangle(350,250,100,100);
   
    poly = new Polygon();
    poly.addPoint(400,350);
    poly.addPoint(550,320);
View Full Code Here

Examples of org.newdawn.slick.geom.RoundedRectangle

  }

  public static void showMessage(GameContainer container, Graphics g,
      int xpos, int ypos, int width, int height, int radius, Color c,
      String text, int spaceText) {
    RoundedRectangle r = new RoundedRectangle(xpos, ypos, width, height,
        radius);
    c.a = 0.6f;
    g.setColor(c);
    g.fill(r);
    g.draw(r);
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.