StylesheetFromJSON

data class StylesheetFromJSON(codeTracking: String, hideCode: Boolean, hideVariables: Boolean, syntaxHighlightingOn: Boolean, syntaxHighlightingStyle: String, displayNewLinesInCode: Boolean, tabSpacing: Int, subtitles: StyleProperties, variables: Map<String, StyleProperties>, dataStructures: Map<String, StyleProperties>, positions: Map<String, PositionProperties>)

Stylesheet generated by parsing JSON file

Constructors

StylesheetFromJSON
Link copied to clipboard
fun StylesheetFromJSON(codeTracking: String = "stepInto", hideCode: Boolean = false, hideVariables: Boolean = false, syntaxHighlightingOn: Boolean = true, syntaxHighlightingStyle: String = "inkpot", displayNewLinesInCode: Boolean = true, tabSpacing: Int = 2, subtitles: StyleProperties = StyleProperties(), variables: Map<String, StyleProperties> = emptyMap(), dataStructures: Map<String, StyleProperties> = emptyMap(), positions: Map<String, PositionProperties> = emptyMap())
Create empty Stylesheet

Functions

component1
Link copied to clipboard
operator fun component1(): String
component10
Link copied to clipboard
operator fun component10(): Map<String, StyleProperties>
component11
Link copied to clipboard
operator fun component11(): Map<String, PositionProperties>
component2
Link copied to clipboard
operator fun component2(): Boolean
component3
Link copied to clipboard
operator fun component3(): Boolean
component4
Link copied to clipboard
operator fun component4(): Boolean
component5
Link copied to clipboard
operator fun component5(): String
component6
Link copied to clipboard
operator fun component6(): Boolean
component7
Link copied to clipboard
operator fun component7(): Int
component8
Link copied to clipboard
operator fun component8(): StyleProperties
component9
Link copied to clipboard
operator fun component9(): Map<String, StyleProperties>
copy
Link copied to clipboard
fun copy(codeTracking: String = "stepInto", hideCode: Boolean = false, hideVariables: Boolean = false, syntaxHighlightingOn: Boolean = true, syntaxHighlightingStyle: String = "inkpot", displayNewLinesInCode: Boolean = true, tabSpacing: Int = 2, subtitles: StyleProperties = StyleProperties(), variables: Map<String, StyleProperties> = emptyMap(), dataStructures: Map<String, StyleProperties> = emptyMap(), positions: Map<String, PositionProperties> = emptyMap()): StylesheetFromJSON
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

codeTracking
Link copied to clipboard
val codeTracking: String
: whether to step into or step over code
dataStructures
Link copied to clipboard
val dataStructures: Map<String, StyleProperties>
: style properties for data structures in program
displayNewLinesInCode
Link copied to clipboard
val displayNewLinesInCode: Boolean = true
: whether new lines \n should be displayed in the code block
hideCode
Link copied to clipboard
val hideCode: Boolean = false
: whether to hide the code and variable blocks
hideVariables
Link copied to clipboard
val hideVariables: Boolean = false
: whether to hide the variable block
positions
Link copied to clipboard
val positions: Map<String, PositionProperties>
: positions of each data structure as well as code, variable and subtitle blocks in final animation
subtitles
Link copied to clipboard
val subtitles: StyleProperties
: style properties for subtitles
syntaxHighlightingOn
Link copied to clipboard
val syntaxHighlightingOn: Boolean = true
: whether syntax highlighting in the code block should be switched on
syntaxHighlightingStyle
Link copied to clipboard
var syntaxHighlightingStyle: String
: which Pygments style should be applied to the code in the code block
tabSpacing
Link copied to clipboard
val tabSpacing: Int = 2
: how many tabs should be used to indent code in the code block
variables
Link copied to clipboard
val variables: Map<String, StyleProperties>
: style properties for variables in program