本文整理匯總了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;
}
}
}
}
}
}