moveVertically

fun moveVertically(component: Component, distance: Int, addDistance: Boolean = false): Component

Creates a copy of the given component with its font changed to a vertically moved font by the given distance.

If the given component is already vertically moved, its current and new distances will only be added together if addDistance is true.

Depending on the distance and configuration settings, the font that the component was changed to might not exist.

Throws

If the given component is not a BuildableComponent.