Examples of Color


Examples of org.timepedia.chronoscope.client.canvas.Color

public class ChartPanelTest extends ChronoscopeTestCaseBase {

  public void testGssContextOverride() {
    ChartPanel cp = Chronoscope
        .createTimeseriesChart(Fixtures.getTestDataset(), 600, 400);
    final Color color = new Color("#ff0000");
   
    cp.setGssContext(new IEGssContext() {
      public GssProperties getProperties(GssElement gssElem, String pseudoElt) {
        if ("axes".equals(gssElem.getType())) {
          return new GssProperties() {
            {
              this.bgColor = color;
            }
          };
        }
        return super.getProperties(gssElem, pseudoElt);
      }
    });
    cp.setReadyListener(new ViewReadyCallback() {
      public void onViewReady(View view) {
        GssProperties props = view
            .getGssProperties(new GssElementImpl("axes", null), "");
        assertEquals(color.toString(), "#ff0000");
        finishTest();
      }
    });
    delayTestFinish(15000);
    RootPanel.get().add(cp);
View Full Code Here

Examples of org.wicketstuff.flot.Color

    List<DataSet> sine = new ArrayList<DataSet>();
    for (double x = -5.0; x < 5.0; x += 0.1)
      sine.add(new DataSet(x, Math.sin(x)));

    result.add(new Series(sine, "sin(x)", new Color(0x00, 0x89, 0xBB), new LineGraphType(null, false, null)));

    return result;
  }
View Full Code Here

Examples of org.wicketstuff.openlayers3.api.util.Color

        LongLat longLat = new LongLat(-72.638429, 42.313229, "EPSG:4326").transform(View.DEFAULT_PROJECTION);

        // add a marker that will update the content of the popover, move the popover and then make it visible when
        // the marker is clicked
        add(markerPopover = new MarkerPopover("marker",
                Model.of(new Color("#8b0000")),
                popoverPanel,
                Model.of("Miles' Office"),
                Model.of("<p>This is where Miles' labors away on his code</p>"),
                Model.of(longLat)));
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.Color

  private static Set<Ref> setBordersOutline(Worksheet sheet, int tRow, int lCol, int bRow, int rCol, short borderIndex, BorderStyle lineStyle, String color) {
    final Book book = (Book) sheet.getWorkbook();
    final int maxcol = book.getSpreadsheetVersion().getLastColumnIndex();
    final int maxrow = book.getSpreadsheetVersion().getLastRowIndex();
    final RefSheet refSheet = BookHelper.getRefSheet(book, sheet);
    final Color bsColor = BookHelper.HTMLToColor(book, color);
    final short bsLineStyle = getBorderStyleIndex(lineStyle);
    Set<Ref> all = new HashSet<Ref>();
   
    final int lb = BookHelper.BORDER_EDGE_LEFT;// leftBorder
    final int tb = BookHelper.BORDER_EDGE_TOP;// topBorder
View Full Code Here

Examples of org.zkoss.test.Color

    click(".zsstylepanel .zstbtn-fontColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFontColor(new Color(color), 5, 5, 20, 5);
  }
View Full Code Here

Examples of oxygenoffice.extensions.smart.diagram.Color

        try {
            XPropertySet xProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xMainShape);
            //int lineColor = AnyConverter.toInt(xProp.getPropertyValue("LineColor"));
            if(((FillStyle)xProp.getPropertyValue("FillStyle")) == FillStyle.SOLID){
                int color = AnyConverter.toInt(xProp.getPropertyValue("FillColor"));
                return new Color(false, color, 0, 0);
            } else{
                int startColor = ((Gradient)xProp.getPropertyValue("FillGradient")).StartColor;
                int endColor = ((Gradient)xProp.getPropertyValue("FillGradient")).EndColor;
                return new Color(true, startColor, startColor, endColor);
            }
        }  catch (Exception ex) {
            System.err.println(ex.getLocalizedMessage());
        }
        return null;
View Full Code Here

Examples of pojo.Color

  }

  //get list color by id
  public Color getInfoColor(int id) {
    logger.debug("getInfoColor by id start");
    Color sp = null;
    Session session = HibernateUtil.getSessionFactory().openSession();
    try {
      sp = (Color) session.get(Color.class, id);
      logger.debug("getInfoColor by id success");
    } catch (HibernateException ex) {
View Full Code Here

Examples of ponkOut.graphics.Color

  @Override
  public void init() {
    Lighting.init();
    Camera.init(new Vector3f(0.0f, 0.0f, posZ));

    cursor = new Cursor(new Color(0.4f, 0.5f, 1.0f), new Color(0.7f, 0.6f, 1.0f), 0.0f, 4.5f, -19.5f, 0.5f,
        goManager);
  }
View Full Code Here

Examples of raytracer.common.type.Color

  public DefaultLauncher(List<RtObject> list){
    listObj = list;
  }
 
  public static Color launch(Ray ray){
    Color result = null;
   
    return (result);
  }
View Full Code Here

Examples of turtle.Color

   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String getText(Object object) {
    Color color = (Color)object;
    return getString("_UI_Color_type") + " " + color.getRed();
  }
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.