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

net.nemerosa.ontrack.git.model.plot.GPlot.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.git.model.plot

import java.util.*

class GPlot {

    private val items = ArrayList()

    val width: Int
        get() {
            var width = 0
            for (item in items) {
                width = Math.max(width, item.maxX)
            }
            return width
        }

    val height: Int
        get() {
            var height = 0
            for (item in items) {
                height = Math.max(height, item.maxY)
            }
            return height
        }

    fun add(item: GItem): GPlot {
        items.add(item)
        return this
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy