Package-level declarations

Entry point of the plugin. Contains main classes, shared classes, and helper classes.

Types

Link copied to clipboard
data class Box<T : Any>(generator: () -> T, value: T? = null)

A lazily-instantiated reference to an object of type T.

Link copied to clipboard
object Bundle

Simple accessor for working with internationalized strings.

Link copied to clipboard

A mode in which a word should be capitalized.

Link copied to clipboard
class DataGenerationException(message: String? = null, cause: Throwable? = null) : Exception

Thrown if a random datum could not be generated.

Link copied to clipboard
abstract class DecoratorScheme : Scheme

Transparently extends or alters the functionality of a Scheme with a decorating function.

Link copied to clipboard
class ErrorReporter : ErrorReportSubmitter

A report submitter that opens a pre-filled issue creation form on Randomness' GitHub repository.

Link copied to clipboard
object Icons

Basic Randomness icons.

Link copied to clipboard
abstract class InsertAction(val repeat: Boolean = false, val text: String, description: String? = null, icon: Icon? = null) : AnAction

Inserts strings in the editor.

Link copied to clipboard
class Notifier : StartupActivity

Displays notifications when a project is opened.

Link copied to clipboard
data class OverlayedIcon(val base: Icon, val overlays: List<Icon> = emptyList()) : Icon

An icon with various icons displayed on top of it as overlays.

Link copied to clipboard
data class OverlayIcon(val base: Icon, val background: Icon? = null) : Icon

An overlay icon, which can be displayed on top of other icons.

Link copied to clipboard
class PersistentSettings : PersistentStateComponent<Element>

The persistent Settings instance, stored as an Element to allow custom conversion for backwards compatibility.

Link copied to clipboard
class PopupAction : AnAction

Shows a popup for all available Randomness actions.

Link copied to clipboard
class RadialColorReplacementFilter(colors: List<Color>, center: Pair<Int, Int>? = null) : RGBImageFilter

Replaces all colors with one of colors depending on the angle relative to center.

Link copied to clipboard
abstract class Scheme : State

A scheme is a State that is also a configurable random number generator.

Link copied to clipboard
abstract class SchemeEditor<S : Scheme>(val scheme: S) : Disposable

An editor for a Scheme.

Link copied to clipboard
data class Settings(var version: String = CURRENT_VERSION, val templateList: TemplateList = TemplateList()) : State

Contains references to various State objects.

Link copied to clipboard
abstract class State

A state holds variables that can be configured, validated, copied, and loaded.

Link copied to clipboard
object Timely

Functions relating to time-limited behavior.

Link copied to clipboard
data class TypeIcon(val base: Icon, val text: String, val colors: List<Color>) : Icon

A colored icon with some text in it.

Functions

Link copied to clipboard
fun Element.getAttributeValueByName(name: String): String?

Returns the value of the value attribute of the single Element contained in this Element that has attribute name="[name]", or null if no single such Element exists.

Link copied to clipboard
fun Element.getContentByName(name: String): Element?

Returns the Element contained in this Element that has attribute name="[name]", or null if no single such Element exists.

Link copied to clipboard
fun Element.getContentByPath(vararg names: String?): Element?

Traverses a path of Elements based on their names by monadically calling either getContentByName (if the name is not null) or getSingleContent (if the name is null).

Link copied to clipboard
fun Element.getElements(): List<Element>

Returns a list of all Elements contained in this Element.

Link copied to clipboard
fun Element.getSingleContent(): Element?

Returns the single Element that is contained in this Element, or null if this Element does not contain exactly one Element.

Link copied to clipboard
fun String.matchesFormat(format: String, vararg args: String): Boolean

Returns true if format is a format string for this string, optionally after inserting args into format.

Link copied to clipboard
fun ListPopupImpl.registerModifierActions(captionModifier: (ActionEvent?) -> String)

Registers actions such that actions can be selected while holding (combinations of) modifier keys.

Link copied to clipboard
fun <E> MutableCollection<E>.setAll(collection: Collection<E>)

Removes all elements from this collection and adds all elements from collection.

Link copied to clipboard
fun Element.setAttributeValueByName(name: String, value: String)

Sets the value of the value attribute of the single Element contained in this Element that has attribute name="[name]" to value, or does nothing if no single such Element exists.