当前位置: 首页>>代码示例>>Java>>正文


Java Gauge.getThresholdColor方法代码示例

本文整理汇总了Java中eu.hansolo.medusa.Gauge.getThresholdColor方法的典型用法代码示例。如果您正苦于以下问题:Java Gauge.getThresholdColor方法的具体用法?Java Gauge.getThresholdColor怎么用?Java Gauge.getThresholdColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在eu.hansolo.medusa.Gauge的用法示例。


在下文中一共展示了Gauge.getThresholdColor方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SimpleDigitalSkin

import eu.hansolo.medusa.Gauge; //导入方法依赖的package包/类
public SimpleDigitalSkin(Gauge gauge) {
    super(gauge);
    if (gauge.isAutoScale()) gauge.calcAutoScale();
    minValue             = gauge.getMinValue();
    maxValue             = gauge.getMaxValue();
    range                = gauge.getRange();
    angleStep            = ANGLE_RANGE / range;
    barColor             = gauge.getBarColor();
    valueColor           = gauge.getValueColor();
    unitColor            = gauge.getUnitColor();
    isStartFromZero      = gauge.isStartFromZero();
    sectionsVisible      = gauge.getSectionsVisible();
    sections             = gauge.getSections();
    thresholdVisible     = gauge.isThresholdVisible();
    thresholdColor       = gauge.getThresholdColor();
    decimalListener      = o -> handleEvents("DECIMALS");
    currentValueListener = o -> setBar(gauge.getCurrentValue());

    initGraphics();
    registerListeners();

    setBar(gauge.getCurrentValue());
}
 
开发者ID:HanSolo,项目名称:Medusa,代码行数:24,代码来源:SimpleDigitalSkin.java

示例2: ModernSkin

import eu.hansolo.medusa.Gauge; //导入方法依赖的package包/类
public ModernSkin(Gauge gauge) {
    super(gauge);
    if (gauge.isAutoScale()) gauge.calcAutoScale();
    angleStep            = ANGLE_RANGE / (gauge.getRange());
    mouseHandler         = event -> handleMouseEvent(event);
    buttonTooltip        = new Tooltip();
    locale               = gauge.getLocale();
    sectionsVisible      = gauge.getSectionsVisible();
    sections             = gauge.getSections();
    barColor             = gauge.getBarColor();
    thresholdColor       = gauge.getThresholdColor();
    animatedListener     = o -> handleEvents("ANIMATED");
    sectionListener      = c -> handleEvents("RESIZE");
    currentValueListener = o -> rotateNeedle(gauge.getCurrentValue());

    initGraphics();
    registerListeners();
}
 
开发者ID:HanSolo,项目名称:Medusa,代码行数:19,代码来源:ModernSkin.java

示例3: TileKpiSkin

import eu.hansolo.medusa.Gauge; //导入方法依赖的package包/类
public TileKpiSkin(Gauge gauge) {
    super(gauge);
    if (gauge.isAutoScale()) gauge.calcAutoScale();
    angleRange           = Helper.clamp(90.0, 180.0, gauge.getAngleRange());
    oldValue             = gauge.getValue();
    minValue             = gauge.getMinValue();
    threshold            = gauge.getThreshold();
    thresholdColor       = gauge.getThresholdColor();
    range                = gauge.getRange();
    angleStep            = angleRange / range;
    formatString         = new StringBuilder("%.").append(Integer.toString(gauge.getDecimals())).append("f").toString();
    locale               = gauge.getLocale();
    sectionsVisible      = gauge.getSectionsVisible();
    highlightSections    = gauge.isHighlightSections();
    sections             = gauge.getSections();
    sectionMap           = new HashMap<>(sections.size());
    currentValueListener = o -> rotateNeedle(gauge.getCurrentValue());
    for(Section section : sections) { sectionMap.put(section, new Arc()); }

    initGraphics();
    registerListeners();

    rotateNeedle(gauge.getCurrentValue());
}
 
开发者ID:HanSolo,项目名称:Medusa,代码行数:25,代码来源:TileKpiSkin.java

示例4: DigitalSkin

import eu.hansolo.medusa.Gauge; //导入方法依赖的package包/类
public DigitalSkin(Gauge gauge) {
    super(gauge);
    if (gauge.isAutoScale()) gauge.calcAutoScale();
    minValue             = gauge.getMinValue();
    maxValue             = gauge.getMaxValue();
    range                = gauge.getRange();
    angleStep            = ANGLE_RANGE / range;
    locale               = gauge.getLocale();
    barColor             = gauge.getBarColor();
    valueColor           = gauge.getValueColor();
    titleColor           = gauge.getTitleColor();
    subTitleColor        = gauge.getSubTitleColor();
    unitColor            = gauge.getUnitColor();
    isStartFromZero      = gauge.isStartFromZero();
    sectionsVisible      = gauge.getSectionsVisible();
    sections             = gauge.getSections();
    thresholdVisible     = gauge.isThresholdVisible();
    thresholdColor       = gauge.getThresholdColor();
    currentValueListener = o -> setBar(gauge.getCurrentValue());

    initGraphics();
    registerListeners();

    setBar(gauge.getCurrentValue());
}
 
开发者ID:HanSolo,项目名称:Medusa,代码行数:26,代码来源:DigitalSkin.java


注:本文中的eu.hansolo.medusa.Gauge.getThresholdColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。