Package org.newdawn.slick.geom

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


     */
    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

   */
  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

  }

  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

  }

  public void render(GameContainer container, Graphics g)
      throws SlickException {
    IngameState state = (IngameState) this.world;
    RoundedRectangle r = new RoundedRectangle(x, y,
        container.getWidth() - 1, 40, 20);
    Color c = Color.blue;
    c.a = 0.3f;
    Font oldFont = g.getFont();
    g.setFont(font);
View Full Code Here

   */
  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

    Rectangle rect = new Rectangle(400, 100, 99, 99);
    g.draw(rect);
    rect = new Rectangle(400, 250, 99, 99);
    g.fill(rect);
   
    RoundedRectangle rrect = new RoundedRectangle(550, 100, 99, 99, 10);
    g.draw(rrect);
    rrect = new RoundedRectangle(550, 250, 99, 99, 10);
    g.fill(rrect);
   
    // Draw our overlays
    if(hideOverlay == false) {
       g.setColor(overlayColor);
View Full Code Here

     */
    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

TOP

Related Classes of org.newdawn.slick.geom.RoundedRectangle

Copyright © 2018 www.massapicom. 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.