Skip to content

Commit 77b8344

Browse files
committed
jme3-desktop: improve the javadoc
1 parent 6298283 commit 77b8344

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

jme3-desktop/src/main/java/com/jme3/app/SettingsDialog.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public static interface SelectionListener {
115115
* @param imageFile
116116
* the image file to use as the title of the dialog;
117117
* <code>null</code> will result in to image being displayed
118+
* @param loadSettings
119+
* if true, copy the settings, otherwise merge them
118120
* @throws NullPointerException
119121
* if the source is <code>null</code>
120122
*/
@@ -132,7 +134,8 @@ public SettingsDialog(AppSettings source, String imageFile, boolean loadSettings
132134
* @param imageFile
133135
* the image file to use as the title of the dialog;
134136
* <code>null</code> will result in to image being displayed
135-
* @param loadSettings
137+
* @param loadSettings
138+
* if true, copy the settings, otherwise merge them
136139
* @throws NullPointerException
137140
* if the source is <code>null</code>
138141
*/

jme3-desktop/src/main/java/com/jme3/app/state/VideoRecorderAppState.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public VideoRecorderAppState(File file, float quality) {
132132
* This constructor allows you to specify the output file of the video as well as the quality
133133
* @param file the video file
134134
* @param quality the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)
135+
* @param framerate the frame rate of the resulting video, the application will be locked to this framerate
135136
*/
136137
public VideoRecorderAppState(File file, float quality, int framerate) {
137138
this.file = file;

jme3-desktop/src/main/java/com/jme3/system/ErrorDialog.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ public class ErrorDialog extends JDialog {
2222

2323
/**
2424
* Create a new Dialog with a title and a message.
25-
* @param message
26-
* @param title
25+
*
26+
* @param message the message to display
27+
* @param title the title to display
2728
*/
2829
public ErrorDialog(String message, String title) {
2930
setTitle(title);
@@ -55,10 +56,11 @@ public ErrorDialog(String message){
5556
}
5657

5758
/**
58-
* Show a dialog with the proved message.
59-
* @param message
59+
* Show a dialog with the provided message.
60+
*
61+
* @param message the message to display
6062
*/
61-
public static void showDialog(String message){
63+
public static void showDialog(String message) {
6264
ErrorDialog dialog = new ErrorDialog(message);
6365
dialog.setVisible(true);
6466
}

jme3-desktop/src/main/java/com/jme3/util/Screenshots.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2012 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -67,8 +67,8 @@ public static void convertScreenShot2(IntBuffer bgraBuf, BufferedImage out){
6767
/**
6868
* Flips the image along the Y axis and converts BGRA to ABGR
6969
*
70-
* @param bgraBuf
71-
* @param out
70+
* @param bgraBuf (not null, modified)
71+
* @param out (not null)
7272
*/
7373
public static void convertScreenShot(ByteBuffer bgraBuf, BufferedImage out){
7474
WritableRaster wr = out.getRaster();

jme3-desktop/src/main/java/jme3tools/converters/ImageToAwt.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2012 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -200,11 +200,14 @@ private static void writePixel(ByteBuffer buf, int idx, int pixel, int bpp){
200200
}
201201
}
202202

203-
204203
/**
205-
* Convert an AWT image to jME image.
204+
* Convert an AWT image to jME image. XXX not implemented yet!
205+
*
206+
* @param image the input image (not null, unaffected)
207+
* @param format the data format
208+
* @param buf the output buffer (not null, modified)
206209
*/
207-
public static void convert(BufferedImage image, Format format, ByteBuffer buf){
210+
public static void convert(BufferedImage image, Format format, ByteBuffer buf) {
208211
DecodeParams p = params.get(format);
209212
if (p == null)
210213
throw new UnsupportedOperationException("Image format " + format + " is not supported");
@@ -297,8 +300,8 @@ public static void createData(Image image, boolean mipmaps){
297300
* It is assumed that both images have buffers with the appropriate
298301
* number of elements and that both have the same dimensions.
299302
*
300-
* @param input
301-
* @param output
303+
* @param input the input image (not null, unaffected)
304+
* @param output the output image (not null, modified)
302305
*/
303306
public static void convert(Image input, Image output){
304307
DecodeParams inParams = params.get(input.getFormat());

0 commit comments

Comments
 (0)