|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.markup.StyleInfo
cox.jmatt.java.MathTools.markup.svg.StylePen
cox.jmatt.java.MathTools.markup.svg.TextPen
public class TextPen
This StylePen
subclass is designed and optimized for styling text. It contains methods to configure fonts and the way they should appear. Where
possible the method arguments are designed to enforce proper values. Where not possible, be careful! All MathTools SVG font configuration options are here,
but all StylePen
methods are also available. Use as needed when needed.
Constructor Summary | |
---|---|
TextPen()
Standard constructor, nothing special. |
Method Summary | |
---|---|
TextPen |
copyOf()
Return a copy of this instance. |
TextPen |
setFontFamily(java.lang.String pValue)
Set the 'font-family' attribute. |
TextPen |
setFontSize(java.lang.Double pValue)
This method sets the 'font-size' attribute. |
TextPen |
setFontStyle(char pStyle)
Set the font style (inclination). |
TextPen |
setFontVariant(boolean pSmallCaps)
Set the 'font-variant' attribute. |
TextPen |
setFontWeight(char pWeight)
Set the 'font-weight' attribute. |
TextPen |
setLetterSpacing(java.lang.String pValue)
Set the spacing between the letters of the text. |
TextPen |
setTextAnchor(char pAlign)
Set the anchor (alignment) of the text relative to its coordinates. |
TextPen |
setTextDecoration(char pValue)
Set 'line-is-ness' of the text. |
TextPen |
setWordSpacing(java.lang.String pValue)
Set the spacing between the words of the text. |
Methods inherited from class cox.jmatt.java.MathTools.markup.svg.StylePen |
---|
setClipURL, setFill, setFillNonzero, setFillOpacity, setFillURL, setMaskURL, setName, setOpacity, setPen, setStroke, setStrokeDasharray, setStrokeDashOffset, setStrokeLinecap, setStrokeLinejoin, setStrokeMiterlimit, setStrokeWidth |
Methods inherited from class cox.jmatt.java.MathTools.markup.StyleInfo |
---|
_addDeclaration, _addNDeclaration, _addNDeclaration, _declarations, _enableCopy, _uniqueName, configurate, configurateGlobalPizza, reset, toAttribute, toAttribute, toCSS, toRawCSS, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextPen()
Method Detail |
---|
public TextPen copyOf()
copyOf
in class StylePen
public TextPen setFontSize(java.lang.Double pValue)
public TextPen setFontFamily(java.lang.String pValue)
public TextPen setFontWeight(char pWeight)
public TextPen setFontStyle(char pStyle)
Set the font style (inclination). There are three defined values:
char
-argument methods, this one accepts both uppercase and lowercase values.
public TextPen setFontVariant(boolean pSmallCaps)
pSmallCaps
- true for small-caps, false for normal.public TextPen setTextDecoration(char pValue)
Set 'line-is-ness' of the text. This sets the 'text-decoration' property and valid values are:
public TextPen setTextAnchor(char pAlign)
Set the anchor (alignment) of the text relative to its coordinates. Valid values are:
public TextPen setLetterSpacing(java.lang.String pValue)
public TextPen setWordSpacing(java.lang.String pValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |