Gets the RtfParagraphStyle with the given name. Makes sure that the defaults
have been loaded.

@param styleName The name of the RtfParagraphStyle to get.
@return The RtfParagraphStyle with the given name or null.
421156
public RtfParagraphStyle getRtfParagraphStyle(String styleName) {
        if(!defaultsLoaded) {
            registerDefaultStyles();
        }
        if(this.styleMap.containsKey(styleName)) {
            return (RtfParagraphStyle) this.styleMap.get(styleName);
        } else {
            return null;
        }
    }
699910
public static function addFontStyle($styleName, $styleFont, $styleParagraph = null) {
		if(!array_key_exists($styleName, self::$_styleElements)) {
			$font = new PHPWord_Style_Font('text', $styleParagraph);
			foreach($styleFont as $key => $value) {
				if(substr($key, 0, 1) != '_') {
					$key = '_'.$key;
				}
				$font->setStyleValue($key, $value);
			}
			self::$_styleElements[$styleName] = $font;
		}
	}
1319742
private static FontStyle intToFontStyle(int style) {
        switch (style) {
        case java.awt.Font.PLAIN:
            return FontStyle.PLAIN;
        case java.awt.Font.BOLD:
            return FontStyle.BOLD;
        case java.awt.Font.ITALIC:
            return FontStyle.ITALIC;
        case java.awt.Font.BOLD + java.awt.Font.ITALIC:
            return FontStyle.BOLD_ITALIC;
        default:
            return FontStyle.PLAIN;
        }
    }
167145
public static int getCurrentStyleInt(Element element, Style style) {

        String currentStyle = getCurrentStyle(element, style);
        return CmsClientStringUtil.parseInt(currentStyle);
    }
757845
public CmsResourceTypeConfig getResourceType(String typeName) {

        for (CmsResourceTypeConfig type : getResourceTypes()) {
            if (typeName.equals(type.getTypeName())) {
                return type;
            }
        }
        return null;
    }
359121
public DynamicReportBuilder addStyle(Style style) throws DJBuilderException {
        if (style.getName() == null) {
            throw new DJBuilderException("Invalid style. The style must have a name");
        }

        report.addStyle(style);

        return this;
    }
636382
def get_editor_style_by_name(name):
    
    if name == 'vim':
        vim_style = Style.from_dict(default_vim_style)
    else:
        vim_style = style_from_pygments_cls(get_style_by_name(name))

    return merge_styles([
        vim_style,
        Style.from_dict(style_extensions),
    ])
444884
public NamedStyleInfo getNamedStyleInfo(String name) {
		for (NamedStyleInfo info : namedStyleInfos) {
			if (info.getName().equals(name)) {
				return info;
			}
		}
		return null;
	}
164307
public static Font getFont (String name, int style) {
		return new Font(name, style, getDefaultFont().getSize());
	}
376890
public Frame frame(String name)
    {
        if (frameMap==null)
            return null;
        return (Frame) frameMap.get(name);
    }
663164
public static String styleToString( Style style ) throws Exception {
        StyledLayerDescriptor sld = sf.createStyledLayerDescriptor();
        UserLayer layer = sf.createUserLayer();
        layer.setLayerFeatureConstraints(new FeatureTypeConstraint[]{null});
        sld.addStyledLayer(layer);
        layer.addUserStyle(style);

        SLDTransformer aTransformer = new SLDTransformer();
        aTransformer.setIndentation(4);
        String xml = aTransformer.transform(sld);
        return xml;
    }
1076315
public function addFontStyle($styleName, $styleFont, $styleParagraph = null) {
		PHPWord_Style::addFontStyle($styleName, $styleFont, $styleParagraph);
	}
431559
def get_by_name(self, name, style_type = None):
        
        for st in self.styles.values():
            if st:
                if st.name == name:
                    return st

        if style_type and not st:
            st = self.styles.get(self.default_styles[style_type], None)            
        return st
609761
public String getWidgetDefaultConfiguration(String name) {

        if (m_registeredWidgets.containsKey(name)) {
            return m_widgetDefaultConfigurations.get(name);
        }
        // not found by class name, look up an alias
        String className = m_widgetAliases.get(name);
        if (className != null) {
            return m_widgetDefaultConfigurations.get(className);
        }
        return null;
    }
1374940
function getStyle(dom, name, defaultValue) {
    try {
      if (window.getComputedStyle) {
        return window.getComputedStyle(dom, null)[name];
      }
      return dom.currentStyle[name];
    } catch (e) {
      if (!Util.isNil(defaultValue)) {
        return defaultValue;
      }
      return null;
    }
  }
943996
public static Font getFont (int style, Size size) {
		return getFont(getDefaultFont(), size).deriveFont(style);
	}
471739
public JFreeChartRender setStyle(int style) {
        switch (style) {
            case JFreeChartRender.STYLE_THESIS:
                return this.setBaseShapesVisible(true).
                        setBaseShapesFilled(false).
                        setBaseLinesVisible(false).
                        setLegendItemFont(new Font("Dialog", Font.PLAIN, 9)).
                        setBackgroundPaint(Color.white).
                        setGridPaint(Color.gray).
                        setInsertLast(false).
                        removeLegend();
            case JFreeChartRender.STYLE_THESIS_LEGEND:
                return this.setBaseShapesVisible(true).
                        setBaseShapesFilled(false).
                        setBaseLinesVisible(false).
                        setLegendItemFont(new Font("Dialog", Font.PLAIN, 9)).
                        setBackgroundPaint(Color.white).
                        setGridPaint(Color.gray).
                        setInsertLast(false);
            default:
                return this;
        }
    }