public class TerminalAppearance extends Object
SwingTerminal
is to be visually presented.
You can create custom objects of this class to control how you want your
SwingTerminal
to look.SwingTerminal
Modifier and Type | Field and Description |
---|---|
static TerminalAppearance |
DEFAULT_APPEARANCE |
static Font |
DEFAULT_BOLD_FONT |
static Font |
DEFAULT_NORMAL_FONT |
Constructor and Description |
---|
TerminalAppearance(Font normalTextFont,
Font boldTextFont,
TerminalPalette colorPalette,
boolean useBrightColorsOnBold) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Font |
getBoldTextFont() |
Font |
getCJKFont() |
TerminalPalette |
getColorPalette() |
Font |
getNormalTextFont() |
int |
hashCode() |
String |
toString() |
boolean |
useBrightColorsOnBold() |
TerminalAppearance |
withFont(Font textFont) |
TerminalAppearance |
withFont(Font normalTextFont,
Font boldTextFont) |
TerminalAppearance |
withPalette(TerminalPalette palette) |
TerminalAppearance |
withUseBrightColors(boolean useBrightColorsOnBold) |
public static final Font DEFAULT_NORMAL_FONT
public static final Font DEFAULT_BOLD_FONT
public static final TerminalAppearance DEFAULT_APPEARANCE
public TerminalAppearance(Font normalTextFont, Font boldTextFont, TerminalPalette colorPalette, boolean useBrightColorsOnBold)
public Font getNormalTextFont()
public Font getBoldTextFont()
public Font getCJKFont()
public TerminalPalette getColorPalette()
public boolean useBrightColorsOnBold()
public TerminalAppearance withFont(Font textFont)
public TerminalAppearance withFont(Font normalTextFont, Font boldTextFont)
public TerminalAppearance withPalette(TerminalPalette palette)
public TerminalAppearance withUseBrightColors(boolean useBrightColorsOnBold)
Copyright © 2015. All Rights Reserved.