< prev index next >
functional/SceneGraphTests/src/test/scenegraph/lcd/transparency/Factories.java
Print this page
*** 24,62 ****
package test.scenegraph.lcd.transparency;
import javafx.scene.Node;
import javafx.scene.layout.StackPane;
- import javafx.scene.layout.StackPaneBuilder;
import javafx.scene.paint.Color;
! import javafx.scene.shape.RectangleBuilder;
import javafx.scene.text.FontSmoothingType;
! import javafx.scene.text.TextBuilder;
/**
*
* @author Alexander Petrov
*/
! public enum Factories implements Factory{
TransparentPixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 24,55 ----
package test.scenegraph.lcd.transparency;
import javafx.scene.Node;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
! import javafx.scene.shape.Rectangle;
import javafx.scene.text.FontSmoothingType;
! import javafx.scene.text.Text;
/**
*
* @author Alexander Petrov
*/
! public enum Factories implements Factory {
TransparentPixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 64,85 ****
}),
TransparentBackground(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 57,72 ----
}),
TransparentBackground(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 87,108 ****
}),
TranslucentPixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 74,89 ----
}),
TranslucentPixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 110,131 ****
}),
Translucent01Pixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 91,106 ----
}),
Translucent01Pixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 133,154 ****
}),
Translucent09Pixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 108,123 ----
}),
Translucent09Pixel(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 156,177 ****
}),
TransparentRectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 125,140 ----
}),
TransparentRectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 179,200 ****
}),
TranslucentRectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 142,157 ----
}),
TranslucentRectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 202,223 ****
}),
Translucent01Rectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 159,174 ----
}),
Translucent01Rectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
*** 225,246 ****
}),
Translucent09Rectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
return value;
}
public boolean isLCDWork() {
return false;
--- 176,191 ----
}),
Translucent09Rectangle(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return false;
*** 248,270 ****
}),
TranslucentPixelBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build()
! );
return value;
}
public boolean isLCDWork() {
return true;
--- 193,208 ----
}),
TranslucentPixelBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return true;
*** 272,293 ****
}),
Translucent01PixelBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 210,225 ----
}),
Translucent01PixelBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return true;
*** 295,316 ****
}),
Translucent09PixelBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 227,242 ----
}),
Translucent09PixelBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return true;
*** 318,339 ****
}),
TransparentRectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 244,259 ----
}),
TransparentRectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return true;
*** 341,362 ****
}),
TranslucentRectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 261,276 ----
}),
TranslucentRectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return true;
*** 364,385 ****
}),
Translucent01RectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
--- 278,293 ----
}),
Translucent01RectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return true;
*** 387,408 ****
}),
Translucent09RectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build(),
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return false;
--- 295,310 ----
}),
Translucent09RectangleBeforeText(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(r, t);
return value;
}
public boolean isLCDWork() {
return false;
*** 410,627 ****
}),
TranslucentBackground(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build(),
! RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
}),
TranslucentPane(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
! return StackPaneBuilder.create()
! .opacity(0.5)
! .children(TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build())
! .build();
}
public boolean isLCDWork() {
return false;
}
}),
AddTranslucentPixel(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
}
}),
AddTranslucent01Pixel(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
}
}),
AddTranslucent09Pixel(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
}
}),
AddTransparentRectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
}
}),
AddTranslucentRectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
}
}),
AddTranslucent01Rectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
}
}),
AddTranslucent09Rectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
boolean value = true;
--- 312,488 ----
}),
TranslucentBackground(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! value.getChildren().addAll(t, r);
return value;
}
public boolean isLCDWork() {
return true;
}
}),
TranslucentPane(new EmptyActionFactory() {
public Node createNode(boolean lcd) {
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! StackPane temp = new StackPane(t);
! temp.setOpacity(0.5);
! return temp;
}
public boolean isLCDWork() {
return false;
}
}),
AddTranslucentPixel(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
}
}),
AddTranslucent01Pixel(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
}
}),
AddTranslucent09Pixel(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
}
}),
AddTransparentRectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
}
}),
AddTranslucentRectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
}
}),
AddTranslucent01Rectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
}
}),
AddTranslucent09Rectangle(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
boolean value = true;
*** 629,820 ****
return value;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
value = false;
}
}),
AddTranslucentPixelBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
}
}),
AddTranslucent01PixelBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
}
}),
AddTranslucent09PixelBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(1)
! .width(1)
! .build());
}
}),
AddTransparentRectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
}
}),
AddTranslucentRectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0.5)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
}
}),
AddTranslucent01RectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0.000001d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
}
}),
AddTranslucent09RectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
!
! value.getChildren().addAll(
! TextBuilder.create()
! .text("Test")
! .fontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY)
! .build());
return value;
}
boolean value = true;
--- 490,646 ----
return value;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
value = false;
}
}),
AddTranslucentPixelBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! pane.getChildren().add(0, r);
}
}),
AddTranslucent01PixelBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(0, r);
}
}),
AddTranslucent09PixelBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(1, 1);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(0, r);
}
}),
AddTransparentRectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0);
! r.setFill(Color.BLACK);
! pane.getChildren().add(0, r);
}
}),
AddTranslucentRectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.5);
! r.setFill(Color.BLACK);
! pane.getChildren().add(0, r);
}
}),
AddTranslucent01RectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
public boolean isLCDWork() {
return true;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.000001d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(0, r);
}
}),
AddTranslucent09RectangleBeforeText(new Factory() {
public Node createNode(boolean lcd) {
StackPane value = new StackPane();
! Text t = new Text("Test");
! t.setFontSmoothingType(lcd?FontSmoothingType.LCD:FontSmoothingType.GRAY);
! value.getChildren().addAll(t);
return value;
}
boolean value = true;
*** 822,837 ****
return value;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! pane.getChildren().add(0, RectangleBuilder.create()
! .opacity(0.9999999d)
! .fill(Color.BLACK)
! .height(100)
! .width(100)
! .build());
value = false;
}
});
--- 648,661 ----
return value;
}
public void action(Node node) {
StackPane pane = (StackPane) node;
! Rectangle r = new Rectangle(100, 100);
! r.setOpacity(0.9999999d);
! r.setFill(Color.BLACK);
! pane.getChildren().add(r);
value = false;
}
});
< prev index next >