Package | Description |
---|---|
jhelp.util.gui |
GUI tools and utilities.
|
jhelp.util.resources | |
jhelp.util.samples.common.gui | |
jhelp.util.samples.font.gui |
Modifier and Type | Field and Description |
---|---|
private JHelpImage |
JHelpSprite.back
Back image before show the sprite
|
private JHelpImage |
JHelpSprite.image
Image draw on the sprite
|
JHelpImage |
JHelpAnimatedImage.AnimationFrame.image
Image to draw
|
private JHelpImage |
JHelpAnimatedImage.imageToRefresh
Image where draw the animation
|
private JHelpImage |
JHelpSprite.parent
Parent that contains the sprite
|
Modifier and Type | Field and Description |
---|---|
private Cache<JHelpImage> |
JHelpRichText.CACHE_IMAGES
Images cache
|
Modifier and Type | Method and Description |
---|---|
static JHelpImage |
JHelpImage.createBumpedImage(JHelpImage source,
JHelpImage bump)
Create a bump image with 0.75 contrast, 12 dark, 1 shift X and 1 shift Y
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
static JHelpImage |
JHelpImage.createBumpedImage(JHelpImage source,
JHelpImage bump,
double contrast,
int dark,
int shiftX,
int shiftY)
Create a bump image
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
static JHelpImage |
JHelpImage.createBumpedImage2(JHelpImage source,
JHelpImage bump)
Create a bump image with 0.75 contrast, 12 dark, -1 shift X and -1 shift Y
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
JHelpImage |
JHelpImage.createCopy()
Create an image copy
Note : if this image is not in draw mode, al visible sprites will be consider like a part of this image |
protected JHelpImage |
JHelpRichText.CacheImageElement.createElement()
Create the image
Parent documentation: Create the element |
static JHelpImage |
JHelpImage.createImage(java.awt.image.BufferedImage bufferedImage)
Create an image from a buffered image
|
JHelpImage |
JHelpRichText.createImage(java.lang.String text,
JHelpFont font,
int colorText)
Create an image for draw the text with symbols replaced by corresponding image
|
private JHelpImage |
JHelpRichText.createImage(java.lang.String text,
JHelpFont font,
int colorText,
JHelpPaint paintText,
JHelpImage textureText)
Compute image that draw the text with symbols replaced by corresponding images
|
JHelpImage |
JHelpRichText.createImage(java.lang.String text,
JHelpFont font,
JHelpImage textureText)
Create an image for draw the text with symbols replaced by corresponding image
|
JHelpImage |
JHelpRichText.createImage(java.lang.String text,
JHelpFont font,
JHelpPaint paintText)
Create an image for draw the text with symbols replaced by corresponding image
|
private JHelpImage |
JHelpImageTest.createJHelpImage(int width,
int height) |
static JHelpImage |
JHelpImage.createThumbImage(java.awt.image.BufferedImage bufferedImage,
int width,
int height)
Create an image resized to specify size from a buffered image
|
static JHelpImage |
JHelpImage.extractBorder(JHelpImage source)
Extract the border of the objects inside the image.
|
static JHelpImage |
JHelpImage.extractBorder(JHelpImage source,
int width)
Extract the border of the objects inside the image.
|
static JHelpImage |
JHelpImage.extractBorder(JHelpImage source,
int width,
int step)
Extract the border of the objects inside the image.
|
static JHelpImage |
JHelpImage.extractBorder2(JHelpImage source)
Extract the border of the objects inside the image.
|
JHelpImage |
JHelpImage.extractSubImage(int x,
int y,
int width,
int height)
Extract a sub image from the image
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
JHelpImage |
JHelpSprite.getImage()
Image for draw on the sprite
|
JHelpImage |
JHelpSprite.getParent()
The sprite parent.
|
static JHelpImage |
JHelpImage.loadImage(java.io.File image)
Load an image from file
|
static JHelpImage |
JHelpImage.loadImage(java.io.InputStream inputStream)
Load an image from a stream
|
static JHelpImage |
JHelpImage.loadImageThumb(java.io.File image,
int width,
int height)
Load an image and resize it to have specific dimension
|
static JHelpImage |
JHelpImage.loadImageThumb(java.io.InputStream inputStream,
int width,
int height)
Load an image and resize it to have specific dimension
|
private JHelpImage |
JHelpRichText.obtainImage(java.lang.String resource,
int size)
Obtain an image from cache
|
JHelpImage |
JHelpImage.rotate180()
Compute the image rotated from 180 degree
If the image is not in draw mode, visible sprites are consider like a part of image |
JHelpImage |
JHelpImage.rotate270()
Compute the image rotated from 270 degree
If the image is not in draw mode, visible sprites are consider like a part of image |
JHelpImage |
JHelpImage.rotate90()
Compute the image rotated from 90 degree
If the image is not in draw mode, visible sprites are consider like a part of image |
JHelpImage |
JHelpImage.rotatedPart180(int x,
int y,
int width,
int height)
Extract a sub image and then rotate it from 180 degree
If the image is not in draw mode, visible sprites are consider like a part of image |
JHelpImage |
JHelpImage.rotatedPart270(int x,
int y,
int width,
int height)
Extract a sub image and then rotate it from 270 degree
If the image is not in draw mode, visible sprites are consider like a part of image |
JHelpImage |
JHelpImage.rotatedPart90(int x,
int y,
int width,
int height)
Extract a sub image and then rotate it from 90 degree
If the image is not in draw mode, visible sprites are consider like a part of image |
Modifier and Type | Method and Description |
---|---|
void |
JHelpAnimatedImage.addFrame(JHelpImage image,
int x,
int y,
int time)
Add a frame
|
void |
JHelpImage.addition(JHelpImage image)
Add an other image
This image and the given one MUST have same dimension Note : if this image or given one not in draw mode, all visible sprites (of the image) are consider like a part of the image |
void |
JHelpImage.copy(JHelpImage image)
Copy the image is this one
This image and the given one MUST have same dimension Note : if this image or given one not in draw mode, all visible sprites (of the image) are consider like a part of the image |
static JHelpImage |
JHelpImage.createBumpedImage(JHelpImage source,
JHelpImage bump)
Create a bump image with 0.75 contrast, 12 dark, 1 shift X and 1 shift Y
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
static JHelpImage |
JHelpImage.createBumpedImage(JHelpImage source,
JHelpImage bump,
double contrast,
int dark,
int shiftX,
int shiftY)
Create a bump image
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
static JHelpImage |
JHelpImage.createBumpedImage2(JHelpImage source,
JHelpImage bump)
Create a bump image with 0.75 contrast, 12 dark, -1 shift X and -1 shift Y
Note : If one of image is not in draw mode, all visible sprite (of this image) will be consider as a part of the image |
private JHelpImage |
JHelpRichText.createImage(java.lang.String text,
JHelpFont font,
int colorText,
JHelpPaint paintText,
JHelpImage textureText)
Compute image that draw the text with symbols replaced by corresponding images
|
JHelpImage |
JHelpRichText.createImage(java.lang.String text,
JHelpFont font,
JHelpImage textureText)
Create an image for draw the text with symbols replaced by corresponding image
|
JHelpSprite |
JHelpImage.createSprite(int x,
int y,
JHelpImage source)
Create sprite with initial image inside
MUSN'T be in draw mode |
void |
JHelpImage.divide(JHelpImage image)
Divide an other image
This image and the given one MUST have same dimension Note : if this image or given one not in draw mode, all visible sprites (of the image) are consider like a part of the image |
static boolean |
JHelpImage.doesImagesLookSamePerBorder(JHelpImage image1,
JHelpImage image2,
int precision,
int percentDifferenceAccepted)
Compare 2 images and compute if they "look" the same in compare the image border.
|
static boolean |
JHelpImage.doesImagesLookSamePerLuminosity(JHelpImage image1,
JHelpImage image2,
int precision,
int percentDifferenceAccepted)
Compare 2 images and compute if they "look" the same in compare the image luminosity
The precision is to determine the accepted distance in luminosity part, and percent to know the percent of accepted pixels doesn't match to precision. |
static boolean |
JHelpImage.doesImagesLookSamePerPixel(JHelpImage image1,
JHelpImage image2,
int colorPartPrecision,
int percentDifferenceAccepted)
Compare 2 images and compute if they "look" the same in compare the image pixels.
|
void |
JHelpImage.drawImage(int x,
int y,
JHelpImage image)
Draw an image
MUST be in draw mode |
void |
JHelpImage.drawImage(int x,
int y,
JHelpImage image,
boolean doAlphaMix)
Draw an image
MUST be in draw mode |
void |
JHelpImage.drawImage(int x,
int y,
JHelpImage image,
int alpha)
Draw an image over this image with specific alpha
MUST be in draw mode |
void |
JHelpImage.drawImage(int x,
int y,
JHelpImage image,
int xImage,
int yImage,
int width,
int height)
Draw a part off image
MUST be in draw mode |
void |
JHelpImage.drawImage(int x,
int y,
JHelpImage image,
int xImage,
int yImage,
int width,
int height,
boolean doAlphaMix)
Draw a part off image
MUST be in draw mode |
void |
JHelpImage.drawImage(int x,
int y,
JHelpImage image,
int xImage,
int yImage,
int width,
int height,
int alpha)
Draw a part of image with a specific alpha
MUST be in draw mode |
(package private) void |
JHelpImage.drawImageInternal(int x,
int y,
JHelpImage image,
int xImage,
int yImage,
int width,
int height,
boolean doAlphaMix)
Draw a part of an image on this image
MUST be in draw mode |
(package private) void |
JHelpImage.drawImageInternal(int x,
int y,
JHelpImage image,
int xImage,
int yImage,
int width,
int height,
int alpha)
Draw a part of image on using a specific alpha value
MUST be in draw mode |
(package private) void |
JHelpImage.drawImageOver(int x,
int y,
JHelpImage image,
int xImage,
int yImage,
int width,
int height)
Draw apart of image over this image 'just override)
MUST be in draw mode |
static void |
UtilImage.drawIncrustedDownTriangle(int x,
int y,
int size,
JHelpImage image)
Draw a triangle for go down
|
static void |
UtilImage.drawIncrustedLeftTriangle(int x,
int y,
int size,
JHelpImage image)
Draw a triangle for go left
|
static void |
UtilImage.drawIncrustedRightTriangle(int x,
int y,
int size,
JHelpImage image)
Draw a triangle for go right
|
static void |
UtilImage.drawIncrustedTriangle(int x,
int y,
int size,
JHelpImage image,
UtilImage.WayTriangle wayTriangle)
Draw a triangle for go in a given way
|
static void |
UtilImage.drawIncrustedUpTriangle(int x,
int y,
int size,
JHelpImage image)
Draw a triangle for go up
|
static JHelpImage |
JHelpImage.extractBorder(JHelpImage source)
Extract the border of the objects inside the image.
|
static JHelpImage |
JHelpImage.extractBorder(JHelpImage source,
int width)
Extract the border of the objects inside the image.
|
static JHelpImage |
JHelpImage.extractBorder(JHelpImage source,
int width,
int step)
Extract the border of the objects inside the image.
|
static JHelpImage |
JHelpImage.extractBorder2(JHelpImage source)
Extract the border of the objects inside the image.
|
void |
JHelpImage.fillEllipse(int x,
int y,
int width,
int height,
JHelpImage texture)
Fill ellipse with a texture
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillEllipse(int x,
int y,
int width,
int height,
JHelpImage texture,
boolean doAlphaMix)
Fill ellipse with a texture
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillPolygon(int[] xs,
int[] ys,
JHelpImage texture)
Fill a polygon
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillPolygon(int[] xs,
int[] ys,
JHelpImage texture,
boolean doAlphaMix)
Fill a polygon
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillPolygon(int[] xs,
int offsetX,
int[] ys,
int offsetY,
int length,
JHelpImage texture)
Fill a polygon
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillPolygon(int[] xs,
int offsetX,
int[] ys,
int offsetY,
int length,
JHelpImage texture,
boolean doAlphaMix)
Fill a polygon
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillRectangle(int x,
int y,
int width,
int height,
JHelpImage texture)
Fill a rectangle
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillRectangle(int x,
int y,
int width,
int height,
JHelpImage texture,
boolean doAlphaMix)
Fill a rectangle
Note : if the texture is not in draw moe, all of it's visible sprte will be condider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillRectangleScale(int x,
int y,
int width,
int height,
JHelpImage texture)
Fill a rectangle with an image.
|
void |
JHelpImage.fillRectangleScale(int x,
int y,
int width,
int height,
JHelpImage texture,
boolean doAlphaMix)
Fill a rectangle with an image.
|
void |
JHelpImage.fillRectangleScaleBetter(int x,
int y,
int width,
int height,
JHelpImage texture)
Fill a rectangle with an image.
|
void |
JHelpImage.fillRectangleScaleBetter(int x,
int y,
int width,
int height,
JHelpImage texture,
boolean doAlphaMix)
Fill a rectangle with an image.
|
void |
JHelpImage.fillRoundRectangle(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
JHelpImage texture)
Fill a round rectangle
Note : if the texture is not in draw mode, all of it's visible sprite will be consider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillRoundRectangle(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
JHelpImage texture,
boolean doAlphaMix)
Fill a round rectangle
Note : if the texture is not in draw mode, all of it's visible sprite will be consider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillShape(java.awt.Shape shape,
JHelpImage texture)
Fill a shape
Note : if the texture is not in draw mode, all of it's visible sprite will be consider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillShape(java.awt.Shape shape,
JHelpImage texture,
boolean doAlphaMix)
Fill a shape
Note : if the texture is not in draw mode, all of it's visible sprite will be consider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillString(int x,
int y,
java.lang.String string,
JHelpFont font,
JHelpImage texture,
int color)
Fill a string
Note : if the texture is not in draw mode, all of it's visible sprite will be consider like a part of he texture MUST be in draw mode |
void |
JHelpImage.fillString(int x,
int y,
java.lang.String string,
JHelpFont font,
JHelpImage texture,
int color,
boolean doAlphaMix)
Fill a string
Note : if the texture is not in draw mode, all of it's visible sprite will be consider like a part of he texture MUST be in draw mode |
void |
JHelpImage.maximum(JHelpImage image)
Take the maximum between this image and given one
Note : if the given image is not in draw mode, all of it's visible sprite will be consider like a part of the given image Given image MUST have same dimension of this MUST be in draw mode |
void |
JHelpImage.middle(JHelpImage image)
Take the middle between this image and given one
Note : if the given image is not in draw mode, all of it's visible sprite will be consider like a part of the given image Given image MUST have same dimension of this MUST be in draw mode |
void |
JHelpImage.minimum(JHelpImage image)
Take the minimum between this image and given one
Note : if the given image is not in draw mode, all of it's visible sprite will be consider like a part of the given image Given image MUST have same dimension of this MUST be in draw mode |
void |
JHelpImage.multiply(JHelpImage image)
Multiply the image with an other one
Note : if the given image is not in draw mode, all of it's visible sprite will be consider like a part of the given image Given image MUST have same dimension of this MUST be in draw mode |
void |
JHelpImage.paintMask(int x,
int y,
JHelpMask mask,
int foreground,
JHelpImage background,
int backgroundX,
int backgroundY,
boolean doAlphaMix)
Paint a mask with unify foreground color and part of image in background
Note : if the background is not in draw mode, all of it's visible sprite will be consider like a part of the background MUST be in draw mode |
void |
JHelpImage.paintMask(int x,
int y,
JHelpMask mask,
JHelpImage foreground,
int foregroundX,
int foregroundY,
int background,
boolean doAlphaMix)
Paint a mask with part of image as foreground and unify color as background
Note : if the foreground is not in draw mode, all of it's visible sprite will be consider like a part of the foreground MUST be in draw mode |
void |
JHelpImage.paintMask(int x,
int y,
JHelpMask mask,
JHelpImage foreground,
int foregroundX,
int foregroundY,
JHelpImage background,
int backgroundX,
int backgroundY,
boolean doAlphaMix)
Paint a mask with 2 images, one for "foreground" pixels, one for "background" ones
Note : if the foreground or background is not in draw mode, all of it's visible sprite will be consider like a part of the foreground or background MUST be in draw mode |
void |
JHelpImage.paintMask(int x,
int y,
JHelpMask mask,
JHelpImage foreground,
int foregroundX,
int foregroundY,
JHelpPaint background,
boolean doAlphaMix)
Paint a mask with image in foreground and paint in background
Note : if the foreground is not in draw mode, all of it's visible sprite will be consider like a part of the foreground MUST be in draw mode |
void |
JHelpImage.paintMask(int x,
int y,
JHelpMask mask,
JHelpPaint foreground,
JHelpImage background,
int backgroundX,
int backgroundY,
boolean doAlphaMix)
Paint a mask with paint in foreground and image in background
Note : if the background is not in draw mode, all of it's visible sprite will be consider like a part of the background MUST be in draw mode |
static void |
JHelpImage.saveImage(java.io.OutputStream outputStream,
JHelpImage image)
Save an image to a stream
Note : If the image is not in draw mode, all visible sprite will be consider as a part of the image |
(package private) void |
JHelpSprite.setParent(JHelpImage parent)
Change parent image
|
void |
JHelpImage.subtract(JHelpImage image)
Subtract the image by an other one
Note : if the given image is not in draw mode, all of it's visible sprite will be consider like a part of the given image Given image MUST have same dimension of this MUST be in draw mode |
void |
JHelpImage.transfertSpritesTo(JHelpImage image)
Give all sprites of this image to an other image
|
Constructor and Description |
---|
JHelpAnimatedImage.AnimationFrame(JHelpImage image,
int x,
int y,
int time)
Create a new instance of AnimationFrame
|
JHelpAnimatedImage(JHelpImage imageToRefresh,
JHelpAnimatedImage.AnimationMode animationMode)
Create a new instance of JHelpAnimatedImage
|
JHelpSprite(int x,
int y,
int width,
int height,
JHelpImage parent,
int spriteIndex)
Create a new instance of JHelpSprite
|
JHelpSprite(int x,
int y,
JHelpImage source,
JHelpImage parent,
int spriteIndex)
Create a new instance of JHelpSprite
|
Modifier and Type | Method and Description |
---|---|
JHelpImage |
Resources.obtainJHelpImage(java.lang.String path)
Obtain a
JHelpImage |
Modifier and Type | Field and Description |
---|---|
private JHelpImage |
SampleLabelJHelpImage.image
Image to draw
|
Modifier and Type | Method and Description |
---|---|
JHelpImage |
SampleLabelJHelpImage.getJHelpImage()
Image to draw
|
Modifier and Type | Method and Description |
---|---|
void |
SampleLabelJHelpImage.setJHelpImage(JHelpImage image)
Change the image to draw
|
Constructor and Description |
---|
SampleLabelJHelpImage(JHelpImage image)
Create a new instance of LabelJHelpImage with image
|
Modifier and Type | Field and Description |
---|---|
private JHelpImage |
JHelpFontSampleFrame.imageMain
Image that draw the text
|