Skip to content

Commit e02c968

Browse files
committed
Old SAEM @j2sIgnore instances removed
1 parent d1774e2 commit e02c968

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+288
-488
lines changed

sources/net.sf.j2s.java.core/src/java/awt/Color.java

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -356,46 +356,9 @@ private static void testColorValueRange(int r, int g, int b, int a) {
356356
// }
357357
// }
358358

359-
/*
360-
* only J2S constructor
361-
*
362-
*/
363359
public Color() {
364-
/**
365-
* @j2sNative
366-
*
367-
* var a = arguments;
368-
* switch(a.length) {
369-
* case 0:
370-
* break;
371-
* case 1:
372-
* this.value = (a[0].value ? a[0].value : 0xff000000 | a[0]);
373-
* break;
374-
* case 2:
375-
* this.value = (a[1] ? a[0] : 0xff000000 | a[0]);
376-
* break;
377-
* case 3:
378-
* var n = a[0] + a[1] + a[2];
379-
* if (n > 0 && n < 3.001)
380-
* this.setFloat(a[0], a[1], a[2], 1);
381-
* else
382-
* this.setColor4(a[0], a[1], a[2], 255);
383-
* break;
384-
* case 4:
385-
* var n = a[0] + a[1] + a[2] + a[3];
386-
* if (n > 0 && n < 4.001)
387-
* this.setFloat(a[0], a[1], a[2], a[3]);
388-
* else
389-
* this.setColor4(a[0], a[1], a[2], a[3]);
390-
* break;
391-
* }
392-
*
393-
* return this;
394-
*/
395-
{
396-
397-
}
398360
}
361+
399362
/**
400363
* Creates an opaque sRGB color with the specified red, green,
401364
* and blue values in the range (0 - 255).
@@ -415,7 +378,6 @@ public Color() {
415378
* @see #getBlue
416379
* @see #getRGB
417380
*
418-
* @j2sIgnore
419381
*/
420382
public Color(int r, int g, int b) {
421383
setColor4(r, g, b, 255);
@@ -438,7 +400,6 @@ public Color(int r, int g, int b) {
438400
* @see #getAlpha
439401
* @see #getRGB
440402
*
441-
* @j2sIgnore
442403
*/
443404
public Color(int r, int g, int b, int a) {
444405
setColor4(r, g, b, a);
@@ -467,7 +428,6 @@ private void setColor4(int r, int g, int b, int a) {
467428
* @see #getBlue
468429
* @see #getRGB
469430
*
470-
* @j2sIgnore
471431
*/
472432
public Color(int rgb) {
473433
value = 0xff000000 | rgb;
@@ -490,7 +450,6 @@ public Color(int rgb) {
490450
* @see #getAlpha
491451
* @see #getRGB
492452
*
493-
* @j2sIgnore
494453
*/
495454
public Color(int rgba, boolean hasalpha) {
496455
if (hasalpha) {
@@ -518,7 +477,6 @@ public Color(int rgba, boolean hasalpha) {
518477
* @see #getBlue
519478
* @see #getRGB
520479
*
521-
* @j2sIgnore
522480
* @deprecated
523481
* use Color.getColorF4 instead
524482
*/
@@ -555,7 +513,6 @@ private void setFloat(float r, float g, float b, float f) {
555513
* @see #getAlpha
556514
* @see #getRGB
557515
*
558-
* @j2sIgnore
559516
* @deprecated
560517
* use getColorF4 instead
561518
*/

0 commit comments

Comments
 (0)