mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 03:06:29 +00:00
Checkstyle fix
This commit is contained in:
@@ -419,49 +419,46 @@ public class Filtering {
|
|||||||
gg.fill(RECTANGLE_512_1);
|
gg.fill(RECTANGLE_512_1);
|
||||||
int[] gradientPixels = getRGB(gradient);
|
int[] gradientPixels = getRGB(gradient);
|
||||||
|
|
||||||
BufferedImage shadowInner = null;
|
BufferedImage shadowInner;
|
||||||
BufferedImage hilightInner = null;
|
BufferedImage hilightInner;
|
||||||
{
|
|
||||||
BufferedImage hilightIm = dropShadow(src, 0, 0, angle, distance, Color.red, true, iterations, strength, true, true);
|
|
||||||
BufferedImage shadowIm = dropShadow(src, 0, 0, angle + 180, distance, Color.blue, true, iterations, strength, true, true);
|
|
||||||
BufferedImage h2 = new BufferedImage(width, height, src.getType());
|
|
||||||
BufferedImage s2 = new BufferedImage(width, height, src.getType());
|
|
||||||
Graphics2D hc = h2.createGraphics();
|
|
||||||
Graphics2D sc = s2.createGraphics();
|
|
||||||
hc.drawImage(hilightIm, 0, 0, null);
|
|
||||||
hc.setComposite(AlphaComposite.DstOut);
|
|
||||||
hc.drawImage(shadowIm, 0, 0, null);
|
|
||||||
|
|
||||||
sc.drawImage(shadowIm, 0, 0, null);
|
BufferedImage hilightImInner = dropShadow(src, 0, 0, angle, distance, Color.red, true, iterations, strength, true, true);
|
||||||
sc.setComposite(AlphaComposite.DstOut);
|
BufferedImage shadowImInner = dropShadow(src, 0, 0, angle + 180, distance, Color.blue, true, iterations, strength, true, true);
|
||||||
sc.drawImage(hilightIm, 0, 0, null);
|
BufferedImage h2Inner = new BufferedImage(width, height, src.getType());
|
||||||
shadowInner = s2;
|
BufferedImage s2Inner = new BufferedImage(width, height, src.getType());
|
||||||
hilightInner = h2;
|
Graphics2D hcInner = h2Inner.createGraphics();
|
||||||
}
|
Graphics2D scInner = s2Inner.createGraphics();
|
||||||
|
hcInner.drawImage(hilightImInner, 0, 0, null);
|
||||||
|
hcInner.setComposite(AlphaComposite.DstOut);
|
||||||
|
hcInner.drawImage(shadowImInner, 0, 0, null);
|
||||||
|
|
||||||
BufferedImage shadowOuter = null;
|
scInner.drawImage(shadowImInner, 0, 0, null);
|
||||||
BufferedImage hilightOuter = null;
|
scInner.setComposite(AlphaComposite.DstOut);
|
||||||
|
scInner.drawImage(hilightImInner, 0, 0, null);
|
||||||
|
shadowInner = s2Inner;
|
||||||
|
hilightInner = h2Inner;
|
||||||
|
|
||||||
{
|
BufferedImage shadowOuter;
|
||||||
BufferedImage hilightIm = dropShadow(src, 0, 0, angle + 180, distance, Color.red, false, iterations, strength, true, true);
|
BufferedImage hilightOuter;
|
||||||
BufferedImage shadowIm = dropShadow(src, 0, 0, angle, distance, Color.blue, false, iterations, strength, true, true);
|
|
||||||
BufferedImage h2 = new BufferedImage(width, height, src.getType());
|
|
||||||
BufferedImage s2 = new BufferedImage(width, height, src.getType());
|
|
||||||
Graphics2D hc = h2.createGraphics();
|
|
||||||
Graphics2D sc = s2.createGraphics();
|
|
||||||
hc.drawImage(hilightIm, 0, 0, null);
|
|
||||||
hc.setComposite(AlphaComposite.DstOut);
|
|
||||||
hc.drawImage(shadowIm, 0, 0, null);
|
|
||||||
|
|
||||||
sc.drawImage(shadowIm, 0, 0, null);
|
BufferedImage hilightImOuter = dropShadow(src, 0, 0, angle + 180, distance, Color.red, false, iterations, strength, true, true);
|
||||||
sc.setComposite(AlphaComposite.DstOut);
|
BufferedImage shadowImOuter = dropShadow(src, 0, 0, angle, distance, Color.blue, false, iterations, strength, true, true);
|
||||||
sc.drawImage(hilightIm, 0, 0, null);
|
BufferedImage h2Outer = new BufferedImage(width, height, src.getType());
|
||||||
shadowOuter = s2;
|
BufferedImage s2Outer = new BufferedImage(width, height, src.getType());
|
||||||
hilightOuter = h2;
|
Graphics2D hcOuter = h2Outer.createGraphics();
|
||||||
}
|
Graphics2D scOuter = s2Outer.createGraphics();
|
||||||
|
hcOuter.drawImage(hilightImOuter, 0, 0, null);
|
||||||
|
hcOuter.setComposite(AlphaComposite.DstOut);
|
||||||
|
hcOuter.drawImage(shadowImOuter, 0, 0, null);
|
||||||
|
|
||||||
BufferedImage hilightIm = null;
|
scOuter.drawImage(shadowImOuter, 0, 0, null);
|
||||||
BufferedImage shadowIm = null;
|
scOuter.setComposite(AlphaComposite.DstOut);
|
||||||
|
scOuter.drawImage(hilightImOuter, 0, 0, null);
|
||||||
|
shadowOuter = s2Outer;
|
||||||
|
hilightOuter = h2Outer;
|
||||||
|
|
||||||
|
BufferedImage hilightIm;
|
||||||
|
BufferedImage shadowIm;
|
||||||
hilightIm = hilightInner;
|
hilightIm = hilightInner;
|
||||||
shadowIm = shadowInner;
|
shadowIm = shadowInner;
|
||||||
Graphics2D hc = hilightIm.createGraphics();
|
Graphics2D hc = hilightIm.createGraphics();
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ public class FiltersTreeTable extends JTreeTable {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (root.getChildCount() > fFilterIndex) {
|
if (root.getChildCount() > fFilterIndex) {
|
||||||
getTree().setSelectionPath(new TreePath(new Object[] {root, root.getChildAt(fFilterIndex)}));
|
getTree().setSelectionPath(new TreePath(new Object[]{root, root.getChildAt(fFilterIndex)}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
@@ -444,7 +444,7 @@ public class FiltersTreeTable extends JTreeTable {
|
|||||||
if (value instanceof FilterValue) {
|
if (value instanceof FilterValue) {
|
||||||
FilterValue filterValue = (FilterValue) value;
|
FilterValue filterValue = (FilterValue) value;
|
||||||
String units = "";
|
String units = "";
|
||||||
switch(filterValue.filterField.field.getName()) {
|
switch (filterValue.filterField.field.getName()) {
|
||||||
case "angle":
|
case "angle":
|
||||||
units = " \u00B0"; //degrees
|
units = " \u00B0"; //degrees
|
||||||
break;
|
break;
|
||||||
@@ -616,8 +616,7 @@ public class FiltersTreeTable extends JTreeTable {
|
|||||||
if (value.getClass() == Double.class
|
if (value.getClass() == Double.class
|
||||||
|| value.getClass() == Float.class
|
|| value.getClass() == Float.class
|
||||||
|| value.getClass() == float.class
|
|| value.getClass() == float.class
|
||||||
|| value.getClass() == double.class
|
|| value.getClass() == double.class) {
|
||||||
) {
|
|
||||||
return EcmaScript.toString(value);
|
return EcmaScript.toString(value);
|
||||||
}
|
}
|
||||||
return "" + value;
|
return "" + value;
|
||||||
|
|||||||
@@ -361,7 +361,6 @@ public class GradientEditor extends JPanel implements PropertyEditor {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
draggedOut = colors.size() > 2 && e.getY() > getHeight();
|
draggedOut = colors.size() > 2 && e.getY() > getHeight();
|
||||||
|
|
||||||
synchronized (GradientEditorPanel.this) {
|
synchronized (GradientEditorPanel.this) {
|
||||||
@@ -418,13 +417,12 @@ public class GradientEditor extends JPanel implements PropertyEditor {
|
|||||||
if (filter instanceof GRADIENTGLOWFILTER && index == 0 && colors.get(0).getAlpha() == 0) {
|
if (filter instanceof GRADIENTGLOWFILTER && index == 0 && colors.get(0).getAlpha() == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (filter instanceof GRADIENTBEVELFILTER && ratios.get(index) == 128f/255f && colors.get(index).getAlpha() == 0) {
|
if (filter instanceof GRADIENTBEVELFILTER && ratios.get(index) == 128f / 255f && colors.get(index).getAlpha() == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private List<Rectangle> getColorRects() {
|
private List<Rectangle> getColorRects() {
|
||||||
List<Rectangle> rects = new ArrayList<>();
|
List<Rectangle> rects = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user