congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BaseStyles.getFontScheme
Code IndexAdd Tabnine to your IDE (free)

How to use
getFontScheme
method
in
org.docx4j.dml.BaseStyles

Best Java code snippets using org.docx4j.dml.BaseStyles.getFontScheme (Showing top 6 results out of 315)

origin: plutext/docx4j

public org.docx4j.dml.BaseStyles.FontScheme getFontScheme() {
  if (fontScheme == null) { // ie we haven't done this already
    org.docx4j.dml.Theme theme = (org.docx4j.dml.Theme) this
        .getJaxbElement();
    if (theme.getThemeElements() != null
        && theme.getThemeElements().getFontScheme() != null) {
      fontScheme = theme.getThemeElements().getFontScheme();
    }
  }
  return fontScheme;
}
 
origin: plutext/docx4j

private FontCollection getMinorFontCollection() throws Docx4JException {
  
  if (minorFontCollectionInitialised) return minorFontCollection;
  
  if (this.getContents().getThemeElements()!=null
      && this.getContents().getThemeElements().getFontScheme()!=null) {
    
    minorFontCollection = this.getContents().getThemeElements().getFontScheme().getMinorFont();
  }
  minorFontCollectionInitialised = true;
  return minorFontCollection;
}
origin: plutext/docx4j

private FontCollection getMajorFontCollection() throws Docx4JException {
  
  if (majorFontCollectionInitialised) return majorFontCollection;
  
  if (this.getContents().getThemeElements()!=null
      && this.getContents().getThemeElements().getFontScheme()!=null) {
    
    majorFontCollection = this.getContents().getThemeElements().getFontScheme().getMajorFont();
  }
  majorFontCollectionInitialised = true;
  return majorFontCollection;
}
 
origin: org.docx4j/docx4j

public org.docx4j.dml.BaseStyles.FontScheme getFontScheme() {
  if (fontScheme == null) { // ie we haven't done this already
    org.docx4j.dml.Theme theme = (org.docx4j.dml.Theme) this
        .getJaxbElement();
    if (theme.getThemeElements() != null
        && theme.getThemeElements().getFontScheme() != null) {
      fontScheme = theme.getThemeElements().getFontScheme();
    }
  }
  return fontScheme;
}
 
origin: org.docx4j/docx4j

private FontCollection getMinorFontCollection() throws Docx4JException {
  
  if (minorFontCollectionInitialised) return minorFontCollection;
  
  if (this.getContents().getThemeElements()!=null
      && this.getContents().getThemeElements().getFontScheme()!=null) {
    
    minorFontCollection = this.getContents().getThemeElements().getFontScheme().getMinorFont();
  }
  minorFontCollectionInitialised = true;
  return minorFontCollection;
}
origin: org.docx4j/docx4j

private FontCollection getMajorFontCollection() throws Docx4JException {
  
  if (majorFontCollectionInitialised) return majorFontCollection;
  
  if (this.getContents().getThemeElements()!=null
      && this.getContents().getThemeElements().getFontScheme()!=null) {
    
    majorFontCollection = this.getContents().getThemeElements().getFontScheme().getMajorFont();
  }
  majorFontCollectionInitialised = true;
  return majorFontCollection;
}
 
org.docx4j.dmlBaseStylesgetFontScheme

Javadoc

Gets the value of the fontScheme property.

Popular methods of BaseStyles

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • 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