Package io.keikai.model.util
Class FontMatcher
- java.lang.Object
-
- io.keikai.model.util.FontMatcher
-
- All Implemented Interfaces:
Serializable
public class FontMatcher extends Object implements Serializable
This class can be used to match aSFont
with a criteria.- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FontMatcher()
FontMatcher(SFont criteria)
Create a font matcher with a specified font as the criteria
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o1, Object o2)
boolean
htmlColorEuqlas(Object o1, Object o2)
boolean
match(SFont style)
void
removeBoldweight()
void
removeColor()
void
removeHeightPoints()
void
removeItalic()
void
removeName()
void
removeStrikeout()
void
removeTypeOffset()
void
removeUnderline()
void
setBoldweight(SFont.Boldweight boldweight)
void
setColor(String color)
void
setHeightPoints(int height)
void
setItalic(boolean italic)
void
setName(String name)
void
setStrikeout(boolean strikeout)
void
setTypeOffset(SFont.TypeOffset typeOffset)
void
setUnderline(SFont.Underline underline)
-
-
-
Constructor Detail
-
FontMatcher
public FontMatcher()
-
FontMatcher
public FontMatcher(SFont criteria)
Create a font matcher with a specified font as the criteria
-
-
Method Detail
-
setColor
public void setColor(String color)
-
setName
public void setName(String name)
-
setBoldweight
public void setBoldweight(SFont.Boldweight boldweight)
-
setHeightPoints
public void setHeightPoints(int height)
-
setItalic
public void setItalic(boolean italic)
-
setStrikeout
public void setStrikeout(boolean strikeout)
-
setTypeOffset
public void setTypeOffset(SFont.TypeOffset typeOffset)
-
setUnderline
public void setUnderline(SFont.Underline underline)
-
removeColor
public void removeColor()
-
removeName
public void removeName()
-
removeBoldweight
public void removeBoldweight()
-
removeHeightPoints
public void removeHeightPoints()
-
removeItalic
public void removeItalic()
-
removeStrikeout
public void removeStrikeout()
-
removeTypeOffset
public void removeTypeOffset()
-
removeUnderline
public void removeUnderline()
-
match
public boolean match(SFont style)
-
-