Example usage for com.google.gwt.widgetideas.graphics.client Color YELLOW

List of usage examples for com.google.gwt.widgetideas.graphics.client Color YELLOW

Introduction

In this page you can find the example usage for com.google.gwt.widgetideas.graphics.client Color YELLOW.

Prototype

Color YELLOW

To view the source code for com.google.gwt.widgetideas.graphics.client Color YELLOW.

Click Source Link

Usage

From source file:eml.studio.client.ui.widget.BaseWidget.java

License:Open Source License

/**
 * Draw NodeShape//from  w  ww.  ja v  a2s .com
 */
protected void custom() {

    OutNodeShape outNodeShape = new OutNodeShape(this, 0, offsetLeft + offsetWidth / 2,
            offsetTop + offsetHeight - boder / 2);
    canvas.clear();
    canvas.beginPath();
    canvas.arc(outNodeShape.getLeftRelative(), outNodeShape.getTopRelative(), 3, 0, Math.PI * 2.0, true);
    canvas.setStrokeStyle(Color.BLUE);
    canvas.stroke();
    canvas.setFillStyle(Color.GREEN);
    canvas.fill();
    canvas.closePath();
    outNodeShapes.add(outNodeShape);

    InNodeShape inNodeShape = new InNodeShape(this, 0, offsetLeft + offsetWidth / 2, offsetTop + boder / 2);
    canvas.beginPath();
    canvas.arc(inNodeShape.getLeftRelative(), inNodeShape.getTopRelative(), 3, 0, Math.PI * 2.0, true);
    canvas.setStrokeStyle(Color.BLUE);
    canvas.stroke();
    canvas.setFillStyle(Color.YELLOW);
    canvas.fill();
    canvas.closePath();
    inNodeShapes.add(inNodeShape);
}