Class CategorySet
- java.lang.Object
-
- ca.cgjennings.graphics.cloudfonts.CategorySet
-
public final class CategorySet extends java.lang.Object
A set of descriptive categories that a cloud font can belong to. These categories are useful to help narrow down the search for a font.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description CategorySet(boolean display, boolean handwriting, boolean monospace, boolean sansSerif, boolean serif, boolean symbols, boolean other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(CategorySet other)
boolean
equals(java.lang.Object other)
boolean
hasEmptyIntersectionWith(CategorySet other)
CategorySet
intersection(CategorySet other)
boolean
isDisplay()
boolean
isEmpty()
boolean
isHandwriting()
boolean
isMonospace()
boolean
isOther()
boolean
isSansSerif()
boolean
isSerif()
boolean
isSubsetOf(CategorySet other)
boolean
isSupersetOf(CategorySet other)
boolean
isSymbols()
java.lang.String
toString()
Returns a string description of the categories in this set, consisting of a comma-separated list of category names.CategorySet
union(CategorySet other)
-
-
-
Method Detail
-
equals
public boolean equals(CategorySet other)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
isSubsetOf
public boolean isSubsetOf(CategorySet other)
-
isSupersetOf
public boolean isSupersetOf(CategorySet other)
-
union
public CategorySet union(CategorySet other)
-
intersection
public CategorySet intersection(CategorySet other)
-
hasEmptyIntersectionWith
public boolean hasEmptyIntersectionWith(CategorySet other)
-
isEmpty
public boolean isEmpty()
-
isDisplay
public boolean isDisplay()
-
isHandwriting
public boolean isHandwriting()
-
isMonospace
public boolean isMonospace()
-
isSansSerif
public boolean isSansSerif()
-
isSerif
public boolean isSerif()
-
isSymbols
public boolean isSymbols()
-
isOther
public boolean isOther()
-
toString
public java.lang.String toString()
Returns a string description of the categories in this set, consisting of a comma-separated list of category names.- Overrides:
toString
in classjava.lang.Object
-
-