本文整理汇总了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;
}
}
}
}
示例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;
}
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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;
}
}
}
}
}
}