![JAR search and dependency download from the Maven repository](/logo.png)
fernice.reflare.light.FLabel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fernice-reflare Show documentation
Show all versions of fernice-reflare Show documentation
CSS integration through fernice-flare in Java Swing as a LookAndFeel
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package fernice.reflare.light
import org.fernice.reflare.ui.FlareLabelUI
import org.fernice.reflare.ui.text.FlareHTML
import javax.swing.Icon
import javax.swing.JLabel
import javax.swing.JToolTip
@Suppress("UNUSED")
open class FLabel : JLabel {
constructor()
constructor(icon: Icon?) : super(icon)
constructor(icon: Icon?, horizontalAlignment: Int) : super(icon, horizontalAlignment)
constructor(text: String?) : super(text)
constructor(text: String?, horizontalAlignment: Int) : super(text, horizontalAlignment)
constructor(text: String?, icon: Icon?, horizontalAlignment: Int) : super(text, icon, horizontalAlignment)
override fun updateUI() {
super.setUI(integrationDependent(this) { FlareLabelUI() })
}
override fun repaint(tm: Long, x: Int, y: Int, width: Int, height: Int) {
if (FlareHTML.isFeedbackBehaviourEnabled(this)) {
super.repaint(tm, x, y, width, height)
}
}
override fun createToolTip(): JToolTip {
val toolTip = FToolTip()
toolTip.component = this
return toolTip
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy