Tabnine Logo
CTFontCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
CTFontCollection
in
org.openxmlformats.schemas.drawingml.x2006.main

Best Java code snippets using org.openxmlformats.schemas.drawingml.x2006.main.CTFontCollection (Showing top 12 results out of 315)

origin: org.apache.poi/poi-ooxml

  /**
   * @return typeface of the minor font to use in a document.
   * Typically the monor font is used for normal text or paragraph areas.
   *
   */
  @SuppressWarnings("WeakerAccess")
  public String getMinorFont(){
    return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface();
  }
}
origin: org.apache.poi/poi-ooxml

  font = coll.getEa();
} else if ("cs".equals(fgStr)) {
  font = coll.getCs();
} else {
  font = coll.getLatin();
  font = coll.getLatin();
origin: org.apache.poi/poi-ooxml

/**
 * @return typeface of the major font to use in a document.
 * Typically the major font is used for heading areas of a document.
 *
 */
@SuppressWarnings("WeakerAccess")
public String getMajorFont(){
  return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  font = coll.getEa();
} else if ("cs".equals(fgStr)) {
  font = coll.getCs();
} else {
  font = coll.getLatin();
  font = coll.getLatin();
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * @return typeface of the major font to use in a document.
 * Typically the major font is used for heading areas of a document.
 *
 */
@SuppressWarnings("WeakerAccess")
public String getMajorFont(){
  return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface();
}
origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * @return typeface of the minor font to use in a document.
 * Typically the monor font is used for normal text or paragraph areas.
 *
 */
public String getMinorFont(){
  return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface();
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core-gae

private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts )
{
  org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts );
  if ( asciiTheme != null )
  {
    try
    {
      List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments();
      if ( themeDocuments.size() > 0 )
      {
        for ( ThemeDocument themeDocument : themeDocuments )
        {
          CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme );
          if ( fontCollection != null && fontCollection.getLatin() != null )
          {
            return fontCollection.getLatin().getTypeface();
          }
        }
      }
      return getDefaultFontFamily( asciiTheme );
    }
    catch ( Exception e )
    {
      e.printStackTrace();
    }
  }
  return getFamily( fonts );
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core

private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts )
{
  org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts );
  if ( asciiTheme != null )
  {
    try
    {
      List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments();
      if ( themeDocuments.size() > 0 )
      {
        for ( ThemeDocument themeDocument : themeDocuments )
        {
          CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme );
          if ( fontCollection != null && fontCollection.getLatin() != null )
          {
            return fontCollection.getLatin().getTypeface();
          }
        }
      }
      return getDefaultFontFamily( asciiTheme );
    }
    catch ( Exception e )
    {
      e.printStackTrace();
    }
  }
  return getFamily( fonts );
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core-gae

private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts )
{
  org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts );
  if ( asciiTheme != null )
  {
    try
    {
      List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments();
      if ( themeDocuments.size() > 0 )
      {
        for ( ThemeDocument themeDocument : themeDocuments )
        {
          CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme );
          if ( fontCollection != null && fontCollection.getLatin() != null )
          {
            return fontCollection.getLatin().getTypeface();
          }
        }
      }
      return getDefaultFontFamily( asciiTheme );
    }
    catch ( Exception e )
    {
      e.printStackTrace();
    }
  }
  return getFamily(fonts);
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core

private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts )
{
  org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts );
  if ( asciiTheme != null )
  {
    try
    {
      List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments();
      if ( themeDocuments.size() > 0 )
      {
        for ( ThemeDocument themeDocument : themeDocuments )
        {
          CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme );
          if ( fontCollection != null && fontCollection.getLatin() != null )
          {
            return fontCollection.getLatin().getTypeface();
          }
        }
      }
      return getDefaultFontFamily( asciiTheme );
    }
    catch ( Exception e )
    {
      e.printStackTrace();
    }
  }
  return getFamily(fonts);
}
origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * @return typeface of the major font to use in a document.
 * Typically the major font is used for heading areas of a document.
 *
 */
public String getMajorFont(){
  return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  /**
   * @return typeface of the minor font to use in a document.
   * Typically the monor font is used for normal text or paragraph areas.
   *
   */
  @SuppressWarnings("WeakerAccess")
  public String getMinorFont(){
    return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface();
  }
}
org.openxmlformats.schemas.drawingml.x2006.mainCTFontCollection

Most used methods

  • getLatin
  • getCs
  • getEa

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Socket (java.net)
    Provides a client-side TCP socket.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text 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