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

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

Best Java code snippets using org.openxmlformats.schemas.drawingml.x2006.main.CTBaseStyles (Showing top 20 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

private void initialize(){
  CTBaseStyles elems = _theme.getThemeElements();
  CTColorScheme scheme = elems.getClrScheme();
  // The color scheme is responsible for defining a list of twelve colors.
  _schemeColors = new HashMap<>(12);
  for(XmlObject o : scheme.selectPath("*")){
    CTColor c = (CTColor)o;
    String name = c.getDomNode().getLocalName();
    _schemeColors.put(name, c);
  }
 }
origin: org.apache.poi/poi-ooxml

  PaintStyle getThemePaint(CTShapeStyle style, PackagePart pp) {
    // get a reference to a line style within the style matrix.
    CTStyleMatrixReference lnRef = style.getLnRef();
    if (lnRef == null) {
      return null;
    }
    int idx = (int)lnRef.getIdx();
    CTSchemeColor phClr = lnRef.getSchemeClr();
    if(idx <= 0){
      return null;
    }
    CTLineProperties props = theme.getXmlObject().getThemeElements().getFmtScheme().getLnStyleLst().getLnArray(idx - 1);
    XSLFFillProperties fp = XSLFPropertiesDelegate.getFillDelegate(props);
    return selectPaint(fp, phClr, pp, theme, hasPlaceholder);
  }
};
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.poi/poi-ooxml

  return null;
CTStyleMatrix styleMatrix = styles.getFmtScheme();
if (styleMatrix == null) {
  return null;
origin: org.apache.poi/poi-ooxml

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

CTFontScheme fontTheme = theme.getXmlObject().getThemeElements().getFontScheme();
CTFontCollection coll = typeface.startsWith("+mj-")
  ? fontTheme.getMajorFont() : fontTheme.getMinorFont();
origin: org.apache.poi/poi-ooxml

CTStyleMatrix styleMatrix = getSheet().getTheme().getXmlObject().getThemeElements().getFmtScheme();
CTEffectStyleItem ef = styleMatrix.getEffectStyleLst().getEffectStyleArray(idx - 1);
obj = ef.getEffectLst().getOuterShdw();
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

private void initialize(){
  CTBaseStyles elems = _theme.getThemeElements();
  CTColorScheme scheme = elems.getClrScheme();
  // The color scheme is responsible for defining a list of twelve colors.
  _schemeColors = new HashMap<>(12);
  for(XmlObject o : scheme.selectPath("*")){
    CTColor c = (CTColor)o;
    String name = c.getDomNode().getLocalName();
    _schemeColors.put(name, c);
  }
 }
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: org.apache.poi/poi-ooxml

CTStyleMatrix matrix = theme.getXmlObject().getThemeElements().getFmtScheme();
final XmlObject styleLst;
int childIdx;
origin: org.openl.rules/org.openl.lib.poi.dev

private void initialize(){
  CTBaseStyles elems = _theme.getThemeElements();
  CTColorScheme scheme = elems.getClrScheme();
  // The color scheme is responsible for defining a list of twelve colors. 
  _schemeColors = new HashMap<String, CTColor>(12);
  for(XmlObject o : scheme.selectPath("*")){
    CTColor c = (CTColor)o;
    String name = c.getDomNode().getLocalName();
    _schemeColors.put(name, c);
  }
 }
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.openl.rules/org.openl.lib.poi.dev

/**
 * Get default line properties defined in the theme (if any).
 * Used internally to resolve shape properties.
 *
 * @return line propeties from the theme of null
 */
CTLineProperties getDefaultLineProperties() {
  CTLineProperties ln = null;
  CTShapeStyle style = getSpStyle();
  if (style != null) {
    // 1-based index of a line style within the style matrix
    int idx = (int) style.getLnRef().getIdx();
    CTStyleMatrix styleMatrix = _sheet.getTheme().getXmlObject().getThemeElements().getFmtScheme();
    ln = styleMatrix.getLnStyleLst().getLnArray(idx - 1);
  }
  return ln;
}
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: 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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  PaintStyle getThemePaint(CTShapeStyle style, PackagePart pp) {
    // get a reference to a line style within the style matrix.
    CTStyleMatrixReference lnRef = style.getLnRef();
    if (lnRef == null) {
      return null;
    }
    int idx = (int)lnRef.getIdx();
    CTSchemeColor phClr = lnRef.getSchemeClr();
    if(idx <= 0){
      return null;
    }
    CTLineProperties props = theme.getXmlObject().getThemeElements().getFmtScheme().getLnStyleLst().getLnArray(idx - 1);
    XSLFFillProperties fp = XSLFPropertiesDelegate.getFillDelegate(props);
    return selectPaint(fp, phClr, pp, theme, hasPlaceholder);
  }
};
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

CTColorScheme colorScheme = theme.getTheme().getThemeElements().getClrScheme();
CTColor ctColor;
switch (ThemeElement.byId(idx)) {
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

  return null;
CTStyleMatrix styleMatrix = styles.getFmtScheme();
if (styleMatrix == null) {
  return null;
org.openxmlformats.schemas.drawingml.x2006.mainCTBaseStyles

Most used methods

  • getFontScheme
  • getClrScheme
  • getFmtScheme

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JTable (javax.swing)
  • 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
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
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