javafx.scene.paint.Color.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中javafx.scene.paint.Color.hashCode()方法的一些代码示例,展示了Color.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Color.hashCode()方法的具体详情如下:
包路径:javafx.scene.paint.Color
类名称:Color
方法名:hashCode

Color.hashCode介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

button.ripplerFillProperty().bind(glyphDetailViewer.colorPicker.valueProperty());
glyphDetailViewer.colorPicker.valueProperty().addListener((o, oldVal, newVal) -> {
  String webColor = "#" + Integer.toHexString(newVal.hashCode()).substring(0, 6).toUpperCase();
  Consumer<String> lookupConsumer = lookup->{
    BackgroundFill fill = ((Region) glyphDetailViewer.sizeSlider.lookup(lookup)).getBackground()

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.text.ui

public int hashCode() {
  if (fHashCode == 0) {
    int multiplier= 37; // some prime
    fHashCode= 13; // some random value
    fHashCode= multiplier * fHashCode + (stylename == null ? 0 : stylename.hashCode());
    fHashCode= multiplier * fHashCode + (font == null ? 0 : font.hashCode());
    fHashCode= multiplier * fHashCode + (background == null ? 0 : background.hashCode());
    fHashCode= multiplier * fHashCode + (foreground == null ? 0 : foreground.hashCode());
    fHashCode= multiplier * fHashCode + style;
  }
  return fHashCode;
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

hash ^= this.stylename.hashCode();
if (this.foreground != null)
  hash ^= this.foreground.hashCode();
if (this.background != null)
  hash ^= this.background.hashCode();
if (this.font != null)
  hash ^= this.font.hashCode();
hash ^= this.rise;
if (this.underlineColor != null)
  hash ^= this.underlineColor.hashCode();
if (this.strikeoutColor != null)
  hash ^= this.strikeoutColor.hashCode();
if (this.borderColor != null)
  hash ^= this.borderColor.hashCode();
hash ^= this.underlineStyle;
return hash;

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

hash ^= this.stylename.hashCode();
if (this.foreground != null)
  hash ^= this.foreground.hashCode();
if (this.background != null)
  hash ^= this.background.hashCode();
if (this.font != null)
  hash ^= this.font.hashCode();
hash ^= this.rise;
if (this.underlineColor != null)
  hash ^= this.underlineColor.hashCode();
if (this.strikeoutColor != null)
  hash ^= this.strikeoutColor.hashCode();
if (this.borderColor != null)
  hash ^= this.borderColor.hashCode();
hash ^= this.underlineStyle;
return hash;

相关文章