commonMain.earth.worldwind.layer.graticule.GraticuleRenderingParams.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwind-jvm Show documentation
Show all versions of worldwind-jvm Show documentation
The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.
The newest version!
package earth.worldwind.layer.graticule
import earth.worldwind.render.Color
import earth.worldwind.render.Font
class GraticuleRenderingParams: MutableMap by HashMap() {
var isDrawLines: Boolean
get() = get(KEY_DRAW_LINES) as? Boolean ?: false
set(drawLines) { put(KEY_DRAW_LINES, drawLines) }
var lineColor: Color?
get() = get(KEY_LINE_COLOR) as? Color
set(color) { put(KEY_LINE_COLOR, color) }
var lineWidth: Float
get() = get(KEY_LINE_WIDTH) as? Float ?: 0.0f
set(lineWidth) { put(KEY_LINE_WIDTH, lineWidth) }
var lineStyle: LineStyle
get() = get(KEY_LINE_STYLE) as? LineStyle ?: LineStyle.SOLID
set(lineStyle) { put(KEY_LINE_STYLE, lineStyle) }
var isDrawLabels: Boolean
get() = get(KEY_DRAW_LABELS) as? Boolean ?: false
set(drawLabels) { put(KEY_DRAW_LABELS, drawLabels) }
var labelColor: Color?
get() = get(KEY_LABEL_COLOR) as? Color
set(color) { put(KEY_LABEL_COLOR, color) }
var labelFont: Font?
get() = get(KEY_LABEL_FONT) as? Font
set(font) { put(KEY_LABEL_FONT, font) }
companion object {
const val KEY_DRAW_LINES = "DrawGraticule"
const val KEY_LINE_COLOR = "GraticuleLineColor"
const val KEY_LINE_WIDTH = "GraticuleLineWidth"
const val KEY_LINE_STYLE = "GraticuleLineStyle";
const val KEY_DRAW_LABELS = "DrawLabels"
const val KEY_LABEL_COLOR = "LabelColor"
const val KEY_LABEL_FONT = "LabelFont"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy