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


Java Side.values方法代码示例

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


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

示例1: chartPropertiesMultipleChangingAndCorrectness3Test

import javafx.geometry.Side; //导入方法依赖的package包/类
@Test(timeout = 3000000)//RT-27768
public void chartPropertiesMultipleChangingAndCorrectness3Test() throws Throwable {
    setSize(500, 500);

    for (Boolean animated : new Boolean[]{Boolean.TRUE, Boolean.FALSE}) {
        setPropertyByToggleClick(SettingType.UNIDIRECTIONAL, ChartProperties.animated, animated);
        for (Side titleSide : Side.values()) {
            setPropertyByChoiceBox(SettingType.UNIDIRECTIONAL, titleSide, ChartProperties.titleSide);
            try {
                pieChartPropertiesTest();
            } catch (Throwable ex) {
                System.out.println("Exception occured in state : ");
                System.out.println("animated : " + animated);
                System.out.println("titleSide : " + titleSide);
                throw ex;
            }
        }
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:20,代码来源:PieChartTest.java

示例2: chartPropertiesMultipleChangingAndCorrectness4Test

import javafx.geometry.Side; //导入方法依赖的package包/类
@Test(timeout = 3000000)//RT-27768
public void chartPropertiesMultipleChangingAndCorrectness4Test() throws Throwable {
    setSize(500, 500);

    for (Boolean animated : new Boolean[]{Boolean.TRUE, Boolean.FALSE}) {
        setPropertyByToggleClick(SettingType.UNIDIRECTIONAL, ChartProperties.animated, animated);
        for (Side legendSide : Side.values()) {
            setPropertyByChoiceBox(SettingType.UNIDIRECTIONAL, legendSide, ChartProperties.legendSide);
            try {
                pieChartPropertiesTest();
            } catch (Throwable ex) {
                System.out.println("Exception occured in state : ");
                System.out.println("animated : " + animated);
                System.out.println("legendSide : " + legendSide);
                throw ex;
            }

        }
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:21,代码来源:PieChartTest.java

示例3: titleSideCSSTest

import javafx.geometry.Side; //导入方法依赖的package包/类
@Test(timeout = 300000)
public void titleSideCSSTest() throws Exception, Throwable {
    //Switch off legend visibility to check, that title is centered to chart content.
    setPropertyByToggleClick(SettingType.SETTER, ChartProperties.legendVisible, Boolean.FALSE);

    for (Side side : Side.values()) {
        applyStyle(testedControl, "-fx-title-side", side.toString());
        titleSideCommonTest(side);
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:11,代码来源:ChartTestCommon.java

示例4: legendSideCSSTest

import javafx.geometry.Side; //导入方法依赖的package包/类
@Test(timeout = 300000)
public void legendSideCSSTest() throws Exception, Throwable {
    for (Side side : Side.values()) {
        applyStyle(testedControl, "-fx-legend-side", side.toString());
        legendSideTestCommon(side);
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:8,代码来源:ChartTestCommon.java

示例5: legendVisiblePropertyTest

import javafx.geometry.Side; //导入方法依赖的package包/类
@Test(timeout = 300000)
public void legendVisiblePropertyTest() throws Throwable {
    assertEquals(getNewChartInstance().isLegendVisible(), true);

    populateChart();

    for (Side side : Side.values()) {
        setPropertyByChoiceBox(SettingType.SETTER, side, ChartProperties.legendSide);
        legendVisibleTestCommon(new BooleanOptionSetter() {
            public void setProperty(Boolean value) {
                setPropertyByToggleClick(SettingType.SETTER, ChartProperties.legendVisible, value);
            }
        }, side);
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:16,代码来源:ChartTestCommon.java

示例6: legendVisibleCSSTest

import javafx.geometry.Side; //导入方法依赖的package包/类
@Test(timeout = 300000)
public void legendVisibleCSSTest() throws Throwable {

    populateChart();

    for (Side side : Side.values()) {
        setPropertyByChoiceBox(SettingType.SETTER, side, ChartProperties.legendSide);
        legendVisibleTestCommon(new BooleanOptionSetter() {
            public void setProperty(Boolean value) {
                applyStyle(testedControl, "-fx-legend-visible", value.toString());
            }
        }, side);
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:15,代码来源:ChartTestCommon.java

示例7: sideTest

import javafx.geometry.Side; //导入方法依赖的package包/类
@ScreenshotCheck
@Test(timeout = 300000)
public void sideTest() throws Throwable {
    for (Side side : Side.values()) {
        sideCB.as(Selectable.class).selector().select(side);
        expand();
        checkScreenshot(getClass().getSimpleName() + "-side-" + side.name(), contentPane);
    }
    throwScreenshotError();
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:11,代码来源:MenuButtonTest.java

示例8: commonComponentsRenderingCorrectnessTest

import javafx.geometry.Side; //导入方法依赖的package包/类
private void commonComponentsRenderingCorrectnessTest() throws Throwable {
    Side tSide = null;
    Side lSide = null;
    Boolean lVisible = null;
    Double prefWH = null;

    for (Side titleSide : Side.values()) {
        for (Side legendSide : Side.values()) {
            for (Boolean legendVisible : new Boolean[]{Boolean.TRUE, Boolean.FALSE}) {
                for (Double prefWidthHeight : new Double[]{400 - 50.0, 400 + 50.0}) {
                    //Batch of checkers for speedup.
                    if (!titleSide.equals(tSide)) {
                        setPropertyByChoiceBox(SettingType.UNIDIRECTIONAL, titleSide, ChartProperties.titleSide);
                        tSide = titleSide;
                    }

                    if (!legendSide.equals(lSide)) {
                        setPropertyByChoiceBox(SettingType.UNIDIRECTIONAL, legendSide, ChartProperties.legendSide);
                        lSide = legendSide;
                    }

                    if (!legendVisible.equals(lVisible)) {
                        setPropertyByToggleClick(SettingType.UNIDIRECTIONAL, ChartProperties.legendVisible, legendVisible);
                        lVisible = legendVisible;
                    }

                    if (!prefWidthHeight.equals(prefWH)) {
                        setPropertyBySlider(SettingType.UNIDIRECTIONAL, ChartProperties.prefWidth, prefWidthHeight);
                        setPropertyBySlider(SettingType.UNIDIRECTIONAL, ChartProperties.prefHeight, prefWidthHeight);
                        prefWH = prefWidthHeight;
                    }

                    try {
                        checkChartAppearanceInvariant();
                        checkChartPrefSizeAffectance(prefWidthHeight, prefWidthHeight);
                    } catch (Throwable ex) {
                        System.err.println("TitleSide : <" + titleSide + "> legendSide : <" + legendSide + "> legendVisible : <" + legendVisible + "> prefWidth and prefHeight : <" + prefWidthHeight + ">.");
                        throw ex;
                    }
                }
            }
        }
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:45,代码来源:ChartTestCommon.java


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