本文整理汇总了Java中javafx.scene.paint.Color.TRANSPARENT属性的典型用法代码示例。如果您正苦于以下问题:Java Color.TRANSPARENT属性的具体用法?Java Color.TRANSPARENT怎么用?Java Color.TRANSPARENT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javafx.scene.paint.Color
的用法示例。
在下文中一共展示了Color.TRANSPARENT属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleMouseClick
private void handleMouseClick (Tile tile) {
if (checkClickable(tile)) {
if (tile.getTile().getFill() == Color.TRANSPARENT) {
myLevel.getPlaceableTileManager().getPlaceableMap().getBitMap()[tile
.getRowPosition()][tile
.getColPosition()] = true;
tile.getTile().setFill(Color.RED);
}
else if (tile.getTile().getFill() == Color.RED) {
myLevel.getPlaceableTileManager().getPlaceableMap().getBitMap()[tile
.getRowPosition()][tile
.getColPosition()] = false;
tile.getTile().setFill(Color.TRANSPARENT);
}
}
}
示例2: RadialGradientSample
public RadialGradientSample() {
//create simple radial gradient
RadialGradient gradient1 = new RadialGradient(0, 0, 0.5, 0.5, 1, true, CycleMethod.NO_CYCLE, new Stop[] {
new Stop(0, Color.DODGERBLUE),
new Stop(1, Color.BLACK)
});
Circle circle1 = new Circle(45, 45, 40, gradient1);
//create complex radial gradient
RadialGradient gradient2 = new RadialGradient(20, 1, 0.5, 0.5, 0.6, true, CycleMethod.NO_CYCLE, new Stop[] {
new Stop(0, Color.TRANSPARENT),
new Stop(0.5, Color.DARKGRAY),
new Stop(0.64, Color.WHITESMOKE),
new Stop(0.65, Color.YELLOW),
new Stop(1, Color.GOLD)
});
Circle circle2 = new Circle(145, 45, 40, gradient2);
HBox hb = new HBox(10);
hb.getChildren().addAll(circle1, circle2);
// show the circles
getChildren().addAll(hb);
}
示例3: PlotItem
public PlotItem(final String NAME, final double VALUE, final String DESCRIPTION, final Color FILL) {
_name = NAME;
_value = VALUE;
_description = DESCRIPTION;
_fill = FILL;
_stroke = Color.TRANSPARENT;
_symbol = Symbol.NONE;
level = -1;
outgoing = new LinkedHashMap<>();
incoming = new LinkedHashMap<>();
listeners = new CopyOnWriteArrayList<>();
}
示例4: createIconContent
public static Node createIconContent() {
StackPane sp = new StackPane();
BorderPane borderPane = new BorderPane();
Rectangle rectangle = new Rectangle(62, 62, Color.LIGHTGREY);
rectangle.setStroke(Color.BLACK);
borderPane.setPrefSize(rectangle.getWidth(), rectangle.getHeight());
Rectangle recTop = new Rectangle(62, 5, Color.web("#349b00"));
recTop.setStroke(Color.BLACK);
Rectangle recBottom = new Rectangle(62, 14, Color.web("#349b00"));
recBottom.setStroke(Color.BLACK);
Rectangle recLeft = new Rectangle(20, 41, Color.TRANSPARENT);
recLeft.setStroke(Color.BLACK);
Rectangle recRight = new Rectangle(20, 41, Color.TRANSPARENT);
recRight.setStroke(Color.BLACK);
Rectangle centerRight = new Rectangle(20, 41, Color.TRANSPARENT);
centerRight.setStroke(Color.BLACK);
borderPane.setRight(recRight);
borderPane.setTop(recTop);
borderPane.setLeft(recLeft);
borderPane.setBottom(recBottom);
borderPane.setCenter(centerRight);
sp.getChildren().addAll(rectangle, borderPane);
return new Group(sp);
}
示例5: XYChartItem
public XYChartItem(final double X, final double Y, final String NAME, final Color FILL) {
this(X, Y, NAME, FILL, Color.TRANSPARENT, Symbol.NONE);
}
示例6: Series
public Series(final List<T> ITEMS, final ChartType TYPE, final String NAME) {
this(ITEMS, TYPE, NAME, Color.TRANSPARENT, Color.BLACK, Color.BLACK, Color.BLACK, Symbol.CIRCLE);
}
示例7: XYZChartItem
public XYZChartItem(final double X, final double Y, final double Z) {
this(X, Y, Z, "", Color.RED, Color.TRANSPARENT, Symbol.NONE);
}
示例8: ChartData
public ChartData(final String NAME, final Color FILL_COLOR) {
this(NAME, 0, FILL_COLOR, Color.TRANSPARENT, Color.BLACK, Instant.now(), true, 800);
}
示例9: ChartItem
public ChartItem(final double VALUE, final Instant TIMESTAMP) {
this("", VALUE, Color.rgb(233, 30, 99), Color.TRANSPARENT, Color.BLACK, TIMESTAMP, false, 800);
}
示例10: YSeries
public YSeries(final List<T> ITEMS, final ChartType TYPE, final String NAME) {
this(ITEMS, TYPE, NAME, Color.TRANSPARENT, Color.BLACK, Symbol.CIRCLE);
}
示例11: YChartItem
public YChartItem(final double Y, final String NAME) {
this(Y, NAME, Color.RED, Color.TRANSPARENT, Symbol.NONE);
}
示例12: PixelMatrix
public PixelMatrix(final int COLS, final int ROWS, final Color DOT_ON_COLOR) {
this(250, 250, COLS, ROWS, DOT_ON_COLOR, Color.TRANSPARENT, PixelShape.SQUARE);
}