Class PerspectiveFont
java.lang.Object
org.apache.commons.lang3.tuple.Triple<String,String,PerspectiveFontType>
  
com.inductiveautomation.perspective.common.fonts.PerspectiveFont
- All Implemented Interfaces:
- Serializable,- Comparable<org.apache.commons.lang3.tuple.Triple<String,- String, - PerspectiveFontType>> 
public class PerspectiveFont
extends org.apache.commons.lang3.tuple.Triple<String,String,PerspectiveFontType>  
A PerspectiveFont is a 
Triple of a font name (i.e. "Roboto" or "merriweather"), a font style (i.e. "Bold"
 or "v19-latin-300"), and a supported font type (i.e. "ttf" or "woff").
 
 We do not override Triple.equals(Object) and Triple.hashCode() since those implementations use the
 left, middle, and right values from the respective getters overridden in this derived class.
- See Also:
- 
Field SummaryFieldsFields inherited from class org.apache.commons.lang3.tuple.TripleEMPTY_ARRAY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetLeft()getRight()static Optional<PerspectiveFont>Parse a file name into a PerspectiveFont.Methods inherited from class org.apache.commons.lang3.tuple.TriplecompareTo, emptyArray, equals, hashCode, of, toString, toString
- 
Field Details- 
name
- 
style
- 
type
 
- 
- 
Constructor Details- 
PerspectiveFont
 
- 
- 
Method Details- 
getLeft- Specified by:
- getLeftin class- org.apache.commons.lang3.tuple.Triple<String,- String, - PerspectiveFontType> 
 
- 
getMiddle- Specified by:
- getMiddlein class- org.apache.commons.lang3.tuple.Triple<String,- String, - PerspectiveFontType> 
 
- 
getRight- Specified by:
- getRightin class- org.apache.commons.lang3.tuple.Triple<String,- String, - PerspectiveFontType> 
 
- 
parseParse a file name into a PerspectiveFont. For example: "merriweather-v19-latin-300.eot" would parse into a PerspectiveFont with font name "merriweather", font style "v19-latin-300", and font type "eot"- Parameters:
- fileName- The file name to parse
- Returns:
- An Optionalcontaining the parsed PerspectiveFont, or an empty Optional if the file name could not be parsed
 
 
-