Class MoleculeViewSkin

  • All Implemented Interfaces:
    IMoleculeView, javafx.scene.control.Skin<MoleculeView>

    public class MoleculeViewSkin
    extends java.lang.Object
    implements javafx.scene.control.Skin<MoleculeView>, IMoleculeView
    Project: User: rufenec Date: 10/12/11 Time: 4:10 PM
    • Field Detail

      • DEFAULT_BG

        public static final javafx.scene.paint.Color DEFAULT_BG
    • Constructor Detail

      • MoleculeViewSkin

        public MoleculeViewSkin​(MoleculeView control)
    • Method Detail

      • getSkinnable

        public MoleculeView getSkinnable()
        Specified by:
        getSkinnable in interface javafx.scene.control.Skin<MoleculeView>
      • getNode

        public javafx.scene.Node getNode()
        Specified by:
        getNode in interface javafx.scene.control.Skin<MoleculeView>
      • dispose

        public void dispose()
        Specified by:
        dispose in interface javafx.scene.control.Skin<MoleculeView>
      • draw

        public void draw()
      • getBorderColor

        public javafx.scene.paint.Color getBorderColor()
      • setBorderColor

        public void setBorderColor​(javafx.scene.paint.Color borderColor)
      • valueProperty

        public javafx.beans.property.ObjectProperty<StereoMolecule> valueProperty()
      • registerDragEvent

        protected void registerDragEvent()
      • idcodeProperty

        public javafx.beans.property.StringProperty idcodeProperty()
      • getBackgroundColor

        public javafx.scene.paint.Color getBackgroundColor()
      • setBackgroundColor

        public void setBackgroundColor​(javafx.scene.paint.Color backgroundColor)
      • setColors

        public void setColors​(javafx.scene.paint.Color foregroundColor,
                              javafx.scene.paint.Color backgroundColor)
        Colors to be passed to Depictor. If the foreground is set, then all bonds and C- and H-atoms are drawn in the foreground color. All other atoms are drawn in the atomicNo specific color, which is adapted to have a minimum contrast on the given background.
        Parameters:
        foregroundColor - null to use black or white, whatever contrasts better with background
        backgroundColor -
      • setOverruleColors

        public void setOverruleColors​(javafx.scene.paint.Color overruleForeground,
                                      javafx.scene.paint.Color overruleBackground)
        Colors to be passed to Depictor. If the overrule foreground is set, then the entire molecule is drawn in this color. The overrule background color is used to construct a proper bond hilite color, if bond hiliting is used.
        Parameters:
        overruleForeground - null to use foreground defined by setColors() or automatic foreground
        overruleBackground -