AxesEntity

class AxesEntity @JvmOverloads constructor(val meepMeep: MeepMeep, axesThickness: Double, colorScheme: ColorScheme, font: Font? = null, fontSize: Float = 20.0f) : ThemedEntity, MouseMotionListener

Entity representing the axes in the MeepMeep shell.

Constructors

Link copied to clipboard
constructor(meepMeep: MeepMeep, axesThickness: Double, colorScheme: ColorScheme, font: Font? = null, fontSize: Float = 20.0f)

Properties

Link copied to clipboard
open override val meepMeep: MeepMeep

The MeepMeep instance.

Link copied to clipboard
open override val tag: String

Tag for the axes entity.

Link copied to clipboard
open override var zIndex: Int

Z-index for rendering order.

Functions

Link copied to clipboard
open override fun mouseDragged(p0: MouseEvent?)

Unused mouse dragged event handler.

Link copied to clipboard
open override fun mouseMoved(me: MouseEvent?)

Handles mouse moved events to animate the axes opacity.

Link copied to clipboard
open override fun render(gfx: Graphics2D, canvasWidth: Int, canvasHeight: Int)

Renders the axes on the given graphics context.

Link copied to clipboard
open override fun setCanvasDimensions(canvasWidth: Double, canvasHeight: Double)

Sets the dimensions of the canvas.

Link copied to clipboard
fun setInterval(interval: Int)

Sets the interval for the axes ticks.

Link copied to clipboard
open override fun switchScheme(scheme: ColorScheme)

Switches the color scheme of the axes.

Link copied to clipboard
open override fun update(deltaTime: Long)

Updates the axes entity.