All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.data2viz.viz.Line.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0-RC5
Show newest version
package io.data2viz.viz

import io.data2viz.color.ColorOrGradient


class Line : Node(), HasStroke {

    var x1: Double = .0
    var y1: Double = .0
    var x2: Double = .0
    var y2: Double = .0

    @Deprecated("Use style.stroke", ReplaceWith("style.stroke"))
    override var stroke: ColorOrGradient?
        get() = style.stroke
        set(value) {
            style.stroke = value
        }

    @Deprecated("Use style.strokeWidth", ReplaceWith("style.strokeWidth"))
    override var strokeWidth: Double?
        get() = style.strokeWidth
        set(value) {
            style.strokeWidth = value
        }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy