111 return Mode.HARD_LIGHT;
112 } else if (mode == BlendMode.SOFT_LIGHT) {
113 return Mode.SOFT_LIGHT;
114 } else if (mode == BlendMode.DIFFERENCE) {
115 return Mode.DIFFERENCE;
116 } else if (mode == BlendMode.EXCLUSION) {
117 return Mode.EXCLUSION;
118 } else if (mode == BlendMode.RED) {
119 return Mode.RED;
120 } else if (mode == BlendMode.GREEN) {
121 return Mode.GREEN;
122 } else if (mode == BlendMode.BLUE) {
123 return Mode.BLUE;
124 } else {
125 throw new java.lang.AssertionError("Unrecognized blend mode: {mode}");
126 }
127 }
128
129 /**
130 * Used by Group to convert the FX BlendMode enum value into a Decora value.
131 * @treatAsPrivate implementation detail
132 * @deprecated This is an internal API that is not intended for use and will be removed in the next version
133 */
134 @Deprecated
135 public static Mode impl_getToolkitMode(BlendMode mode) {
136 return toPGMode(mode);
137 }
138
139 /**
140 * Creates a new instance of Blend with default parameters.
141 */
142 public Blend() {}
143
144 /**
145 * Creates a new instance of Blend with the specified mode.
146 * @param mode the {@code BlendMode} used to blend the two inputs together
147 * @since JavaFX 2.1
148 */
149 public Blend(BlendMode mode) {
150 setMode(mode);
151 }
152
153 /**
154 * Creates a new instance of Blend with the specified mode and bottom
155 * and top inputs.
|
111 return Mode.HARD_LIGHT;
112 } else if (mode == BlendMode.SOFT_LIGHT) {
113 return Mode.SOFT_LIGHT;
114 } else if (mode == BlendMode.DIFFERENCE) {
115 return Mode.DIFFERENCE;
116 } else if (mode == BlendMode.EXCLUSION) {
117 return Mode.EXCLUSION;
118 } else if (mode == BlendMode.RED) {
119 return Mode.RED;
120 } else if (mode == BlendMode.GREEN) {
121 return Mode.GREEN;
122 } else if (mode == BlendMode.BLUE) {
123 return Mode.BLUE;
124 } else {
125 throw new java.lang.AssertionError("Unrecognized blend mode: {mode}");
126 }
127 }
128
129 /**
130 * Used by Group to convert the FX BlendMode enum value into a Decora value.
131 */
132 static Mode getToolkitMode(BlendMode mode) {
133 return toPGMode(mode);
134 }
135
136 /**
137 * Creates a new instance of Blend with default parameters.
138 */
139 public Blend() {}
140
141 /**
142 * Creates a new instance of Blend with the specified mode.
143 * @param mode the {@code BlendMode} used to blend the two inputs together
144 * @since JavaFX 2.1
145 */
146 public Blend(BlendMode mode) {
147 setMode(mode);
148 }
149
150 /**
151 * Creates a new instance of Blend with the specified mode and bottom
152 * and top inputs.
|