Package javafx.scene.text

Examples of javafx.scene.text.Font


    public static Font robotoBold(final double SIZE) {
        return new Font(ROBOTO_BOLD_NAME, SIZE);
    }

    public static Font latoHairline(final double SIZE) {
        return new Font(LATO_HAIRLINE_NAME, SIZE);
    }
View Full Code Here


    public static Font latoHairline(final double SIZE) {
        return new Font(LATO_HAIRLINE_NAME, SIZE);
    }
    public static Font latoLight(final double SIZE) {
        return new Font(LATO_LIGHT_NAME, SIZE);
    }
View Full Code Here

    }
    public static Font latoLight(final double SIZE) {
        return new Font(LATO_LIGHT_NAME, SIZE);
    }
    public static Font latoRegular(final double SIZE) {
        return new Font(LATO_REGULAR_NAME, SIZE);
    }
View Full Code Here

    }
    public static Font latoRegular(final double SIZE) {
        return new Font(LATO_REGULAR_NAME, SIZE);
    }
    public static Font latoBold(final double SIZE) {
        return new Font(LATO_BOLD_NAME, SIZE);
    }
View Full Code Here

    }
    public static Font latoBold(final double SIZE) {
        return new Font(LATO_BOLD_NAME, SIZE);
    }
    public static Font latoBlack(final double SIZE) {
        return new Font(LATO_BLACK_NAME, SIZE);
    }
View Full Code Here

  }

  void applyItemProviderFont(Object item, Cell<?> cell, AdapterFactory adapterFactory) {
    IItemFontProvider fontProvider = (IItemFontProvider) adapterFactory.adapt(item, IItemFontProvider.class);
    if (fontProvider != null) {
      Font font = fontFromObject(fontProvider.getFont(item));
      if (font != null)
        cell.setFont(font);
    }
  }
View Full Code Here

  }

  void applyTableItemProviderFont(Object item, int columnIndex, Cell<?> cell, AdapterFactory adapterFactory) {
    ITableItemFontProvider fontProvider = (ITableItemFontProvider) adapterFactory.adapt(item, ITableItemFontProvider.class);
    if (fontProvider != null) {
      Font font = fontFromObject(fontProvider.getFont(item, columnIndex));
      if (font != null)
        cell.setFont(font);
    }
  }
View Full Code Here

    animations.add(new FlipAnimation());
   
    anim = animations.poll();
   
    label = new Text();
    label.setFont(new Font("Arial", 100));
    label.setEffect(new javafx.scene.effect.DropShadow(5, 3, 4, Color.RED));
    label.setX(20);
    label.setY(120);
   
    a = SequentialTransitionBuilder.create().children(
View Full Code Here

  private SingleTokenJavaScanner fStringScanner;
  /** The JavaDoc scanner. */
  private JavaScanner fJavaDocScanner;

  public JavaTextTools() {
    Font regular = new Font("Courier", 15);
    Font boldFont = Font.font("Courier", FontWeight.BOLD, 15);
   
    TextAttributesManager manager = new TextAttributesManager();
    manager.registerToken(ResourceProvider.JAVA_BRACKET, Color.valueOf("rgb(0,0,0)"), null, regular);
    manager.registerToken(ResourceProvider.JAVA_DEFAULT, Color.valueOf("rgb(0,0,0)"), null, regular);
    manager.registerToken(ResourceProvider.JAVA_KEYWORD, Color.valueOf("rgb(153,51,102)"), null, boldFont);
View Full Code Here

  }

  @Test
  public void fontFromObjectWithoutFontName() {
    URI uri = URI.createURI("font:///8/");
    Font font = cellFactory.fontFromObject(uri);
    assertEquals(8, font.getSize(), 0);
  }
View Full Code Here

TOP

Related Classes of javafx.scene.text.Font

Copyright © 2018 www.massapicom. 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.