| Package | Description |
|---|---|
| com.codename1.cloud |
Provides cloud related services such as storage, binding widgets to the cloud seamlessly so they can be persisted
easily.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.facebook |
Legacy generic implementation of the Facebook API with simplified OAuth integration to allow social sharing.
|
| com.codename1.impl |
The implementation package should not be used by developers, it is an internal implementation detail
which will break compatibility between major Codename One releases.
|
| com.codename1.io.services |
Default WebService implementations
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| Constructor and Description |
|---|
CloudImageProperty(String idProperty,
EncodedImage placeholderImage)
Deprecated.
Create an image property for the given id that will hold the place holder image
while downloading the actual image
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileEncodedImage
An encoded image that stores the actual data of the encoded image in a disk file
or resource and loads it only when necessary.
|
class |
FileEncodedImageAsync
This class is identical to FileEncodedImage with the difference of using
asynchronous loading for files (and the animation framework) which will
not work for all cases (e.g.
|
class |
ReplaceableImage
Allows the image data to be replaced at runtime when a different image is
available.
|
class |
StorageImage
An encoded image that stores the actual data of the encoded image in storage.
|
class |
StorageImageAsync
Asynchronous storage image that loads in the background and not during the paint
cycle effectively not blocking the EDT drawing speed.
|
| Modifier and Type | Method and Description |
|---|---|
static ReplaceableImage |
ReplaceableImage.create(EncodedImage placeholder)
Creates an encoded image that can later be replaced with a different image
|
void |
ReplaceableImage.replace(EncodedImage newImage)
Replaces the current image with the new image which must match the dimensions
etc.
|
| Modifier and Type | Method and Description |
|---|---|
EncodedImage |
FaceBookAccess.getPictureAndWait(String id,
Dimension toScale)
Gets the picture of the given facebook object id
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.drawingEncodedImage(EncodedImage img)
This method is used by the JavaSE implementation for performance logging
|
| Modifier and Type | Method and Description |
|---|---|
EncodedImage |
ImageDownloadService.getResult()
Deprecated.
Returns the image returned from the server, this method is useful for renderers
|
| Modifier and Type | Class and Description |
|---|---|
class |
ComponentImage.EncodedWrapper
A wrapper for ComponentImage to convert it to an EncodedImage.
|
class |
URLImage
URLImage allows us to create an image from a URL. |
| Modifier and Type | Method and Description |
|---|---|
EncodedImage |
URLImage.ImageAdapter.adaptImage(EncodedImage downloadedImage,
EncodedImage placeholderImage)
Allows the downloaded image to be adapted e.g if it isn't the same size of the placeholder image.
|
static EncodedImage |
EncodedImage.create(byte[] data)
Creates an image from the given byte array
|
static EncodedImage |
EncodedImage.create(byte[] data,
int width,
int height,
boolean opacity)
Creates an image from the given byte array with the variables set appropriately.
|
static EncodedImage |
EncodedImage.create(InputStream i)
Creates an image from the input stream
|
static EncodedImage |
EncodedImage.create(InputStream i,
int size)
Creates an image from the input stream, this version of the method is somewhat faster
than the version that doesn't accept size
|
static EncodedImage |
EncodedImage.create(String i)
Creates an image from the input stream
|
static EncodedImage |
EncodedImage.createFromImage(Image i,
boolean jpeg)
Converts an image to encoded image
|
static EncodedImage |
EncodedImage.createMulti(int[] dpis,
byte[][] data)
Deprecated.
this method is meant for internal use only, it would be very expensive to use
this method for real applications. Its here for simulators and development purposes where
screen DPI/resolution can vary significantly in runtime (something that just doesn't happen on devices).
|
EncodedImage |
ComponentImage.EncodedWrapper.scaledEncoded(int width,
int height)
Performs scaling using ImageIO to generate an encoded Image
|
EncodedImage |
EncodedImage.scaledEncoded(int width,
int height)
Performs scaling using ImageIO to generate an encoded Image
|
EncodedImage |
ComponentImage.toEncodedImage()
Converts to an encoded image.
|
EncodedImage |
FontImage.toEncodedImage()
Converts the icon image to an encoded image if possible
|
| Modifier and Type | Method and Description |
|---|---|
EncodedImage |
URLImage.ImageAdapter.adaptImage(EncodedImage downloadedImage,
EncodedImage placeholderImage)
Allows the downloaded image to be adapted e.g if it isn't the same size of the placeholder image.
|
static URLImage |
URLImage.createToFileSystem(EncodedImage placeholder,
String file,
String url,
URLImage.ImageAdapter adapter)
Creates an image the will be downloaded on the fly as necessary
|
static URLImage |
URLImage.createToStorage(EncodedImage placeholder,
String storageFile,
String url)
Creates an image the will be downloaded on the fly as necessary with RESIZE_SCALE_TO_FILL as
the default behavior
|
static URLImage |
URLImage.createToStorage(EncodedImage placeholder,
String storageFile,
String url,
URLImage.ImageAdapter adapter)
Creates an image the will be downloaded on the fly as necessary
|
Copyright © 2021. All rights reserved.