Examples of Rectangle


Examples of javafx.scene.shape.Rectangle

    final VBox vbox = new VBox();
    final HBox hbox = new HBox(2);
    final int bands = UISession.getMediaPlayer().getAudioSpectrumNumBands() - 20;
    final Rectangle[] rects = new Rectangle[bands];
    for (int i = 0; i < rects.length; i++) {
      rects[i] = new Rectangle();
      rects[i].getTransforms().add(new Rotate(180, 0, 0)); //
      rects[i].setFill(Color.GRAY);
      rects[i].setArcHeight(screenHeight);
      hbox.getChildren().add(rects[i]);
View Full Code Here

Examples of jcurses.util.Rectangle

    }
  }
 
 
  protected Rectangle getPreferredSize() {
    return new Rectangle(2+getMaxLength(),1);
  }
View Full Code Here

Examples of jimm.datavision.field.Rectangle

}

protected Rectangle initialFieldBounds() {
    ImageIcon imageIcon = ((ImageField)fw.getField()).getImageIcon();
    return new Rectangle(insertLoc.x, insertLoc.y, imageIcon.getIconWidth(),
       imageIcon.getIconHeight());
}
View Full Code Here

Examples of lineage2.commons.geometry.Rectangle

    if (coord.length > 2)
    {
      zmin = Integer.parseInt(coord[2]);
      zmax = Integer.parseInt(coord[3]);
    }
    Rectangle rectangle = new Rectangle(x1, y1, x2, y2);
    rectangle.setZmin(zmin);
    rectangle.setZmax(zmax);
    return rectangle;
  }
View Full Code Here

Examples of main.components.Rectangle

                    panel.addShape(new Oval(x, y, _x - x, _y - y));
                }
            }
            if(jRadioButtonRectangle.isSelected()){
                if(x > _x && y > _y){
                    panel.addShape(new Rectangle(_x, _y, x - _x, y - _y));
                }
                else if(x > _x && y < _y){
                    panel.addShape(new Rectangle(_x, y, x - _x, _y - y));
                }
                else if(x < _x && y > _y){
                    panel.addShape(new Rectangle(x, _y, _x - x, y - _y));
                }
                else{
                    panel.addShape(new Rectangle(x, y, _x - x, _y - y));
                }
            }
                x = y = _x = _y = 0;
                jButtonUndoShape.setEnabled(true);
        }
View Full Code Here

Examples of model.util.Rectangle

    }

    public void test_getVisionCells() throws IOException {
        this.retina.seeBMPImage("Array2DTest.bmp");

        Rectangle partialRetinaWanted = new Rectangle(new Point2D.Double(0, 0), new Point2D.Double(7, 2));
        VisionCell[][] partialVisionCells = this.retina.getVisionCells(partialRetinaWanted);
        int numberOfRows = partialVisionCells.length;
        int numberOfColumns = partialVisionCells[0].length;
        assertEquals(2, numberOfRows);
        assertEquals(7, numberOfColumns);
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.controls.Rectangle

     */
    public static Rectangle drawRectangle(JPanel form, int width, int height,
            int startX, int startY, int penColor, int fillColor, int lineStyle,
            int lineWeight, int contrastColor, int contrastPattern) {
        setForm(form);
        Rectangle rect = new Rectangle();
        rect.setVisible(true);
        if (lineStyle != -1)
            rect.setLineStyle(lineStyle);
        if (lineWeight != -127)
            rect.setLineWeight(lineWeight);
        if (penColor != 0)
            ColourChange.setForeground(rect, penColor);
        if (fillColor != 0)
            ColourChange.setBackground(rect, fillColor);
        java.awt.Point loc = location(startX, startY);
View Full Code Here

Examples of net.mygwt.ui.client.util.Rectangle

      DOM.setStyleAttribute(w.getElement(), "position", "absolute");
    }
   
    Element ct = container.getLayoutTarget();

    Rectangle rect = MyDOM.getBounds(ct, true);

    int width = rect.width - margin * 2;
    int height = rect.height - margin * 2;

    if (type == Style.HORIZONTAL) {
View Full Code Here

Examples of net.sf.arianne.marboard.client.entity.shape.Rectangle

    if (rpclass.equals("user")) {
      return new User(rpobject);
    } else if (rpclass.equals("dot")) {
      return new Dot(rpobject);
    } else if (rpclass.equals("rectangle")) {
      return new Rectangle(rpobject);
    } else if (rpclass.equals("straight_line")) {
      return new StraightLine(rpobject);
    } else if (rpclass.equals("oval")) {
      return new Oval(rpobject);
    } else {
View Full Code Here

Examples of net.sf.arianne.marboard.server.entity.shape.Rectangle

    if (rpclass.equals("user")) {
      return new User(object);
    } else if (rpclass.equals("dot")) {
      return new Dot(object);
    } else if (rpclass.equals("rectangle")) {
      return new Rectangle(object);
    } else if (rpclass.equals("straight_line")) {
      return new StraightLine(object);
    } else if (rpclass.equals("circle")) {
      return new Oval(object);
    }
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.