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

How to use
getThemeElements
method
in
org.docx4j.dml.Theme

Best Java code snippets using org.docx4j.dml.Theme.getThemeElements (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.dmlThemegetThemeElements

Javadoc

Gets the value of the themeElements property.

Popular methods of Theme

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Top Vim plugins
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