Examples of Figure


Examples of diva.canvas.Figure

        path.lineTo(280, 180);
        path.lineTo(240, 200);
        path.lineTo(280, 220);
        path.lineTo(240, 240);

        Figure line = new BasicFigure(path);
        layer.add(line);
    }
View Full Code Here

Examples of diva.canvas.Figure

     */
    public void translate(LayerEvent e, double x, double y) {
        Iterator i = targets();

        while (i.hasNext()) {
            Figure t = (Figure) i.next();
            t.translate(x, y);
        }
    }
View Full Code Here

Examples of hexenschach.figures.Figure

                // Prüfalgorithmus
                if(pCurrentBoard.boardHM.get(analyzedCoord) != null){                       // Wenn Figur auf dem Feld steht...
                    if(pCurrentBoard.getPlayer(analyzedCoord) == pCurrentPlayer){           // Prüfe: Figur vom aktiven Spieler?

                        Figure ownFigure = pCurrentBoard.getFigure(analyzedCoord);          // Zu ziehende eigene Figur bestimmen

                        // Alle möglichen Züge der Figur anfordern
                        TurnPossibility possibleFigureMove[] = boardWithout.calculateTurnPossibility(fieldCoord);
                        if(possibleFigureMove != null){
                            for(int i = 0; i <  possibleFigureMove.length; i++){            // Solange die Figur eine Zugmöglichkeit hat...

                                TurnPossibility currentMove = possibleFigureMove[i];        // Aktueller Zug der zu analysierenden Figur
                                if(currentMove.to.equals(analyzedCoord)){                   // Wenn die Figur auf die zu analysierende Koordinate gelangt...
                                    points = points + Ballancing.valueOf(ownFigure.getType());// Punkte addieren.
                                }
                            }
                        }
                    }
                }
View Full Code Here

Examples of org.drools.benchmark.model.cep.Figure

    private void insertLetter(int key) {
        ksession.insert( new Letter( key, (char)('A' + ((key / 100) % 26)) ) );
    }

    private void insertFigure(int key) {
        ksession.insert( new Figure( key, 10000000 + (key % 10000000) ) );
    }
View Full Code Here

Examples of org.eclipse.draw2d.Figure

  /**
   * @generated
   */
  protected IFigure createFocusFeedbackFigure() {
    return new Figure() {

      protected void paintFigure(Graphics graphics) {
        graphics.drawFocus(getBounds().getResized(-1, -1));
      }
    };
View Full Code Here

Examples of org.eclipse.draw2d.Figure

  /**
   * @generated
   */
  protected IFigure createFocusFeedbackFigure() {
    return new Figure() {

      protected void paintFigure(Graphics graphics) {
        graphics.drawFocus(getBounds().getResized(-1, -1));
      }
    };
View Full Code Here

Examples of org.eclipse.draw2d.Figure

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.Figure

public class ProcessEditPart extends AbstractGraphicalEditPart implements ModelListener {
   
//    private GraphLayoutManager graphLayoutManager;

    protected IFigure createFigure() {
        Figure f = new Figure();
        f.setLayoutManager(new XYLayout());
//        graphLayoutManager = new GraphLayoutManager(this);
//        f.setLayoutManager(graphLayoutManager);
//        graphLayoutManager.layout(f);
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.Figure

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.Figure

    protected List< ? > getModelChildren() {
        return getModel().getBoxes();
    }

    protected IFigure createFigure() {
        Figure figure = new PageFigure(getModel().getSize());
        figure.setLayoutManager((new FreeformLayout()));
        return figure;
    }
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.