Skip to content

Commit c65e27a

Browse files
authored
resolve javadoc warnings in the jme3-effects library (#1519)
* jme3-effects: resolve javadoc warnings * jme3-effects/build.gradle: enable doclint
1 parent ccecc94 commit c65e27a

18 files changed

+264
-117
lines changed

jme3-effects/build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,3 @@ if (!hasProperty('mainClass')) {
55
dependencies {
66
compile project(':jme3-core')
77
}
8-
9-
javadoc {
10-
// Disable doclint for JDK8+.
11-
if (JavaVersion.current().isJava8Compatible()){
12-
options.addStringOption('Xdoclint:none', '-quiet')
13-
}
14-
}

jme3-effects/src/main/java/com/jme3/post/filters/BloomFilter.java

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2019 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -109,7 +109,8 @@ public BloomFilter() {
109109

110110
/**
111111
* Creates the bloom filter with the specific glow mode
112-
* @param glowMode
112+
*
113+
* @param glowMode the desired mode (default=Scene)
113114
*/
114115
public BloomFilter(GlowMode glowMode) {
115116
this();
@@ -234,7 +235,8 @@ public float getBloomIntensity() {
234235

235236
/**
236237
* intensity of the bloom effect default is 2.0
237-
* @param bloomIntensity
238+
*
239+
* @param bloomIntensity the desired intensity (default=2)
238240
*/
239241
public void setBloomIntensity(float bloomIntensity) {
240242
this.bloomIntensity = bloomIntensity;
@@ -250,7 +252,8 @@ public float getBlurScale() {
250252

251253
/**
252254
* sets The spread of the bloom default is 1.5f
253-
* @param blurScale
255+
*
256+
* @param blurScale the desired scale (default=1.5)
254257
*/
255258
public void setBlurScale(float blurScale) {
256259
this.blurScale = blurScale;
@@ -267,7 +270,8 @@ public float getExposureCutOff() {
267270

268271
/**
269272
* Define the color threshold on which the bloom will be applied (0.0 to 1.0)
270-
* @param exposureCutOff
273+
*
274+
* @param exposureCutOff the desired threshold (≥0, ≤1, default=0)
271275
*/
272276
public void setExposureCutOff(float exposureCutOff) {
273277
this.exposureCutOff = exposureCutOff;
@@ -284,8 +288,9 @@ public float getExposurePower() {
284288

285289
/**
286290
* defines how many time the bloom extracted color will be multiplied by itself. default id 5.0<br>
287-
* a high value will reduce rough edges in the bloom and somhow the range of the bloom area *
288-
* @param exposurePower
291+
* a high value will reduce rough edges in the bloom and somhow the range of the bloom area
292+
*
293+
* @param exposurePower the desired exponent (default=5)
289294
*/
290295
public void setExposurePower(float exposurePower) {
291296
this.exposurePower = exposurePower;
@@ -303,7 +308,8 @@ public float getDownSamplingFactor() {
303308
/**
304309
* Sets the downSampling factor : the size of the computed texture will be divided by this factor. default is 1 for no downsampling
305310
* A 2 value is a good way of widening the blur
306-
* @param downSamplingFactor
311+
*
312+
* @param downSamplingFactor the desired factor (default=1)
307313
*/
308314
public void setDownSamplingFactor(float downSamplingFactor) {
309315
this.downSamplingFactor = downSamplingFactor;

jme3-effects/src/main/java/com/jme3/post/filters/CartoonEdgeFilter.java

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2019 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -124,7 +124,8 @@ public float getDepthSensitivity() {
124124
/**
125125
* sets the depth sensitivity<br>
126126
* defines how much depth will influence edges, default is 10
127-
* @param depthSensitivity
127+
*
128+
* @param depthSensitivity the desired sensitivity (default=10)
128129
*/
129130
public void setDepthSensitivity(float depthSensitivity) {
130131
this.depthSensitivity = depthSensitivity;
@@ -145,7 +146,8 @@ public float getDepthThreshold() {
145146
/**
146147
* sets the depth threshold<br>
147148
* Defines at what threshold of difference of depth an edge is outlined default is 0.1f
148-
* @param depthThreshold
149+
*
150+
* @param depthThreshold the desired threshold (default=0.1)
149151
*/
150152
public void setDepthThreshold(float depthThreshold) {
151153
this.depthThreshold = depthThreshold;
@@ -166,7 +168,8 @@ public float getEdgeIntensity() {
166168
/**
167169
* sets the edge intensity<br>
168170
* Defineshow visible will be the outlined edges
169-
* @param edgeIntensity
171+
*
172+
* @param edgeIntensity the desired intensity (default=1)
170173
*/
171174
public void setEdgeIntensity(float edgeIntensity) {
172175
this.edgeIntensity = edgeIntensity;
@@ -185,7 +188,8 @@ public float getEdgeWidth() {
185188

186189
/**
187190
* sets the witdh of the edge in pixels default is 1
188-
* @param edgeWidth
191+
*
192+
* @param edgeWidth the desired width (in pixels, default=1)
189193
*/
190194
public void setEdgeWidth(float edgeWidth) {
191195
this.edgeWidth = edgeWidth;
@@ -206,7 +210,8 @@ public float getNormalSensitivity() {
206210

207211
/**
208212
* sets the normals sensitivity default is 1
209-
* @param normalSensitivity
213+
*
214+
* @param normalSensitivity the desired sensitivity (default=1)
210215
*/
211216
public void setNormalSensitivity(float normalSensitivity) {
212217
this.normalSensitivity = normalSensitivity;
@@ -227,7 +232,8 @@ public float getNormalThreshold() {
227232

228233
/**
229234
* sets the normal threshold default is 0.5
230-
* @param normalThreshold
235+
*
236+
* @param normalThreshold the desired threshold (default=0.5)
231237
*/
232238
public void setNormalThreshold(float normalThreshold) {
233239
this.normalThreshold = normalThreshold;
@@ -246,7 +252,8 @@ public ColorRGBA getEdgeColor() {
246252

247253
/**
248254
* Sets the edge color, default is black
249-
* @param edgeColor
255+
*
256+
* @param edgeColor the desired color (alias created, default=(0,0,0,1))
250257
*/
251258
public void setEdgeColor(ColorRGBA edgeColor) {
252259
this.edgeColor = edgeColor;

jme3-effects/src/main/java/com/jme3/post/filters/ColorOverlayFilter.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2018 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -61,7 +61,8 @@ public ColorOverlayFilter() {
6161

6262
/**
6363
* creates a colorOverlayFilter with the given color
64-
* @param color
64+
*
65+
* @param color the desired color (default=(1,1,1,1), alias created)
6566
*/
6667
public ColorOverlayFilter(ColorRGBA color) {
6768
this();
@@ -82,8 +83,9 @@ public ColorRGBA getColor() {
8283
}
8384

8485
/**
85-
* sets the color
86-
* @param color
86+
* sets the color
87+
*
88+
* @param color the desired color (default=(1,1,1,1), alias created)
8789
*/
8890
public void setColor(final ColorRGBA color) {
8991
this.color = color;

jme3-effects/src/main/java/com/jme3/post/filters/ComposeFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2019 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -68,7 +68,7 @@ public ComposeFilter() {
6868
/**
6969
* creates a ComposeFilter with the given texture
7070
*
71-
* @param compositeTexture
71+
* @param compositeTexture the texture to use (alias created)
7272
*/
7373
public ComposeFilter(Texture2D compositeTexture) {
7474
this();
@@ -93,7 +93,7 @@ public Texture2D getCompositeTexture() {
9393
/**
9494
* sets the compositeTexture
9595
*
96-
* @param compositeTexture
96+
* @param compositeTexture the desired texture (alias created)
9797
*/
9898
public void setCompositeTexture(Texture2D compositeTexture) {
9999
this.compositeTexture = compositeTexture;

jme3-effects/src/main/java/com/jme3/post/filters/CrossHatchFilter.java

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ protected Material getMaterial() {
114114

115115
/**
116116
* Sets color used to draw lines
117-
* @param lineColor
117+
*
118+
* @param lineColor the desired color (alias created, default=(0,0,0,1))
118119
*/
119120
public void setLineColor(ColorRGBA lineColor) {
120121
this.lineColor = lineColor;
@@ -125,7 +126,8 @@ public void setLineColor(ColorRGBA lineColor) {
125126

126127
/**
127128
* Sets color used as background
128-
* @param paperColor
129+
*
130+
* @param paperColor the desired color (alias created, default=(1,1,1,1))
129131
*/
130132
public void setPaperColor(ColorRGBA paperColor) {
131133
this.paperColor = paperColor;
@@ -136,7 +138,8 @@ public void setPaperColor(ColorRGBA paperColor) {
136138

137139
/**
138140
* Sets color influence of original image on lines drawn
139-
* @param colorInfluenceLine
141+
*
142+
* @param colorInfluenceLine the desired factor (default=0.8)
140143
*/
141144
public void setColorInfluenceLine(float colorInfluenceLine) {
142145
this.colorInfluenceLine = colorInfluenceLine;
@@ -147,7 +150,8 @@ public void setColorInfluenceLine(float colorInfluenceLine) {
147150

148151
/**
149152
* Sets color influence of original image on non-line areas
150-
* @param colorInfluencePaper
153+
*
154+
* @param colorInfluencePaper the desired factor (default=0.1)
151155
*/
152156
public void setColorInfluencePaper(float colorInfluencePaper) {
153157
this.colorInfluencePaper = colorInfluencePaper;
@@ -159,7 +163,8 @@ public void setColorInfluencePaper(float colorInfluencePaper) {
159163
/**
160164
* Sets line/paper color ratio for areas with values less than luminance5,
161165
* really dark areas get no lines but a filled blob instead
162-
* @param fillValue
166+
*
167+
* @param fillValue the desired ratio (default=0.9)
163168
*/
164169
public void setFillValue(float fillValue) {
165170
this.fillValue = fillValue;
@@ -195,7 +200,8 @@ public void setLuminanceLevels(float luminance1, float luminance2, float luminan
195200

196201
/**
197202
* Sets the thickness of lines drawn
198-
* @param lineThickness
203+
*
204+
* @param lineThickness the desired thickness (in pixels, default=1)
199205
*/
200206
public void setLineThickness(float lineThickness) {
201207
this.lineThickness = lineThickness;
@@ -208,7 +214,8 @@ public void setLineThickness(float lineThickness) {
208214
* Sets minimum distance between lines drawn
209215
* Primary lines are drawn at 2*lineDistance
210216
* Secondary lines are drawn at lineDistance
211-
* @param lineDistance
217+
*
218+
* @param lineDistance the desired distance (in pixels, default=4)
212219
*/
213220
public void setLineDistance(float lineDistance) {
214221
this.lineDistance = lineDistance;
@@ -235,69 +242,89 @@ public ColorRGBA getPaperColor() {
235242

236243
/**
237244
* Returns current influence of image colors on lines
245+
*
246+
* @return the influence factor
238247
*/
239248
public float getColorInfluenceLine() {
240249
return colorInfluenceLine;
241250
}
242251

243252
/**
244253
* Returns current influence of image colors on paper background
254+
*
255+
* @return the influence factor
245256
*/
246257
public float getColorInfluencePaper() {
247258
return colorInfluencePaper;
248259
}
249260

250261
/**
251262
* Returns line/paper color ratio for blobs
263+
*
264+
* @return the ratio
252265
*/
253266
public float getFillValue() {
254267
return fillValue;
255268
}
256269

257270
/**
258271
* Returns the thickness of the lines drawn
272+
*
273+
* @return the thickness (in pixels)
259274
*/
260275
public float getLineThickness() {
261276
return lineThickness;
262277
}
263278

264279
/**
265280
* Returns minimum distance between lines
281+
*
282+
* @return the distance (in pixels)
266283
*/
267284
public float getLineDistance() {
268285
return lineDistance;
269286
}
270287

271288
/**
272289
* Returns threshold for lines 1
290+
*
291+
* @return the first luminance threshold
273292
*/
274293
public float getLuminance1() {
275294
return luminance1;
276295
}
277296

278297
/**
279298
* Returns threshold for lines 2
299+
*
300+
* @return the 2nd luminance threshold
280301
*/
281302
public float getLuminance2() {
282303
return luminance2;
283304
}
284305

285306
/**
286307
* Returns threshold for lines 3
308+
*
309+
* @return the 3rd luminance threshold
287310
*/
288311
public float getLuminance3() {
289312
return luminance3;
290313
}
291314

292315
/**
293316
* Returns threshold for lines 4
317+
*
318+
* @return the 4th luminance threshold
294319
*/
295320
public float getLuminance4() {
296321
return luminance4;
297322
}
298323

299324
/**
300325
* Returns threshold for blobs
326+
*
327+
* @return the 5th luminance threshold
301328
*/
302329
public float getLuminance5() {
303330
return luminance5;

0 commit comments

Comments
 (0)