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

de.sciss.lucre.swing.graph.impl.PanelExpandedImpl.scala Maven / Gradle / Ivy

The newest version!
/*
 *  PanelExpandedImpl.scala
 *  (LucreSwing)
 *
 *  Copyright (c) 2014-2019 Hanns Holger Rutz. All rights reserved.
 *
 *	This software is published under the GNU Lesser General Public License v2.1+
 *
 *
 *	For further information, please contact Hanns Holger Rutz at
 *	[email protected]
 */

package de.sciss.lucre.swing.graph.impl

import de.sciss.lucre.expr.Ex
import de.sciss.lucre.stm.Sys
import de.sciss.lucre.swing.View
import de.sciss.lucre.swing.graph.Panel

trait PanelExpandedImpl[S <: Sys[S]] extends ComponentExpandedImpl[S] {
  _: View[S] =>

  override def init()(implicit tx: S#Tx, ctx: Ex.Context[S]): this.type = {
    initProperty(Panel.keyBorder, Panel.defaultBorder) {
      c => if (c != Panel.defaultBorder) component.border = c.mkPeer()
    }
    super.init()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy