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

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

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

origin: geotools/geotools

public Font createFont(
    Expression fontFamily,
    Expression fontStyle,
    Expression fontWeight,
    Expression fontSize) {
  Font font = new FontImpl();
  if (fontFamily == null) {
    throw new IllegalArgumentException("Null font family specified");
  }
  font.setFontFamily(fontFamily);
  if (fontSize == null) {
    throw new IllegalArgumentException("Null font size specified");
  }
  font.setFontSize(fontSize);
  if (fontStyle == null) {
    throw new IllegalArgumentException("Null font Style specified");
  }
  font.setFontStyle(fontStyle);
  if (fontWeight == null) {
    throw new IllegalArgumentException("Null font weight specified");
  }
  font.setFontWeight(fontWeight);
  return font;
}
origin: geotools/geotools

  font.setFontStyle(parseCssParameter(child));
} else if (res.equalsIgnoreCase("font-size")) {
  font.setFontSize(parseCssParameter(child));
origin: org.geotools/gt2-main

public Font createFont(Expression fontFamily, Expression fontStyle,
  Expression fontWeight, Expression fontSize) {
  Font font = new FontImpl();
  if (fontFamily == null) {
    throw new IllegalArgumentException("Null font family specified");	
  }
  font.setFontFamily(fontFamily);
  if (fontSize == null) {
    throw new IllegalArgumentException("Null font size specified");
  }
  font.setFontSize(fontSize);
  if (fontStyle == null) {
    throw new IllegalArgumentException("Null font Style specified");
  }
  font.setFontStyle(fontStyle);
  if (fontWeight == null) {
    throw new IllegalArgumentException("Null font weight specified");
  }
  font.setFontWeight(fontWeight);
  return font;
}
origin: org.geotools/gt-main

public Font createFont(Expression fontFamily, Expression fontStyle,
  Expression fontWeight, Expression fontSize) {
  Font font = new FontImpl();
  if (fontFamily == null) {
    throw new IllegalArgumentException("Null font family specified");	
  }
  font.setFontFamily(fontFamily);
  if (fontSize == null) {
    throw new IllegalArgumentException("Null font size specified");
  }
  font.setFontSize(fontSize);
  if (fontStyle == null) {
    throw new IllegalArgumentException("Null font Style specified");
  }
  font.setFontStyle(fontStyle);
  if (fontWeight == null) {
    throw new IllegalArgumentException("Null font weight specified");
  }
  font.setFontWeight(fontWeight);
  return font;
}
origin: org.geotools/gt2-main

font.setFontStyle(parseCssParameter(child));
origin: org.geotools/gt-main

  font.setFontFamily(parseCssParameter(child));
} else if (res.equalsIgnoreCase("font-style")) {
  font.setFontStyle(parseCssParameter(child));
} else if (res.equalsIgnoreCase("font-size")) {
  font.setFontSize(parseCssParameter(child));
origin: org.geotools/gt2-main

/**
 * Creates a defaultFont which is valid on all machines. The font is of
 * size 10, Style and Weight normal and uses a serif font.
 *
 * @return the default Font
 *
 * @throws RuntimeException DOCUMENT ME!
 */
public Font getDefaultFont() {
  Font font = new FontImpl();
  try {
    font.setFontSize(filterFactory.literal(
        new Integer(10)));
    font.setFontStyle(filterFactory.literal("normal"));
    font.setFontWeight(filterFactory.literal("normal"));
    font.setFontFamily(filterFactory.literal("Serif"));
  } catch (org.geotools.filter.IllegalFilterException ife) {
    throw new RuntimeException("Error creating font", ife);
  }
  return font;
}
origin: org.geotools/gt-widgets-swing-pending

public void apply(){
  if(font != null){
    font.setFontFamily(guiFamily.getExpression());
    font.setFontSize(guiSize.getExpression());
    font.setFontStyle(guiStyle.getExpression());
    font.setFontWeight(guiWeight.getExpression());
  }
}

org.geotools.stylingFontsetFontStyle

Popular methods of Font

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

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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