Examples of Shape


Examples of org.adoptopenjdk.lambda.tutorial.exercise1.Shape

     * @see Iterable#forEach
     * @see Shape#setColor(Color)
     */
    @Test
    public void changeColorOfAllShapes() {
        List<Shape> myShapes = Arrays.asList(new Shape(BLUE), new Shape(BLACK), new Shape(YELLOW));

        // method under test
        Shapes.colorAll(myShapes, RED);

        assertThat(myShapes, hasSize(3));
View Full Code Here

Examples of org.apache.flex.swf.types.Shape

            for (int i = 0; i < tag.getGlyphShapeTable().length; i++)
            {
                indent();
                out.println("<glyph>");

                Shape shape = tag.getGlyphShapeTable()[i];
                indent++;
                printShapeWithTabs(shape);
                indent--;

                indent();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape

        // canvas.drawRectangle(0, height, getSize().getWidth() - 1,
        // getSize().getHeight() - height - 1, secondary2);
    }

    private void drawOrderIndicator(final Canvas canvas, final TableAxis axis, final int x) {
        Shape arrow;
        arrow = new Shape();
        if (((CollectionContent) getContent()).getReverseSortOrder()) {
            arrow.addPoint(0, 7);
            arrow.addPoint(3, 0);
            arrow.addPoint(6, 7);
        } else {
            arrow.addPoint(0, 0);
            arrow.addPoint(6, 0);
            arrow.addPoint(3, 7);
        }
        // canvas.drawRectangle(x + axis.getColumnWidth(i) - 10, 3, 7, 8,
        // Toolkit.getColor("secondary3"));
        canvas.drawShape(arrow, x, 3, Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2));
    }
View Full Code Here

Examples of org.apache.poi.hslf.model.Shape

            for (int j = 0; j < shape.length; j++) {
              if (shape[j] instanceof ShapeGroup){
                    ShapeGroup group = (ShapeGroup)shape[j];
                    Shape[] comps = group.getShapes();
                    for (int k = 0; k < comps.length; k++) {
                        Shape comp = comps[k];
                        if (comp instanceof Picture){
                            PictureData pict = ((Picture)comp).getPictureData();
                        }
                    }
                }
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Shape


                for(int i = 0; i < binTable.length(); i++) {
                        GenericPropertyNode nodo = binTable.getProperty(i);

                        Shape sh = new Shape(nodo);
                        _shapes.add(sh);
                        if(sh.isWithinDocument())
                                _shapesVisibili.add(sh);
                }
        }
View Full Code Here

Examples of org.codemap.util.geom.Shape

                (n2.getPrevControlPoint() == null) && (n2.getRoutingParent() == null))) {
            displayWidth = computeStraightEdge(edge);
        } else {
            displayWidth = computeEdge(edge);
        }
        Shape shape = edge.getShape();
        gc.setLineWidth((int) displayWidth);
        renderShape(gc, shape);
    }
View Full Code Here

Examples of org.eclipse.dd.di.Shape

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case DiPackage.SHAPE: {
            Shape shape = (Shape) theEObject;
            T result = caseShape(shape);
            if (result == null)
                result = caseNode(shape);
            if (result == null)
                result = caseDiagramElement(shape);
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Shape

   * @generated
   */
  public Node createSimplePredicateType_3001(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Shape node = NotationFactory.eINSTANCE.createShape();
    node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
    node
        .setType(eu.admire.visual.pmml.treemodel._40.diagram.part.PMMLVisualIDRegistry
            .getType(eu.admire.visual.pmml.treemodel._40.diagram.edit.parts.SimplePredicateTypeEditPart.VISUAL_ID));
    ViewUtil.insertChildView(containerView, node, index, persisted);
    node.setElement(domainElement);
    // initializeFromPreferences
    final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
        .getPreferenceStore();

    org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
        prefStore, IPreferenceConstants.PREF_LINE_COLOR);
    ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
        .getLineStyle_LineColor(), FigureUtilities
        .RGBToInteger(lineRGB));
    FontStyle nodeFontStyle = (FontStyle) node
        .getStyle(NotationPackage.Literals.FONT_STYLE);
    if (nodeFontStyle != null) {
      FontData fontData = PreferenceConverter.getFontData(prefStore,
          IPreferenceConstants.PREF_DEFAULT_FONT);
      nodeFontStyle.setFontName(fontData.getName());
View Full Code Here

Examples of org.eclipse.graphiti.mm.pictograms.Shape

   
    ILinkService ls = Graphiti.getLinkService();
    EObject linked = null;
    LocalVariableStatement modelObject = null;
    //Find PE
    Shape peShape = null;
    for (Shape s : d.getChildren()) {
      linked = ls.getBusinessObjectForLinkedPictogramElement(s);
      if (linked instanceof LocalVariableStatement) {
        LocalVariableStatement lvs = (LocalVariableStatement) linked;
View Full Code Here

Examples of org.elevenbits.westvleteren.model.item.Shape

        }
    }

    public void testCreateAndGetAndRemoveShape() throws Exception {
      log.warn("Creating a shape");
      Shape shape = new Shape("shape", "description");
      dao.saveShape(shape);
      Integer id = shape.getId();
      shape = dao.getShape(id);
      assertEquals(shape.getName(), "shape");
      assertEquals(shape.getDescription(), "description");
      log.warn("Shape created: " + shape);
      dao.removeShape(shape);
      log.warn("Shape removed");
      try {
        shape = dao.getShape(id);
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.