git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 4.0.0: java.awt dependencies move
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
utils
/
ui
/
ImageTextAwt.java
diff --git
a/src/be/nikiroo/utils/ImageText.java
b/src/be/nikiroo/utils/ui/ImageTextAwt.java
similarity index 95%
rename from
src/be/nikiroo/utils/ImageText.java
rename to
src/be/nikiroo/utils/ui/ImageTextAwt.java
index 53d8def784848ca7f186de33e94ffc7508b1bb73..ee4f58c934502f234852d03acb735f6cef626965 100644
(file)
--- a/
src/be/nikiroo/utils/ImageText.java
+++ b/
src/be/nikiroo/utils/ui/ImageTextAwt.java
@@
-1,4
+1,4
@@
-package be.nikiroo.utils;
+package be.nikiroo.utils
.ui
;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Color;
import java.awt.Dimension;
@@
-13,7
+13,7
@@
import java.awt.image.ImageObserver;
*
* @author niki
*/
*
* @author niki
*/
-public class ImageText {
+public class ImageText
Awt
{
private Image image;
private Dimension size;
private String text;
private Image image;
private Dimension size;
private String text;
@@
-22,7
+22,7
@@
public class ImageText {
private boolean invert;
/**
private boolean invert;
/**
- * Th
rendering modes supported by this {@link ImageTex
t} to convert
+ * Th
e rendering modes supported by this {@link ImageTextAw
t} to convert
* {@link Image}s into text.
*
* @author niki
* {@link Image}s into text.
*
* @author niki
@@
-60,7
+60,7
@@
public class ImageText {
}
/**
}
/**
- * Create a new {@link ImageText} with the given parameters. Defaults to
+ * Create a new {@link ImageText
Awt
} with the given parameters. Defaults to
* {@link Mode#DOUBLE_DITHERING} and no colour inversion.
*
* @param image
* {@link Mode#DOUBLE_DITHERING} and no colour inversion.
*
* @param image
@@
-68,12
+68,12
@@
public class ImageText {
* @param size
* the final text size to target
*/
* @param size
* the final text size to target
*/
- public ImageText(Image image, Dimension size) {
+ public ImageText
Awt
(Image image, Dimension size) {
this(image, size, Mode.DOUBLE_DITHERING, false);
}
/**
this(image, size, Mode.DOUBLE_DITHERING, false);
}
/**
- * Create a new {@link ImageText} with the given parameters.
+ * Create a new {@link ImageText
Awt
} with the given parameters.
*
* @param image
* the source {@link Image}
*
* @param image
* the source {@link Image}
@@
-84,7
+84,7
@@
public class ImageText {
* @param invert
* TRUE to invert colours rendering
*/
* @param invert
* TRUE to invert colours rendering
*/
- public ImageText(Image image, Dimension size, Mode mode, boolean invert) {
+ public ImageText
Awt
(Image image, Dimension size, Mode mode, boolean invert) {
setImage(image);
setSize(size);
setMode(mode);
setImage(image);
setSize(size);
setMode(mode);
@@
-104,7
+104,7
@@
public class ImageText {
}
/**
}
/**
- * Change the target size of this {@link ImageText}.
+ * Change the target size of this {@link ImageText
Awt
}.
*
* @param size
* the new size
*
* @param size
* the new size
@@
-196,7
+196,7
@@
public class ImageText {
@Override
public boolean imageUpdate(Image img, int infoflags, int x,
int y, int width, int height) {
@Override
public boolean imageUpdate(Image img, int infoflags, int x,
int y, int width, int height) {
- ImageText.this.ready = true;
+ ImageText
Awt
.this.ready = true;
return true;
}
})) {
return true;
}
})) {