Examples of Fill


Examples of at.bestsolution.efxclipse.formats.fxg.fxg.Fill

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFill(Fill newFill, NotificationChain msgs) {
    Fill oldFill = fill;
    fill = newFill;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FxgPackage.ELLIPSE__FILL, oldFill, newFill);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of chapter3.section5.Fill

import java.util.Optional;

public class PresetAmountPump implements Pump {
    public Outputs create(Inputs inputs) {
        EventLoop<Fuel> eStart = new EventLoop<>();
        Fill fi = new Fill(inputs.eClearSale.map(u -> Unit.UNIT),
                           inputs.eFuelPulses, inputs.calibration,
                           inputs.price1, inputs.price2, inputs.price3,
                           eStart);
        NotifyPointOfSale np = new NotifyPointOfSale(
                new LifeCycle(inputs.eNozzle1,
View Full Code Here

Examples of chapter3.section5.Fill

import java.util.Optional;

public class ClearSalePump implements Pump {
    public Outputs create(Inputs inputs) {
        EventLoop<Fuel> eStart = new EventLoop<>();
        Fill fi = new Fill(
                          inputs.eClearSale.map(u -> Unit.UNIT),
                          inputs.eFuelPulses, inputs.calibration,
                          inputs.price1, inputs.price2, inputs.price3,
                          eStart);
        NotifyPointOfSale np = new NotifyPointOfSale(
View Full Code Here

Examples of com.extentech.formats.OOXML.Fill

    icvColorFlag |= ((short)t);
    icvColorFlag |= ((short)icvBack << 7);   
    if (clr!=null) {
      if (!clr.equals(FormatHandle.COLORTABLE[t])) { // no exact match for color
        if (fill == null)
          fill = new Fill(getFillPattern(), t, FormatHandle.colorToHexString(clr), icvBack, null, this.getWorkBook().getTheme());
        else
          fill.setFgColor(t, FormatHandle.colorToHexString(clr));
      }
    } else if (fill!=null)
      fill.setFgColor(t);   
View Full Code Here

Examples of com.extentech.formats.OOXML.Fill

    icvColorFlag |= ((short)icvFore);
    icvColorFlag |= ((short)t << 7);
    if (clr!=null) {
      if (!clr.equals(FormatHandle.COLORTABLE[t])) { // no exact match for color - store custom color
        if (fill == null)
          fill= new Fill(getFillPattern(), icvFore, null, t, FormatHandle.colorToHexString(clr), this.getWorkBook().getTheme());
        else
          fill.setBgColor(t, FormatHandle.colorToHexString(clr));
      }
    } else if (fill!=null)
      fill.setBgColor(t);
View Full Code Here

Examples of gov.nasa.arc.mct.graphics.brush.Fill

   * @return a list of brushes
   */
  public List<Brush> getLayers() {
    List<Brush> brushes = new ArrayList<Brush>();
   
    brushes.add(new Fill((Color) getSetting(GRAPHICAL_BACKGROUND_COLOR)));
    FillProvider provider = fillMap.get((String) getSetting(GRAPHICAL_FOREGROUND_FILL));
    Object evaluator = getSetting(GRAPHICAL_EVALUATOR);
    if (evaluator == NO_EVALUATOR) {
      Brush b = provider.getFill((Color) getSetting(GRAPHICAL_FOREGROUND_COLOR));
      Double minimum = Double.parseDouble((String) getSetting(GRAPHICAL_FOREGROUND_MIN));
      Double maximum = Double.parseDouble((String) getSetting(GRAPHICAL_FOREGROUND_MAX));
      if (b instanceof StateSensitive) ((StateSensitive) b).setInterval(minimum, maximum);
      brushes.add(b);
    } else {
      // Build evaluator brushes
      Object evMapSetting = getSetting(GRAPHICAL_EVALUATOR_MAP);
      if (evMapSetting instanceof Map) {
        Map evMap = (Map) evMapSetting;
        for (Object entry : evMap.entrySet()) {
          if (entry instanceof Map.Entry) {
            Object key = ((Map.Entry) entry).getKey();
            Object value = ((Map.Entry) entry).getValue();
            if (value instanceof Color && key instanceof String) {
              Fill b = provider.getFill((Color) value);
              Double minimum = Double.parseDouble((String) getSetting(GRAPHICAL_FOREGROUND_MIN));
              Double maximum = Double.parseDouble((String) getSetting(GRAPHICAL_FOREGROUND_MAX));
              b.setInterval(minimum, maximum);
              brushes.add(new ConditionalBrush(b, (String) key));
            }
          }
        }
      }
View Full Code Here

Examples of gov.nasa.arc.mct.graphics.brush.Fill

    return s.toString();
  }
 
  private static class FillProvider {
    public Fill getFill(Color color) {
      return new Fill(color);
    }
View Full Code Here

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

        SlideShow ppt = new SlideShow(_slTests.openResourceAsStream("44296.ppt"));

        Slide slide = ppt.getSlides()[0];

        Background b = slide.getBackground();
        Fill f = b.getFill();
        assertEquals(Fill.FILL_PICTURE, f.getFillType());

        PictureData pict = f.getPictureData();
        assertNotNull(pict);
        assertEquals(Picture.JPEG, pict.getType());
    }
View Full Code Here

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

        SlideShow ppt = new SlideShow(_slTests.openResourceAsStream("44296.ppt"));

        Slide slide = ppt.getSlides()[0];

        Background b = slide.getBackground();
        Fill f = b.getFill();
        assertEquals(Fill.FILL_PICTURE, f.getFillType());

        PictureData pict = f.getPictureData();
        assertNotNull(pict);
        assertEquals(Picture.JPEG, pict.getType());
    }
View Full Code Here

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

        SlideShow ppt = new SlideShow(_slTests.openResourceAsStream("44296.ppt"));

        Slide slide = ppt.getSlides()[0];

        Background b = slide.getBackground();
        Fill f = b.getFill();
        assertEquals(Fill.FILL_PICTURE, f.getFillType());

        PictureData pict = f.getPictureData();
        assertNotNull(pict);
        assertEquals(Picture.JPEG, pict.getType());
    }
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.