Search in sources :

Example 21 with RichStyle

use of limelight.styles.RichStyle in project limelight by slagyr.

the class StyledTextTest method makeSampleStyles.

private void makeSampleStyles() {
    styles = new HashMap<String, RichStyle>();
    style1 = new RichStyle();
    style2 = new RichStyle();
    styles.put("fizz", style1);
    styles.put("bang", style2);
    defaultStyle = new RichStyle();
}
Also used : RichStyle(limelight.styles.RichStyle)

Aggregations

RichStyle (limelight.styles.RichStyle)21 Test (org.junit.Test)9 Scene (limelight.ui.model.Scene)3 HashMap (java.util.HashMap)2 StyleObserver (limelight.styles.StyleObserver)2 Opts (limelight.util.Opts)2 TextLayout (java.awt.font.TextLayout)1 AttributedString (java.text.AttributedString)1 Matcher (java.util.regex.Matcher)1 LimelightException (limelight.LimelightException)1 FakeScene (limelight.ui.model.FakeScene)1 MockStage (limelight.ui.model.MockStage)1 StyledText (limelight.ui.text.StyledText)1 StyledTextParser (limelight.ui.text.StyledTextParser)1