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


Java DropShadow.setOffsetY方法代码示例

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


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

示例1: graphicMods

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
/**
 * Modifies the GUI with minor fixes and styles.
 */
private void graphicMods() {
    taskListsScrollPane.setFitToWidth(true);
    tasksScrollPane.setFitToWidth(true);

    //Colors
    tasksScrollPane.setStyle("-fx-background-color: transparent;");
    tasksAnchorPane.setStyle("-fx-background-color: white;");

    //Effect for the title
    DropShadow shadow = new DropShadow();
    shadow.setOffsetY(1.0);
    shadow.setOffsetX(1.0);
    shadow.setColor(Color.GRAY);
    titleTaskList.setEffect(shadow);
}
 
开发者ID:Soheibooo,项目名称:EMBER,代码行数:19,代码来源:MainController.java

示例2: Toast

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
public Toast(final String msg) {
    label = new Label(msg);
    String style =  "-fx-background-color:black;" +
            "-fx-background-radius:10;" +
            "-fx-font: 16px \"Microsoft YaHei\";" +
            "-fx-text-fill:white;-fx-padding:10;";
    label.setStyle(style);
    DropShadow dropShadow = new DropShadow();
    dropShadow.setBlurType(BlurType.THREE_PASS_BOX);
    dropShadow.setWidth(40);
    dropShadow.setHeight(40);
    dropShadow.setRadius(19.5);
    dropShadow.setOffsetX(0);
    dropShadow.setOffsetY(00);
    dropShadow.setColor(Color.color(0, 0, 0));
    label.setEffect(dropShadow);
}
 
开发者ID:linchaolong,项目名称:ApkToolPlus,代码行数:18,代码来源:Toast.java

示例3: setSelectedFocusBorder

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
private void setSelectedFocusBorder() {
    InnerShadow innerFocus = new InnerShadow();
    innerFocus.setColor(Color.rgb(104, 155, 201, 0.7));
    innerFocus.setBlurType(BlurType.ONE_PASS_BOX);
    innerFocus.setRadius(6.5);
    innerFocus.setChoke(0.7);
    innerFocus.setOffsetX(0.0);
    innerFocus.setOffsetY(0.0);

    DropShadow outerFocus = new DropShadow();
    outerFocus.setColor(Color.rgb(104, 155, 201));
    outerFocus.setBlurType(BlurType.ONE_PASS_BOX);
    outerFocus.setRadius(7.0);
    outerFocus.setSpread(0.7);
    outerFocus.setOffsetX(0.0);
    outerFocus.setOffsetY(0.0);
    outerFocus.setInput(innerFocus);

    for (Node child : getChildren()) {
        if (child instanceof StackPane) {
            child.setEffect(outerFocus);
        }
    }
}
 
开发者ID:cis422s14team5,项目名称:WatchlistPro,代码行数:25,代码来源:AquaCheckBoxSkin.java

示例4: setFocusBorder

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
private void setFocusBorder() {
    InnerShadow innerFocus = new InnerShadow();
    innerFocus.setColor(Color.rgb(104, 155, 201));
    innerFocus.setBlurType(BlurType.ONE_PASS_BOX);
    innerFocus.setRadius(6.5);
    innerFocus.setChoke(0.7);
    innerFocus.setOffsetX(0.0);
    innerFocus.setOffsetY(0.0);

    DropShadow outerFocus = new DropShadow();
    outerFocus.setColor(Color.rgb(104, 155, 201));
    outerFocus.setBlurType(BlurType.ONE_PASS_BOX);
    outerFocus.setRadius(5.0);
    outerFocus.setSpread(0.6);
    outerFocus.setOffsetX(0.0);
    outerFocus.setOffsetY(0.0);
    outerFocus.setInput(innerFocus);

    for (Node child : getChildren()) {
        if (child instanceof StackPane) {
            child.setEffect(outerFocus);
        }
    }
}
 
开发者ID:cis422s14team5,项目名称:WatchlistPro,代码行数:25,代码来源:AquaCheckBoxSkin.java

示例5: writeNodes

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
/**
 * You can write ImageView, Text, Labels, and other Nodes to the
 * OutputPanel with this method.
 * 
 * @param nodes
 */
public void writeNodes(Node ... nodes){

	HBox hBox = new HBox();
	for(Node node: nodes){
		if(node instanceof Text){
			DropShadow ds = new DropShadow();
			ds.setColor(Color.GRAY);
			ds.setOffsetX(3);
			ds.setOffsetY(3);
			node.setEffect(ds);
		}
		hBox.getChildren().add(node);
	}
	rePosScroll = true;
	vBox.getChildren().add(hBox);
	rePosScroll = true;
}
 
开发者ID:Tokanagrammar,项目名称:tokanagrammar-dev,代码行数:24,代码来源:OutputPanel.java

示例6: LettersPane

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
public LettersPane() {
    setId("LettersPane");
    setPrefSize(480,480);
    setFocusTraversable(true);
    setOnMousePressed(new EventHandler<MouseEvent>() {
        
        @Override public void handle(MouseEvent me) {
            requestFocus();
            me.consume();
        }
    });
    setOnKeyPressed(new EventHandler<KeyEvent>() {
        
        @Override public void handle(KeyEvent ke) {
            createLetter(ke.getText());
            ke.consume();
        }
    });
    // create press keys text
    pressText = new Text("Press Keys");
    pressText.setTextOrigin(VPos.TOP);
    pressText.setFont(new Font(Font.getDefault().getFamily(), 40));
    pressText.setLayoutY(5);
    pressText.setFill(Color.rgb(80, 80, 80));
    DropShadow effect = new DropShadow();
    effect.setRadius(0);
    effect.setOffsetY(1);
    effect.setColor(Color.WHITE);
    pressText.setEffect(effect);
    getChildren().add(pressText);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:32,代码来源:KeyStrokeMotion.java

示例7: createIconContent

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
public static Node createIconContent() {
    Text sample = new Text("FX");
    sample.setFont(Font.font(Font.getDefault().getFamily(), FontWeight.BOLD,80));
    sample.setStyle("-fx-font-size: 80px;");
    sample.setFill(Color.web("#333333"));
    final DropShadow dropShadow = new DropShadow();
    dropShadow.setOffsetX(4);
    dropShadow.setOffsetY(6);
    dropShadow.setColor(Color.rgb(0,0,0,0.7));
    sample.setEffect(dropShadow);
    return sample;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:13,代码来源:DropShadowSample.java

示例8: createBean

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
private static Group createBean(double rotate, double translateX, double translateY) {
    javafx.scene.shape.Ellipse bean1 = new javafx.scene.shape.Ellipse(16, 10);
    javafx.scene.shape.Ellipse bean1end = new javafx.scene.shape.Ellipse( 4,3, 3.2, 1.8);
    bean1end.setFill(Color.WHITESMOKE);
    bean1.setFill(Color.BROWN);
    javafx.scene.Group group = new javafx.scene.Group(bean1, bean1end);
    group.setRotate(rotate);
    group.setTranslateX(translateX+57);
    group.setTranslateY(translateY+57);
    DropShadow dropShadow = new DropShadow();
    dropShadow.setOffsetX(2);
    dropShadow.setOffsetY(3);
    group.setEffect(dropShadow);
    return group;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:16,代码来源:ChangeListenerSample.java

示例9: init

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
@Override
protected void init() {
    String tooltip = "999";
    Text icon = new Text(tooltip);
    icon.setFill(Color.BISQUE);
    DropShadow ds = new DropShadow();
    ds.setOffsetY(3.0F);
    ds.setColor(Color.GOLDENROD);
    icon.setEffect(ds);
    initializeButton(tooltip, icon);
}
 
开发者ID:mbari-media-management,项目名称:vars-annotation,代码行数:12,代码来源:TempPopulationNinesBC.java

示例10: init

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
@Override
protected void init() {
    String tooltip = "Dense";
    Text icon = new Text(tooltip);
    icon.setFill(Color.BISQUE);

    DropShadow ds = new DropShadow();
    ds.setOffsetY(3.0F);
    ds.setColor(Color.GOLDENROD);
    icon.setEffect(ds);
    initializeButton(tooltip, icon);
}
 
开发者ID:mbari-media-management,项目名称:vars-annotation,代码行数:13,代码来源:TempDenseBC.java

示例11: generateElevationShadow

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
public static DropShadow generateElevationShadow(final double elevation) {
    final DropShadow dropShadow = new DropShadow();
    dropShadow.setRadius(elevation * 1.0f);
    dropShadow.setOffsetY(elevation / 6);

    double alpha = 0.32f + elevation / 100f;
    dropShadow.setColor(Color.web("rgba(0,0,0," + alpha + ")"));

    return dropShadow;
}
 
开发者ID:ulriknyman,项目名称:H-Uppaal,代码行数:11,代码来源:DropShadowHelper.java

示例12: createText

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
private Text createText(String name) {
	//DropShadow effect
	DropShadow dropShadow = new DropShadow();
	dropShadow.setOffsetX(5);
	dropShadow.setOffsetY(5);
	//Adding text and DropShadow effect to it
	Text text = new Text(name);
	text.setFont(Font.font("Courier New", FontWeight.BOLD, 28));
	text.setEffect(dropShadow);
	return text;
}
 
开发者ID:LtubSalad,项目名称:voogasalad-ltub,代码行数:12,代码来源:PasswordManager.java

示例13: setStyle

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
public void setStyle(Node control) {
    DropShadow dropShadow = new DropShadow();

    dropShadow.setBlurType(BlurType.ONE_PASS_BOX);
    dropShadow.setColor(Color.GREEN);
    dropShadow.setRadius(10);
    dropShadow.setSpread(0.5);
    dropShadow.setOffsetX(10);
    dropShadow.setOffsetY(15);
    control.setEffect(dropShadow);
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:12,代码来源:ControlsCssStylesFactory.java

示例14: shadowandinner

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
public void shadowandinner(Blend blend){
    DropShadow shadow = new DropShadow();
    shadow.setOffsetY(7.0f);
    shadow.setColor(Color.DARKGRAY);

    InnerShadow innerShadow = new InnerShadow();
    innerShadow.setOffsetX(1.0f);
    innerShadow.setOffsetY(1.0f);
    innerShadow.setColor(Color.LIGHTGRAY);

    blend.setMode(BlendMode.MULTIPLY);
    blend.setBottomInput(shadow);
    blend.setTopInput(innerShadow);
}
 
开发者ID:ProPra16,项目名称:programmierpraktikum-abschlussprojekt-proprawunderbar,代码行数:15,代码来源:UIRunner.java

示例15: setupEffects

import javafx.scene.effect.DropShadow; //导入方法依赖的package包/类
private void setupEffects(ExileToolsHit item) {
	stackPane.setEffect(null);
	if (item.wtbCtr() > 0) {
		int depth = 20; // Setting the uniform variable for the glow width and height
		DropShadow borderGlow = new DropShadow();
		borderGlow.setOffsetY(0f);
		borderGlow.setOffsetX(0f);
		borderGlow.setColor(Color.GREY);
		borderGlow.setWidth(depth);
		borderGlow.setHeight(depth);
		stackPane.setEffect(borderGlow);
	}
}
 
开发者ID:thirdy,项目名称:blackmarket,代码行数:14,代码来源:ItemGridCell.java


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