Package ch.sahits.game.graphic.image.model

Examples of ch.sahits.game.graphic.image.model.NamedPolygon.addPoint()


    poly.addPoint(x, y+scrollUp.getHeight());
    polygons.add(poly, new ScrollUpAction());
   
    y = getBounds().y+bounds.height-insets.bottom-scrollDown.getHeight();
    poly = new NamedPolygon("scrollDown");
    poly.addPoint(x, y);
    poly.addPoint(x+scrollDown.getWidth(), y);
    poly.addPoint(x+scrollDown.getWidth(), y+scrollDown.getHeight());
    poly.addPoint(x, y+scrollDown.getHeight());
    polygons.add(poly, new ScrollDownAction());
  }
View Full Code Here


    polygons.add(poly, new ScrollUpAction());
   
    y = getBounds().y+bounds.height-insets.bottom-scrollDown.getHeight();
    poly = new NamedPolygon("scrollDown");
    poly.addPoint(x, y);
    poly.addPoint(x+scrollDown.getWidth(), y);
    poly.addPoint(x+scrollDown.getWidth(), y+scrollDown.getHeight());
    poly.addPoint(x, y+scrollDown.getHeight());
    polygons.add(poly, new ScrollDownAction());
  }
View Full Code Here

   
    y = getBounds().y+bounds.height-insets.bottom-scrollDown.getHeight();
    poly = new NamedPolygon("scrollDown");
    poly.addPoint(x, y);
    poly.addPoint(x+scrollDown.getWidth(), y);
    poly.addPoint(x+scrollDown.getWidth(), y+scrollDown.getHeight());
    poly.addPoint(x, y+scrollDown.getHeight());
    polygons.add(poly, new ScrollDownAction());
  }

  @Override
View Full Code Here

    y = getBounds().y+bounds.height-insets.bottom-scrollDown.getHeight();
    poly = new NamedPolygon("scrollDown");
    poly.addPoint(x, y);
    poly.addPoint(x+scrollDown.getWidth(), y);
    poly.addPoint(x+scrollDown.getWidth(), y+scrollDown.getHeight());
    poly.addPoint(x, y+scrollDown.getHeight());
    polygons.add(poly, new ScrollDownAction());
  }

  @Override
  public void gameRender(Graphics gScr) {
View Full Code Here

   */
  private void addOffsetPolygon(final Rectangle bounds, GlyphVector gv,
      int x, int y, String polyName, Runnable action) {
    NamedPolygon polygon = new NamedPolygon(polyName);
    Rectangle rect = gv.getVisualBounds().getBounds();
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y+rect.height);
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y+rect.height);
    offsetPolys.add(polygon, action);
  }
View Full Code Here

  private void addOffsetPolygon(final Rectangle bounds, GlyphVector gv,
      int x, int y, String polyName, Runnable action) {
    NamedPolygon polygon = new NamedPolygon(polyName);
    Rectangle rect = gv.getVisualBounds().getBounds();
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y+rect.height);
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y+rect.height);
    offsetPolys.add(polygon, action);
  }
  /**
 
View Full Code Here

      int x, int y, String polyName, Runnable action) {
    NamedPolygon polygon = new NamedPolygon(polyName);
    Rectangle rect = gv.getVisualBounds().getBounds();
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y+rect.height);
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y+rect.height);
    offsetPolys.add(polygon, action);
  }
  /**
   * check if the notice is to large to be displayed without scrolling
View Full Code Here

    NamedPolygon polygon = new NamedPolygon(polyName);
    Rectangle rect = gv.getVisualBounds().getBounds();
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y);
    polygon.addPoint(bounds.x+x+rect.width, bounds.y+y+rect.y+rect.height);
    polygon.addPoint(bounds.x+x, bounds.y+y+rect.y+rect.height);
    offsetPolys.add(polygon, action);
  }
  /**
   * check if the notice is to large to be displayed without scrolling
   * @return
 
View Full Code Here

   * Setting the positions of the polygons on the screen
   */
  private void initStartPolygons() {
    // TODO implement PolygonLoader
    NamedPolygon poly = new NamedPolygon(names[TEXT_FOCUS_NEW]);
    poly.addPoint(offsetter.computeXOffset(590),
        offsetter.computeYOffset(38));
    poly.addPoint(offsetter.computeXOffset(662),
        offsetter.computeYOffset(45));
    poly.addPoint(offsetter.computeXOffset(654),
        offsetter.computeYOffset(74));
View Full Code Here

  private void initStartPolygons() {
    // TODO implement PolygonLoader
    NamedPolygon poly = new NamedPolygon(names[TEXT_FOCUS_NEW]);
    poly.addPoint(offsetter.computeXOffset(590),
        offsetter.computeYOffset(38));
    poly.addPoint(offsetter.computeXOffset(662),
        offsetter.computeYOffset(45));
    poly.addPoint(offsetter.computeXOffset(654),
        offsetter.computeYOffset(74));
    poly.addPoint(offsetter.computeXOffset(585),
        offsetter.computeYOffset(65));
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.