public class CSSFontFace extends SourceLocation implements ICSSFontFace
@font-face statement DOM.| Modifier and Type | Field and Description |
|---|---|
protected List<ICSSNode> |
children
A list of children nodes.
|
UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
CSSFontFace(List<CSSProperty> properties,
org.antlr.runtime.tree.CommonTree tree,
org.antlr.runtime.TokenStream tokenStream)
Construct a
CSSFontFace from a list of properties. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAdvancedAntiAliasing()
The advancedAntiAliasing property determines whether to include the
advanced anti-aliasing information when embedding the font.
|
int |
getArity()
Get the node's child count.
|
boolean |
getEmbedAsCFF() |
String |
getFontFamily()
The fontFamily property sets the alias for the font that you use to apply
the font in style sheets.
|
String |
getFontStyle()
Get the "style" type face value of the font.
|
String |
getFontWeight()
Get the "weight" type face value of the font.
|
ICSSNode |
getNthChild(int index)
Get the node's nth child.
|
CSSModelTreeType |
getOperator()
Get the node's type.
|
ArrayList<ICSSPropertyValue> |
getSources() |
FontFaceSourceType |
getSourceType()
Get the font source type.
|
String |
getSourceValue() |
String |
toString()
Displays line, column, start, end, and sourcepath in a format such as
"17:5 160-188 C:\test.as"
|
String |
toStringTree()
Recursively print out the text representation of the tree.
|
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, getStart, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetArity, getNthChild, getOperator, toStringTreegetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected CSSFontFace(List<CSSProperty> properties, org.antlr.runtime.tree.CommonTree tree, org.antlr.runtime.TokenStream tokenStream)
CSSFontFace from a list of properties. The parser
doesn't validate if the properties are acceptable by the
@font-face statement, so that we don't need to update the grammar
when new properties are added to @font-face statement.properties - key value pairs inside the @font-face block.public ArrayList<ICSSPropertyValue> getSources()
public FontFaceSourceType getSourceType()
ICSSFontFacegetSourceType in interface ICSSFontFaceurl() or local().public String getSourceValue()
getSourceValue in interface ICSSFontFaceFontFaceSourceType.URL, the
return value is the URL of the font file path; If the source type is
FontFaceSourceType.LOCAL, the return value is the system font
name.public String getFontFamily()
ICSSFontFacegetFontFamily in interface ICSSFontFacefont-family
properties.public String getFontStyle()
ICSSFontFacegetFontStyle in interface ICSSFontFacepublic String getFontWeight()
ICSSFontFacegetFontWeight in interface ICSSFontFacepublic boolean getEmbedAsCFF()
public boolean getAdvancedAntiAliasing()
ICSSFontFacegetAdvancedAntiAliasing in interface ICSSFontFacepublic String toString()
SourceLocation"17:5 160-188 C:\test.as"
toString in class SourceLocationpublic String toStringTree()
toStringTree in interface ICSSNodepublic int getArity()
ICSSNodeDefaultAdapter.public ICSSNode getNthChild(int index)
ICSSNodeDefaultAdapter.getNthChild in interface ICSSNodeindex - Child index.public CSSModelTreeType getOperator()
ICSSNodeDefaultAdapter.getOperator in interface ICSSNodeCopyright © 2016 The Apache Software Foundation. All rights reserved.