Skip to content

Commit 500c799

Browse files
committed
Sort members
1 parent 645e631 commit 500c799

File tree

5 files changed

+45
-45
lines changed

5 files changed

+45
-45
lines changed

src/main/java/org/apache/commons/imaging/ImageDump.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,6 @@ public class ImageDump {
3939
public ImageDump() {
4040
}
4141

42-
private String toName(final ColorSpace cs) {
43-
// System.out.println(prefix + ": type: "
44-
// + cs.getType() );
45-
switch (cs.getType()) {
46-
case ColorSpace.TYPE_CMYK:
47-
return "TYPE_CMYK";
48-
case ColorSpace.TYPE_RGB:
49-
return "TYPE_RGB";
50-
case ColorSpace.CS_sRGB:
51-
return "CS_sRGB";
52-
case ColorSpace.CS_GRAY:
53-
return "CS_GRAY";
54-
case ColorSpace.CS_CIEXYZ:
55-
return "CS_CIEXYZ";
56-
case ColorSpace.CS_LINEAR_RGB:
57-
return "CS_LINEAR_RGB";
58-
case ColorSpace.CS_PYCC:
59-
return "CS_PYCC";
60-
default:
61-
return "unknown";
62-
}
63-
}
64-
6542
/**
6643
* Dumps image information.
6744
*
@@ -128,4 +105,27 @@ public void dumpColorSpace(final String prefix, final ColorSpace cs) throws IOEx
128105
info.dump(prefix);
129106
}
130107

108+
private String toName(final ColorSpace cs) {
109+
// System.out.println(prefix + ": type: "
110+
// + cs.getType() );
111+
switch (cs.getType()) {
112+
case ColorSpace.TYPE_CMYK:
113+
return "TYPE_CMYK";
114+
case ColorSpace.TYPE_RGB:
115+
return "TYPE_RGB";
116+
case ColorSpace.CS_sRGB:
117+
return "CS_sRGB";
118+
case ColorSpace.CS_GRAY:
119+
return "CS_GRAY";
120+
case ColorSpace.CS_CIEXYZ:
121+
return "CS_CIEXYZ";
122+
case ColorSpace.CS_LINEAR_RGB:
123+
return "CS_LINEAR_RGB";
124+
case ColorSpace.CS_PYCC:
125+
return "CS_PYCC";
126+
default:
127+
return "unknown";
128+
}
129+
}
130+
131131
}

src/main/java/org/apache/commons/imaging/ImagingParameters.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030
*/
3131
public class ImagingParameters<E extends ImagingParameters<E>> {
3232

33-
/**
34-
* Constructs a new instance.
35-
*/
36-
public ImagingParameters() {
37-
}
38-
3933
/**
4034
* Whether to throw an exception when any issue occurs during reading or writing a file format. Default is {@code false}.
4135
*/
@@ -59,6 +53,12 @@ public ImagingParameters() {
5953
*/
6054
private PixelDensity pixelDensity;
6155

56+
/**
57+
* Constructs a new instance.
58+
*/
59+
public ImagingParameters() {
60+
}
61+
6262
/**
6363
* Returns this instance typed as the subclass type {@code E}.
6464
* <p>

src/main/java/org/apache/commons/imaging/formats/gif/GifImagingParameters.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
*/
2727
public class GifImagingParameters extends XmpImagingParameters<GifImagingParameters> {
2828

29-
/**
30-
* Constructs a new instance.
31-
*/
32-
public GifImagingParameters() {
33-
}
34-
3529
/**
3630
* Gets whether to stop reading before image data from the parameters.
3731
*
@@ -44,6 +38,12 @@ public static boolean getStopReadingBeforeImageData(final GifImagingParameters p
4438

4539
private boolean stopReadingBeforeImageData;
4640

41+
/**
42+
* Constructs a new instance.
43+
*/
44+
public GifImagingParameters() {
45+
}
46+
4747
/**
4848
* Gets whether to stop reading before image data.
4949
*

src/main/java/org/apache/commons/imaging/formats/pcx/PcxImagingParameters.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
*/
2525
public class PcxImagingParameters extends ImagingParameters<PcxImagingParameters> {
2626

27+
private int planes = -1;
28+
29+
private int bitDepth = -1;
30+
private int compression = PcxConstants.PCX_COMPRESSION_UNCOMPRESSED;
2731
/**
2832
* Constructs a new instance.
2933
*/
3034
public PcxImagingParameters() {
3135
}
3236

33-
private int planes = -1;
34-
private int bitDepth = -1;
35-
private int compression = PcxConstants.PCX_COMPRESSION_UNCOMPRESSED;
36-
3737
/**
3838
* Gets the bit depth.
3939
*

src/main/java/org/apache/commons/imaging/palette/LongestAxisMedianCut.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@
2626
* Median cut implementation that cuts along the longest axis.
2727
*/
2828
public class LongestAxisMedianCut implements MedianCut {
29-
/**
30-
* Constructs a new instance.
31-
*/
32-
public LongestAxisMedianCut() {
33-
}
34-
3529
private static final Comparator<ColorGroup> COMPARATOR = (cg1, cg2) -> {
3630
if (cg1.maxDiff == cg2.maxDiff) {
3731
return cg2.diffTotal - cg1.diffTotal;
3832
}
3933
return cg2.maxDiff - cg1.maxDiff;
4034
};
4135

36+
/**
37+
* Constructs a new instance.
38+
*/
39+
public LongestAxisMedianCut() {
40+
}
41+
4242
private void doCut(final ColorGroup colorGroup, final ColorComponent mode, final List<ColorGroup> colorGroups, final boolean ignoreAlpha)
4343
throws ImagingException {
4444

0 commit comments

Comments
 (0)