Tabnine Logo
Font.getFontStyle
Code IndexAdd Tabnine to your IDE (free)

How to use
getFontStyle
method
in
org.geotools.styling.Font

Best Java code snippets using org.geotools.styling.Font.getFontStyle (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: geotools/geotools

private java.awt.Font styleFont(
    Object feature, Font curr, java.awt.Font javaFont, TextSymbolizer symbolizer) {
  String reqStyle = evalToString(curr.getFontStyle(), feature, null);
origin: geotools/geotools

@SuppressWarnings("deprecation")
@Test
public void font() throws Exception {
  List<Expression> family = new ArrayList<Expression>();
  family.add(ff.literal("ariel"));
  family.add(ff.literal("Helvetica"));
  family.add(ff.literal("sanserif"));
  Expression style = ff.literal("noraml");
  Expression weight = ff.literal("normal");
  Expression size = ff.literal(12);
  Font font = sf.font(family, style, weight, size);
  assertEquals(family, font.getFamily());
  assertEquals(style, font.getStyle()); // oblique or italic
  assertEquals(weight, font.getWeight()); // bold or normal
  assertEquals(size, font.getSize());
  assertSame(font.getFontStyle(), font.getStyle());
  assertSame(font.getFontFamily(), family.get(0));
  assertSame(font.getFontWeight(), font.getWeight());
  assertSame(font.getFontSize(), font.getSize());
  FontImpl cast = FontImpl.cast(font);
  assertSame(cast, font);
}
origin: org.geotools/gt-render

private java.awt.Font styleFont(Object feature, Font curr,
  java.awt.Font javaFont) {
  String reqStyle = evalToString(curr.getFontStyle(), feature, null);
  int styleCode;
  if (fontStyleLookup.containsKey(reqStyle)) {
    styleCode = ((Integer) fontStyleLookup.get(reqStyle)).intValue();
  } else {
    styleCode = java.awt.Font.PLAIN;
  }
  String reqWeight = evalToString(curr.getFontWeight(), feature, null);
  if ("Bold".equalsIgnoreCase(reqWeight)) {
    styleCode = styleCode | java.awt.Font.BOLD;
  }
  float size = evalToFloat(curr.getSize(), feature, 10);
  return javaFont.deriveFont(styleCode, size);
}
origin: org.geotools/gt2-render

javaFont = (java.awt.Font) loadedFonts.get(requestedFont);
String reqStyle = (String) fonts[k].getFontStyle().evaluate(feature);
String reqStyle = (String) fonts[k].getFontStyle().evaluate(feature);
origin: org.geotools/gt-widgets-swing-pending

public void setEdited(Font font){        
  this.font = font;
  
  if(font != null){
    guiFamily.setExpression(font.getFontFamily());
    guiSize.setExpression(font.getFontSize());
    guiStyle.setExpression(font.getFontStyle());
    guiWeight.setExpression(font.getFontWeight());
  }
}

origin: org.geotools/gt-main

/** Null safe copy of a single font */
protected Font copy(Font font) {
  if( font == null) return font;
  
  Expression fontFamily = copy( font.getFontFamily() );
  Expression fontStyle = copy( font.getFontStyle() );
  Expression fontWeight = copy( font.getFontWeight() );
  Expression fontSize = copy( font.getFontSize() );
  Font copy = sf.createFont(fontFamily, fontStyle, fontWeight, fontSize);
  return copy;
}

origin: org.geotools/gt-render

if (font.getFontStyle() != null) {
  font.getFontStyle().accept(this, null);
origin: org.geotools/gt2-main

if (font.getFontStyle() != null) {
  font.getFontStyle().accept(this,null);
origin: org.geotools/gt2-main

if (font.getFontStyle() != null) {
  font.getFontStyle().accept(this,null);
origin: org.geotools/gt-main

encodeCssParam("font-style", fonts[0].getFontStyle());
encodeCssParam("font-weight", fonts[0].getFontWeight());
end("Font");
origin: org.geotools/gt-render

if (font.getFontStyle() != null) {
  font.getFontStyle().accept(this,null);
origin: org.geotools/gt2-main

encodeCssParam("font-style", fonts[0].getFontStyle());
encodeCssParam("font-weight", fonts[0].getFontWeight());
end("Font");
org.geotools.stylingFontgetFontStyle

Popular methods of Font

  • getFamily
  • getSize
  • getStyle
  • getWeight
  • getFontFamily
  • getFontSize
  • getFontWeight
  • setSize
  • setStyle
  • setFontFamily
  • setFontSize
  • setFontStyle
  • setFontSize,
  • setFontStyle,
  • setFontWeight,
  • setWeight

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JComboBox (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now