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

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

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

origin: org.apache.poi/poi-ooxml

/**
 * @since POI 3.14-Beta1
 */
public XSLFTheme(PackagePart part) throws IOException, XmlException {
  super(part);
  ThemeDocument doc =
    ThemeDocument.Factory.parse(getPackagePart().getInputStream(), DEFAULT_XML_OPTIONS);
  _theme = doc.getTheme();
  initialize();
}
origin: org.apache.poi/poi-ooxml

/**
 * Create a new, empty ThemesTable
 */
public ThemesTable() {
  super();
  theme = ThemeDocument.Factory.newInstance();
  theme.addNewTheme().addNewThemeElements();
}

origin: org.apache.poi/poi-ooxml

/**
 * Write this table out as XML.
 * 
 * @param out The stream to write to.
 * @throws IOException if an error occurs while writing.
 */
public void writeTo(OutputStream out) throws IOException {
  theme.save(out, DEFAULT_XML_OPTIONS);
}
origin: org.apache.poi/poi-ooxml

CTColorScheme colorScheme = theme.getTheme().getThemeElements().getClrScheme();
CTColor ctColor;
switch (ThemeElement.byId(idx)) {
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Create a new, empty ThemesTable
 */
public ThemesTable() {
  super();
  theme = ThemeDocument.Factory.newInstance();
  theme.addNewTheme().addNewThemeElements();
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Write this table out as XML.
 * 
 * @param out The stream to write to.
 * @throws IOException if an error occurs while writing.
 */
public void writeTo(OutputStream out) throws IOException {
  theme.save(out, DEFAULT_XML_OPTIONS);
}
origin: jbaliuka/x4j-analytic

public CTOfficeStyleSheet getTheme(){
  return doc.getTheme();
}
 
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core

private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme )
{
  CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme();
  if ( fontScheme != null )
  {
    if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI )
      || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) )
    {
      return fontScheme.getMinorFont();
    }
    return fontScheme.getMajorFont();
  }
  return null;
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core-gae

private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme )
{
  CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme();
  if ( fontScheme != null )
  {
    if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI )
      || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) )
    {
      return fontScheme.getMinorFont();
    }
    return fontScheme.getMajorFont();
  }
  return null;
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core

private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme )
{
  CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme();
  if ( fontScheme != null )
  {
    if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI )
      || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) )
    {
      return fontScheme.getMinorFont();
    }
    return fontScheme.getMajorFont();
  }
  return null;
}
origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core-gae

private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme )
{
  CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme();
  if ( fontScheme != null )
  {
    if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI )
      || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) )
    {
      return fontScheme.getMinorFont();
    }
    return fontScheme.getMajorFont();
  }
  return null;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * @since POI 3.14-Beta1
 */
public XSLFTheme(PackagePart part) throws IOException, XmlException {
  super(part);
  ThemeDocument doc =
    ThemeDocument.Factory.parse(getPackagePart().getInputStream(), DEFAULT_XML_OPTIONS);
  _theme = doc.getTheme();
  initialize();
}
origin: org.openl.rules/org.openl.lib.poi.dev

public XSLFTheme(PackagePart part, PackageRelationship rel) throws IOException, XmlException {
  super(part, rel);
  ThemeDocument doc =
    ThemeDocument.Factory.parse(getPackagePart().getInputStream());
  _theme = doc.getTheme();
  initialize();
}
origin: org.openl.rules/org.openl.lib.poi.dev

public XSSFColor getThemeColor(int idx) {
  CTColorScheme colorScheme = theme.getTheme().getThemeElements().getClrScheme();
  CTColor ctColor = null;
  int cnt = 0;
  for (XmlObject obj : colorScheme.selectPath("./*")) {
    if (obj instanceof org.openxmlformats.schemas.drawingml.x2006.main.CTColor) {
      if (cnt == idx) {
        ctColor = (org.openxmlformats.schemas.drawingml.x2006.main.CTColor) obj;
        
        byte[] rgb = null;
        if (ctColor.getSrgbClr() != null) {
          // Colour is a regular one 
          rgb = ctColor.getSrgbClr().getVal();
        } else if (ctColor.getSysClr() != null) {
          // Colour is a tint of white or black
          rgb = ctColor.getSysClr().getLastClr();
        }
        return new XSSFColor(rgb);
      }
      cnt++;
    }
  }
  return null;
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

CTColorScheme colorScheme = theme.getTheme().getThemeElements().getClrScheme();
CTColor ctColor;
switch (ThemeElement.byId(idx)) {
org.openxmlformats.schemas.drawingml.x2006.mainThemeDocument

Most used methods

  • getTheme
  • addNewTheme
  • save

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Best IntelliJ 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