Ellen Spertus
08/04/2024, 8:51 PMwidth
(instead of w
) and height
(instead of h
), but those are instance variables in the superclass (JPanel
). I'm a professor creating a problem set, so there aren't team guidelines I can follow. I just want to set a good example.
1️⃣
/**
* Draws a rectangle with the specified [x] and [y] coordinates,
* [outlineColor], and [fillColor]. The parameters [w] and [h]
* specify the width and height.
*/
2️⃣
/**
* Draws a rectangle with width [w] and height [h] with the specified
* [x] and [y] coordinates,[outlineColor], and [fillColor].
*/
ephemient
08/04/2024, 8:54 PM/** Draws a rectangle with [width][w] and [height][h]
Ellen Spertus
08/05/2024, 2:34 AMwidth
and w
. The link just goes to the function and does not reference w
.
<p class="paragraph">Draws a rectangle with <a href="draw-rectangle.html">width</a> and <a href="draw-rectangle.html">height</a> with the specified <a href="draw-rectangle.html">x</a> and <a href="draw-rectangle.html">y</a> coordinates, <a href="draw-rectangle.html">outlineColor</a>, and <a href="draw-rectangle.html">fillColor</a>.</p>
ephemient
08/06/2024, 12:22 AM[getX]
perhaps?Ellen Spertus
08/06/2024, 12:36 AM[getX]
when I was asking about width
and w
.
I was able to refactor the code and rename the parameters width
and height
, so my question is largely moot (although it would be great if KDoc were better specified).
Thanks for your help.ephemient
08/06/2024, 12:39 AM[width][getW]
[height][getH]
. assuming it's coming from Java, since I wasn't sure why else [width][w]
wouldn't have worked for you… it does for me, at least in the IDE rendered KDoc (I don't have a modern Dokka test project set up)CLOVIS
08/06/2024, 7:26 AMCLOVIS
08/06/2024, 7:26 AMEllen Spertus
08/06/2024, 6:42 PMCLOVIS
08/06/2024, 6:43 PMEllen Spertus
08/06/2024, 6:43 PMCLOVIS
08/06/2024, 6:43 PMCLOVIS
08/06/2024, 6:43 PMCLOVIS
08/06/2024, 6:44 PM<p>
Ellen Spertus
08/06/2024, 6:44 PMEllen Spertus
08/06/2024, 6:44 PMCLOVIS
08/06/2024, 6:44 PM(@link foo}
CLOVIS
08/06/2024, 6:44 PMEllen Spertus
08/06/2024, 6:48 PMCLOVIS
08/06/2024, 6:48 PMEllen Spertus
08/06/2024, 6:51 PMephemient
08/06/2024, 7:11 PMEllen Spertus
08/06/2024, 8:01 PM