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

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

Introduction

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

Prototype

Color BLUEVIOLET

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

Click Source Link

Usage

From source file:com.objetdirect.gwt.umlapi.client.gfx.IncubatorGfxPlatform.java

License:Open Source License

public Widget makeCanvas(final int width, final int height, final GfxColor backgroundColor) {
    final IncubatorCanvasBridge incubatorCanvasBridge = new IncubatorCanvasBridge(width, height);
    // Default values :
    incubatorCanvasBridge.setLineWidth(1);
    incubatorCanvasBridge.setStrokeStyle(Color.BLUEVIOLET);
    incubatorCanvasBridge.setBackgroundColor(
            new Color(backgroundColor.getRed(), backgroundColor.getBlue(), backgroundColor.getGreen()
            /*//ww w .jav a 2 s .  c  o m
             * , backgroundColor.getAlpha() Disabled to ensure#@&~#! IE compatibility
             */
            ));
    incubatorCanvasBridge.clear();
    canvasBridges.put((GWTCanvasWithListeners) incubatorCanvasBridge.getWidget(), incubatorCanvasBridge);
    return incubatorCanvasBridge.getWidget();
}