UNPKG

ts-jsdk

Version:

TypeScript implementation of the Java platform

25 lines 526 B
import { Font } from "./Font"; import { Color } from "./Color"; export class Component { constructor() { this.font = Font.DEFAULT; this.background = Color.GRAY; } getGraphicsConfiguration() { return null; } addFocusListener(_listener) { } addMouseListener(_listener) { } getBackground() { return this.background; } getFont() { return this.font; } setFont(font) { this.font = font; } } //# sourceMappingURL=Component.js.map