Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.Rectangle.right()


    r.x -= 2;
    g.drawLine(r.x, r.y, r.right(), r.y); // Top line
    g.drawLine(r.x, r.bottom(), r.right(), r.bottom()); // Bottom line
    g.drawLine(r.x, r.bottom(), r.x, r.y); // left line

    g.drawLine(r.right() + 7, r.y + r.height / 2, r.right(), r.y);
    g.drawLine(r.right() + 7, r.y + r.height / 2, r.right(), r.bottom());
  }

}
View Full Code Here


    g.drawLine(r.x, r.y, r.right(), r.y); // Top line
    g.drawLine(r.x, r.bottom(), r.right(), r.bottom()); // Bottom line
    g.drawLine(r.x, r.bottom(), r.x, r.y); // left line

    g.drawLine(r.right() + 7, r.y + r.height / 2, r.right(), r.y);
    g.drawLine(r.right() + 7, r.y + r.height / 2, r.right(), r.bottom());
  }

}
View Full Code Here

    g.drawLine(r.x, r.y, r.right(), r.y); // Top line
    g.drawLine(r.x, r.bottom(), r.right(), r.bottom()); // Bottom line
    g.drawLine(r.x, r.bottom(), r.x, r.y); // left line

    g.drawLine(r.right() + 7, r.y + r.height / 2, r.right(), r.y);
    g.drawLine(r.right() + 7, r.y + r.height / 2, r.right(), r.bottom());
  }

}
View Full Code Here

        if (selected) {
            g.setBackgroundColor(ColorConstants.menuBackgroundSelected);
            g.setForegroundColor(ColorConstants.menuForegroundSelected);
        }
        g.fillRectangle(r.x, r.y, 5, r.height - 5);
        g.fillRectangle(r.right() - 9, r.y, 5, r.height - 5);
        g.fillRectangle(r.x, r.bottom() - 9, r.width - 5, 5);
        if (getHeader().getPreferredSize().height < 20) {
            g.fillRectangle(r.x, r.y, r.width - 5, 20);
        }
        else {
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.