Package | Description |
---|---|
com.codename1.charts.compat |
This package contains compatibility classes for internal use
|
com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
com.codename1.contacts |
Provides access to the contacts list from the device address book
|
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 |
Networking, Storage, Filesystem & related API's
|
com.codename1.io.services |
Default WebService implementations
|
com.codename1.maps |
The mapping API allows developers to use maps in their applications, add layers
on top of the map and to enhance the API with additional Layers, Providers and functionality.
|
com.codename1.maps.layers |
The Layers are elements that are displayed on the map.
|
com.codename1.media |
Video and Audio playback support are handled within this package using the
Media & MediaManager APIs. |
com.codename1.share |
Sharing services, that can be registered on the ShareButton
|
com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
com.codename1.ui.animations |
All components are animatable by potential and additional animations (unrelated
to a specific component) can be installed on the fly, transitions between
forms are also handled as part of this package.
|
com.codename1.ui.plaf |
Look of the application can be fully customized via this package, it represents
a rendering layer that can be plugged in separately in runtime and themed to
provide any custom look.
|
com.codename1.ui.tree |
Tree component for displaying hierarchy based information and its related classes
|
com.codename1.ui.util |
Utility features that are either too domain specific or don't "fit" into any
other packages including the Resource file format loading API.
|
com.codename1.ui.validation |
The validation framework allows us to mark invalid input in text components and disable components
in the case of invalid input
|
Modifier and Type | Method and Description |
---|---|
void |
Canvas.drawBitmap(Image img,
float left,
float top,
Paint paint)
Deprecated.
|
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 |
---|---|
Image |
InfiniteProgress.getAnimation() |
Image |
MediaPlayer.getBackIcon() |
Image |
ImageViewer.getCroppedImage(int backgroundColor)
Gets the current image cropped using the current pan and zoom state.
|
Image |
ImageViewer.getCroppedImage(int width,
int height,
int backgroundColor)
Gets the current image cropped using the current pan and zoom state.
|
Image |
SpanMultiButton.getDisabledIcon()
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
Image |
SpanButton.getDisabledIcon()
Returns the disabled icon of the button
|
Image |
MultiButton.getDisabledIcon()
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
Image |
SpanMultiButton.getEmblem()
Returns the emblem image
|
Image |
MultiButton.getEmblem()
Returns the emblem image
|
Image |
MediaPlayer.getFwdIcon() |
Image |
ScaleImageButton.getIcon()
Returns the background image
|
Image |
SpanMultiButton.getIcon()
Returns the icon image
|
Image |
SpanButton.getIcon()
Returns the image of the icon
|
Image |
SpanLabel.getIcon()
Returns the image of the icon
|
Image |
ScaleImageLabel.getIcon()
Returns the background image
|
Image |
ToastBar.Status.getIcon()
Gets the icon (may be null) that is displayed with this status.
|
Image |
MultiButton.getIcon()
Returns the icon image
|
Image |
ScaleImageButton.getIconFromState()
Returns the icon for the button based on its current state
|
Image |
SpanMultiButton.getIconFromState()
Returns the icon for the button based on its current state
|
Image |
SpanButton.getIconFromState()
Returns the icon for the button based on its current state
|
Image |
MultiButton.getIconFromState()
Returns the icon for the button based on its current state
|
Image |
RSSReader.getIconPlaceholder() |
Image |
ImageViewer.getImage()
Returns the currently showing image
|
protected Image |
StorageImageAsync.getInternal()
Returns the actual image represented by the encoded image, this image will
be cached in a weak/soft reference internally.
|
protected Image |
FileEncodedImageAsync.getInternal()
Returns the actual image represented by the encoded image, this image will
be cached in a weak/soft reference internally.
|
Image |
MediaPlayer.getPauseIcon() |
Image |
MediaPlayer.getPlayIcon() |
Image |
SpanMultiButton.getPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state
|
Image |
SpanButton.getPressedIcon()
Returns the pressed icon of the button
|
Image |
MultiButton.getPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state
|
Image |
SpanMultiButton.getRolloverIcon()
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
Image |
SpanButton.getRolloverIcon()
Returns the rollover icon of the button
|
Image |
MultiButton.getRolloverIcon()
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
Image |
SpanMultiButton.getRolloverPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
Image |
SpanButton.getRolloverPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
Image |
MultiButton.getRolloverPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
Image |
SignatureComponent.getSignatureImage()
Gets the image of the signature - or null if no signature has been drawn.
|
Image |
ImageViewer.getSwipePlaceholder()
This image is shown briefly during swiping while the full size image is loaded
|
Image |
OnOffSwitch.getSwitchMaskImage()
Deprecated.
Gets the image that is used for the mask.
|
Image |
OnOffSwitch.getSwitchOffImage()
Deprecated.
Gets the image that is used for the "Off" state of the switch.
|
Image |
OnOffSwitch.getSwitchOnImage()
Deprecated.
Gets the image that is used for the "On" state of the switch.
|
Modifier and Type | Method and Description |
---|---|
ListModel<Image> |
ImageViewer.getImageList()
Returns the list model containing the images in the we can swipe through
|
Modifier and Type | Method and Description |
---|---|
static void |
MasterDetail.bindTabletLandscapeMaster(Form rootForm,
Container parentContainer,
Component landscapeUI,
Component portraitUI,
String commandTitle,
Image commandIcon)
Deprecated.
this was a half baked idea that made it into the public API
|
SplitPane.Settings |
SplitPane.Settings.collapseIcon(Image icon)
Sets the icon to use for the collapse button.
|
static StorageImageAsync |
StorageImageAsync.create(String fileName,
Image placeholder)
Creates an encoded image that maps to a storage file thus allowing to
seamlessly cache images as needed.
|
static FileEncodedImageAsync |
FileEncodedImageAsync.create(String fileName,
Image placeholder)
Creates an encoded image that maps to a local file thus allowing to
seamlessly fetch files as needed.
|
SplitPane.Settings |
SplitPane.Settings.dragHandleIcon(Image icon)
Sets the icon to use for the drag handle.
|
SplitPane.Settings |
SplitPane.Settings.expandIcon(Image icon)
Sets the icon to use for the expand button.
|
void |
InfiniteProgress.setAnimation(Image animation)
Allows setting the image that will be rotated as part of this effect
|
void |
MediaPlayer.setBackIcon(Image backIcon)
Sets the back Button Icon
|
void |
Accordion.setCloseIcon(Image closeIcon)
Sets the closed icon
|
void |
SpanMultiButton.setDisabledIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
void |
SpanButton.setDisabledIcon(Image i)
Sets the disabled icon for the button
|
void |
MultiButton.setDisabledIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
void |
SpanMultiButton.setEmblem(Image i)
Sets the emblem
|
void |
MultiButton.setEmblem(Image i)
Sets the emblem
|
void |
MediaPlayer.setFwdIcon(Image fwdIcon)
Sets the forward Button Icon
|
void |
ScaleImageButton.setIcon(Image i)
Instead of setting the icon sets the background image
|
void |
SpanMultiButton.setIcon(Image i)
Sets the icon
|
void |
SpanButton.setIcon(Image i)
Sets the icon for the button
|
void |
SpanLabel.setIcon(Image i)
Sets the icon for the label
|
void |
ScaleImageLabel.setIcon(Image i)
Instead of setting the icon sets the background image
|
void |
ToastBar.Status.setIcon(Image icon)
Sets the icon that is to be displayed with this status.
|
void |
MultiButton.setIcon(Image i)
Sets the icon
|
void |
RSSReader.setIconPlaceholder(Image iconPlaceholder) |
void |
ImageViewer.setImage(Image image)
Sets the currently showing image
|
void |
ImageViewer.setImageNoReposition(Image image)
Sets the current image without any changes to the panning/scaling
|
void |
MediaPlayer.setMaxIcon(Image maxIcon)
Sets the maximize Button Icon
|
void |
Accordion.setOpenIcon(Image openIcon)
Sets the open icon
|
void |
MediaPlayer.setPauseIcon(Image pauseIcon)
Sets the pause Button Icon
|
void |
MediaPlayer.setPlayIcon(Image playIcon)
Sets the play Button Icon
|
void |
SpanMultiButton.setPressedIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
pressed state
|
void |
SpanButton.setPressedIcon(Image i)
Sets the pressed icon for the button
|
void |
MultiButton.setPressedIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
pressed state
|
void |
SpanMultiButton.setRolloverIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
void |
SpanButton.setRolloverIcon(Image i)
Sets the rollover icon for the button
|
void |
MultiButton.setRolloverIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
void |
SpanMultiButton.setRolloverPressedIcon(Image icn)
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
void |
SpanButton.setRolloverPressedIcon(Image arg0)
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
void |
MultiButton.setRolloverPressedIcon(Image icn)
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
void |
SignatureComponent.setSignatureImage(Image img)
Sets the signature image for this field.
|
void |
ImageViewer.setSwipePlaceholder(Image swipePlaceholder)
This image is shown briefly during swiping while the full size image is loaded
|
void |
OnOffSwitch.setSwitchMaskImage(Image switchMaskImage)
Deprecated.
Sets the image that should be used for the "On" state.
|
void |
OnOffSwitch.setSwitchOffImage(Image switchOffImage)
Deprecated.
Sets the image that should be used for the "Off" state.
|
void |
OnOffSwitch.setSwitchOnImage(Image switchOnImage)
Deprecated.
Sets the image that should be used for the "Off" state.
|
Modifier and Type | Method and Description |
---|---|
void |
ImageViewer.setImageList(ListModel<Image> model)
By providing this optional list of images you can allows swiping between multiple images
|
Constructor and Description |
---|
Accordion(Image openIcon,
Image closeIcon)
Create an accordion with open and close icons set
|
ImageViewer(Image i)
Initializes the component with an image
|
ScaleImageButton(Image i)
Create a version with the given image
|
ScaleImageLabel(Image i)
Create a version with the given image
|
Modifier and Type | Method and Description |
---|---|
Image |
Contact.getPhoto()
Gets the Contact photo
|
Modifier and Type | Method and Description |
---|---|
void |
Contact.setPhoto(Image photo)
Sets Contact photo
|
void |
ContactsModel.setPlaceHolderImage(Image placeHolder)
Sets the Contacts place holder image.
|
Modifier and Type | Method and Description |
---|---|
Image |
CodenameOneImplementation.captureScreen()
Captures a screenshot of the screen.
|
Image |
CodenameOneImplementation.createImage(Shape shape,
Stroke stroke,
int color) |
Image |
CodenameOneImplementation.flipImageHorizontally(Image image,
boolean maintainOpacity)
Flips the given image on the horizontal axis
|
Image |
CodenameOneImplementation.flipImageVertically(Image image,
boolean maintainOpacity)
Flips the given image on the vertical axis
|
Image |
CodenameOneImplementation.gaussianBlurImage(Image image,
float radius) |
Image |
CodenameOneImplementation.getApplicationIconImage()
Returns an image representing the application icon, or null if not supported.
|
Image |
CodenameOneImplementation.rotate180Degrees(Image image,
boolean maintainOpacity)
Rotates the given image by 180 degrees
|
Image |
CodenameOneImplementation.rotate270Degrees(Image image,
boolean maintainOpacity)
Rotates the given image by 270 degrees while changing the ratio of the picture
|
Image |
CodenameOneImplementation.rotate90Degrees(Image image,
boolean maintainOpacity)
Rotates the given image by 90 degrees while changing the ratio of the picture
|
Modifier and Type | Method and Description |
---|---|
AsyncResource<Image> |
CodenameOneImplementation.captureBrowserScreenshot(PeerComponent browserPeer)
Captures a screenshot from a browser component asynchronously.
|
Modifier and Type | Method and Description |
---|---|
Object |
CodenameOneImplementation.createNativeIndexed(Image image)
Creates a native image representing the indexed image
|
Image |
CodenameOneImplementation.flipImageHorizontally(Image image,
boolean maintainOpacity)
Flips the given image on the horizontal axis
|
Image |
CodenameOneImplementation.flipImageVertically(Image image,
boolean maintainOpacity)
Flips the given image on the vertical axis
|
Image |
CodenameOneImplementation.gaussianBlurImage(Image image,
float radius) |
boolean |
CodenameOneImplementation.isOpaque(Image codenameOneImage,
Object nativeImage)
Returns true if the image was opaque
|
Image |
CodenameOneImplementation.rotate180Degrees(Image image,
boolean maintainOpacity)
Rotates the given image by 180 degrees
|
Image |
CodenameOneImplementation.rotate270Degrees(Image image,
boolean maintainOpacity)
Rotates the given image by 270 degrees while changing the ratio of the picture
|
Image |
CodenameOneImplementation.rotate90Degrees(Image image,
boolean maintainOpacity)
Rotates the given image by 90 degrees while changing the ratio of the picture
|
Modifier and Type | Method and Description |
---|---|
void |
CodenameOneImplementation.downloadImageToCache(String url,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image from a URL to the cache.
|
void |
CodenameOneImplementation.downloadImageToCache(String url,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image from a URL to the cache.
|
void |
CodenameOneImplementation.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to file system.
|
void |
CodenameOneImplementation.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to file system.
|
void |
CodenameOneImplementation.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to storage.
|
void |
CodenameOneImplementation.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to storage.
|
Modifier and Type | Method and Description |
---|---|
static AsyncResource<Image> |
Util.downloadImageToCache(String url)
Downloads an image to the cache asynchronously.
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToFileSystem(String file)
Downloads an image to a the file system asynchronously returning an AsyncResource object that resolves to the loaded image..
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToFileSystem(String file,
boolean useCache)
Downloads an image to a the file system asynchronously returning an AsyncResource object that resolves to the loaded image..
|
static AsyncResource<Image> |
Util.downloadImageToFileSystem(String url,
String fileName)
Downloads an image to the file system asynchronously.
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToStorage(String storageFile)
Downloads an image to a specified storage file asynchronously returning an AsyncResource that resolves to the resulting image..
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToStorage(String storageFile,
boolean useCache)
Downloads an image to a specified storage file asynchronously returning an AsyncResource that resolves to the resulting image..
|
static AsyncResource<Image> |
Util.downloadImageToStorage(String url,
String fileName)
Downloads an image to storage asynchronously.
|
Modifier and Type | Method and Description |
---|---|
static void |
Util.downloadImageToCache(String url,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to the cache asynchronously.
|
static void |
Util.downloadImageToCache(String url,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to the cache asynchronously.
|
static void |
Util.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess)
Downloads an image to the file system asynchronously.
|
static void |
Util.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to the file system asynchronously.
|
static void |
Util.downloadImageToFileSystem(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to the file system asynchronously.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
boolean useCache)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail,
boolean useCache)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToFileSystem(String file,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail,
boolean useCache)
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image.
|
static void |
Util.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess)
Downloads an image to storage asynchronously.
|
static void |
Util.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to storage asynchronously.
|
static void |
Util.downloadImageToStorage(String url,
String fileName,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to storage asynchronously.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
boolean useCache)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail,
boolean useCache)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
void |
ConnectionRequest.downloadImageToStorage(String storageFile,
SuccessCallback<Image> onSuccess,
FailureCallback<Image> onFail,
boolean useCache)
Downloads an image to a specified storage file asynchronously and calls the onSuccessCallback with the resulting image.
|
Modifier and Type | Method and Description |
---|---|
Image |
RSSService.getIconPlaceholder() |
Modifier and Type | Method and Description |
---|---|
static void |
ImageDownloadService.createImageToFileSystem(String url,
Component targetList,
int targetOffset,
String targetKey,
String destFile,
Image placeholder,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives, it will cache the file locally as a file
in the file storage.
|
static void |
ImageDownloadService.createImageToFileSystem(String url,
Component targetList,
ListModel model,
int targetOffset,
String targetKey,
String destFile,
Image placeholder,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives, it will cache the file locally as a file
in the file storage.
|
static void |
ImageDownloadService.createImageToStorage(String url,
Component targetList,
int targetOffset,
String targetKey,
String cacheId,
Image placeholderImage,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives, it will cache the file locally as a file
in the file storage.
|
static void |
ImageDownloadService.createImageToStorage(String url,
Component targetList,
ListModel model,
int targetOffset,
String targetKey,
String cacheId,
Image placeholderImage,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives, it will cache the file locally as a file
in the file storage.
|
static void |
ImageDownloadService.createImageToStorage(String url,
Label l,
String cacheId,
Image placeholder,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given Label
when the response arrives, it will cache the file locally to the Storage
|
protected void |
ImageDownloadService.setEntryInListModel(int offset,
Image img)
Deprecated.
This method is invoked when an image finished downloading and should be set to an offset in the list
model.
|
void |
RSSService.setIconPlaceholder(Image iconPlaceholder) |
Modifier and Type | Method and Description |
---|---|
static void |
Tile.setTileLoadingImage(Image tileLoadingImage)
Sets a static image that will be drawn on the map if the tile image is
not available yet.
|
Constructor and Description |
---|
Tile(Dimension dimension,
BoundingBox boundingBox,
Image image)
Creates a new Tile.
|
Modifier and Type | Method and Description |
---|---|
Image |
PointLayer.getIcon()
Gets the point Icon
|
Modifier and Type | Method and Description |
---|---|
void |
PointLayer.setIcon(Image icon)
Sets the display icon
|
void |
PointsLayer.setPointIcon(Image icon)
Sets the Points icon
|
Constructor and Description |
---|
PointLayer(Coord position,
String name,
Image icon)
Creates a Point Layer.
|
Modifier and Type | Method and Description |
---|---|
Image |
MediaMetaData.getAlbumArt()
Gets the album art for the media.
|
Image |
MediaMetaData.getArt()
Gets the art for the current media.
|
Image |
MediaMetaData.getDisplayIcon()
Gets the display icon for the media.
|
Modifier and Type | Method and Description |
---|---|
void |
MediaMetaData.setAlbumArt(Image albumArt)
Sets the album art for the media.
|
void |
MediaMetaData.setArt(Image art)
Sets the art for the current media.
|
void |
MediaMetaData.setDisplayIcon(Image displayIcon)
Sets the display icon for the media.
|
Modifier and Type | Method and Description |
---|---|
Image |
EmailShare.getIcon() |
Image |
FacebookShare.getIcon() |
Image |
SMSShare.getIcon() |
Constructor and Description |
---|
ShareService(String name,
Image icon)
Constructor with the service name and icon
|
Modifier and Type | Class and Description |
---|---|
class |
ComponentImage
A utility wrapper that allows a Component to be used as an Image so that it can
be set as the icon for a Label or button.
|
class |
ComponentImage.EncodedWrapper
A wrapper for ComponentImage to convert it to an EncodedImage.
|
class |
DynamicImage
A base class for images that dynamically painted, just like a normal component.
|
class |
EncodedImage
EncodedImage is the workhorse of Codename One. |
class |
FontImage
FontImage allows using an icon font as if it was an image. |
class |
RGBImage
An image that stores its data as an integer RGB array internally,
this image cannot be manipulated via Graphics primitives however its
array is accessible and modifiable programmatically.
|
class |
URLImage
URLImage allows us to create an image from a URL. |
Modifier and Type | Method and Description |
---|---|
Image |
ComponentImage.applyMask(Object mask)
Applies the given alpha mask onto this image and returns the resulting image
see the createMask method for indication on how to convert an image into an alpha
mask.
|
Image |
Image.applyMask(Object mask)
Applies the given alpha mask onto this image and returns the resulting image
see the createMask method for indication on how to convert an image into an alpha
mask.
|
Image |
DynamicImage.applyMask(Object mask)
Applies the given alpha mask onto this image and returns the resulting image
see the createMask method for indication on how to convert an image into an alpha
mask.
|
Image |
Image.applyMask(Object mask,
int x,
int y)
Applies the given alpha mask onto this image and returns the resulting image
see the createMask method for indication on how to convert an image into an alpha
mask.
|
Image |
Image.applyMaskAutoScale(Object mask)
Applies the given alpha mask onto this image and returns the resulting image
see the createMask method for indication on how to convert an image into an alpha
mask.
|
static Image |
CN.captureScreen()
Captures a screenshot of the screen.
|
Image |
Display.captureScreen()
Captures a screenshot of the screen.
|
static Image |
URLImage.createCachedImage(String imageName,
String url,
Image placeholder,
int resizeRule)
Creates an image that will be downloaded on the fly as necessary.
|
static Image |
EncodedImage.createFromRGB(int[] argb,
int width,
int height,
boolean jpeg)
Tries to create an encoded image from RGB which is more efficient,
however if this fails it falls back to regular RGB image.
|
static Image |
Image.createImage(byte[] bytes,
int offset,
int len)
creates an image from a given byte array data
|
static Image |
ImageFactory.createImage(Component context,
int w,
int h,
int bgColor)
Creates an image using the factory at a given context.
|
static Image |
Image.createImage(InputStream stream)
creates an image from an InputStream
|
static Image |
Image.createImage(int[] rgb,
int width,
int height)
creates an image from an RGB image
|
static Image |
Image.createImage(int width,
int height)
Creates a white opaque mutable image that may be manipulated using
getGraphics() .The sample below shows this method being used to create a screenshot for sharing the image: |
static Image |
Image.createImage(int width,
int height,
int fillColor)
Creates a mutable image that may be manipulated using
getGraphics() .The sample below shows this method being used to create a screenshot for sharing the image: |
abstract Image |
ImageFactory.createImage(int w,
int h,
int bgColor) |
static Image |
Image.createImage(Object nativeImage)
Deprecated.
this method is deprecated as a warning! Don't use this method unless you actually
know what you are doing, if you are invoking this method without understanding the distinction
between native image and Codename One image then you are using the wrong method.
|
static Image |
Image.createImage(String path)
Creates an image from a path.
|
static Image |
Image.createIndexed(int width,
int height,
int[] palette,
byte[] data)
Deprecated.
try to avoid using indexed images explicitly
|
static Image |
Image.createSVG(String baseURL,
boolean animated,
byte[] data)
Creates an SVG Image from the given byte array data and the base URL, this method
will throw an exception if SVG is unsupported.
|
static Image |
Image.exifRotation(String capturedImage)
The main use case of this method is the automatic rotation and flipping
of an image returned from the camera or from the gallery, preserving the
original format (jpeg or png); it detects the Exif Orientation Tag, if
available (all the possible Exif Orientation Tag values are
supported); transparency is not preserved.
|
static Image |
Image.exifRotation(String capturedImage,
String rotatedImage)
The main use case of this method is the automatic rotation and flipping
of an image returned from the camera or from the gallery, preserving the
original format (jpeg or png); it detects the Exif Orientation Tag, if
available (all the possible Exif Orientation Tag values are
supported); transparency is not preserved.
|
static Image |
Image.exifRotation(String capturedImage,
String rotatedImage,
int maxSize)
The main use case of this method is the automatic rotation and flipping
of an image returned from the camera or from the gallery, preserving the
original format (jpeg or png); it detects the Exif Orientation Tag, if
available (all the possible Exif Orientation Tag values are
supported); transparency is not preserved.
|
Image |
ComponentImage.fill(int width,
int height) |
Image |
Image.fill(int width,
int height)
Resizes/crops the image so that its center fills the given dimensions.
|
Image |
DynamicImage.fill(int width,
int height)
Resizes/crops the image so that its center fills the given dimensions.
|
Image |
Image.flipHorizontally(boolean maintainOpacity)
Flips this image on the horizontal axis
|
Image |
Image.flipVertically(boolean maintainOpacity)
Flips this image on the vertical axis
|
Image |
Display.gaussianBlurImage(Image image,
float radius)
Create a blur image from the given image.
|
protected Image |
PeerComponent.generatePeerImage()
The native implementation should implement this method to generate a native peer
image representing the component
|
Image |
ComboBox.getComboBoxImage()
Gets the ComboBox drop down icon
|
Image |
Button.getDisabledIcon()
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
Image |
Command.getDisabledIcon()
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
Image |
SelectableIconHolder.getDisabledIcon()
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
protected Image |
Component.getDragImage()
This method returns an image representing the dragged component, it can be overriden by subclasses to customize the look
of the image, the image will be overlaid on top of the form during a drag and drop operation
|
Image |
TextArea.getHintIcon()
Returns the hint icon
|
Image |
List.getHintIcon()
Returns the hint icon
|
Image |
Command.getIcon()
Returns the icon representing the command
|
Image |
Label.getIcon()
Returns the labels icon
|
Image |
IconHolder.getIcon()
Returns the labels icon
|
Image |
Button.getIconFromState()
Returns the icon for the button based on its current state
|
Image |
SelectableIconHolder.getIconFromState()
Returns the icon for the button based on its current state
|
protected Image |
ComponentImage.EncodedWrapper.getInternal()
Returns the actual image represented by the encoded image, this image will
be cached in a weak/soft reference internally.
|
protected Image |
EncodedImage.getInternal()
Returns the actual image represented by the encoded image, this image will
be cached in a weak/soft reference internally.
|
protected Image |
URLImage.getInternal()
Returns the actual image represented by the encoded image, this image will
be cached in a weak/soft reference internally.
|
Image |
Label.getMaskedIcon()
If a mask is applied returns the icon with a mask, otherwise returns the icon
|
protected Image |
PeerComponent.getPeerImage()
The peer image is drawn when the component doesn't exist or during transition
a placeholder image can be placed in the beginning to show something while
the peer is being created asynchronously.
|
Image |
Button.getPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state
|
Image |
Command.getPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state
|
Image |
SelectableIconHolder.getPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state
|
Image |
Button.getRolloverIcon()
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
Image |
Command.getRolloverIcon()
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
Image |
SelectableIconHolder.getRolloverIcon()
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
Image |
Button.getRolloverPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
Image |
SelectableIconHolder.getRolloverPressedIcon()
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
protected Image |
Tabs.getTabIcon(Component tab)
Returns the icon of the tab component.
|
Image |
Tabs.getTabIcon(int index)
Returns the icon of the tab at the given index
|
protected Image |
Tabs.getTabSelectedIcon(Component tab)
Returns the selected icon of the tab component.
|
Image |
Tabs.getTabSelectedIcon(int index)
Returns the icon of the tab at the given index
|
Image |
Slider.getThumbImage()
The thumb image is drawn on top of the current progress
|
Image |
Image.mirror()
Creates a mirror image for the given image which is useful for some RTL scenarios.
|
Image |
RGBImage.modifyAlpha(byte alpha)
Creates a new image instance with the alpha channel of opaque/translucent
pixels within the image using the new alpha value.
|
Image |
EncodedImage.modifyAlpha(byte alpha)
Creates a new image instance with the alpha channel of opaque/translucent
pixels within the image using the new alpha value.
|
Image |
Image.modifyAlpha(byte alpha)
Creates a new image instance with the alpha channel of opaque/translucent
pixels within the image using the new alpha value.
|
Image |
EncodedImage.modifyAlpha(byte alpha,
int removeColor)
Creates a new image instance with the alpha channel of opaque/translucent
pixels within the image using the new alpha value.
|
Image |
Image.modifyAlpha(byte alpha,
int removeColor)
Creates a new image instance with the alpha channel of opaque/translucent
pixels within the image using the new alpha value.
|
Image |
Image.modifyAlphaWithTranslucency(byte alpha)
Creates a new image instance with the alpha channel of opaque
pixels within the image using the new alpha value.
|
Image |
Component.paintLock(boolean hardLock)
This method locks the component so it will always paint the given image
instead of running through its paint logic.
|
Image |
RGBImage.rotate(int degrees)
Unsupported in the current version, this method will be implemented in a future release
|
Image |
EncodedImage.rotate(int degrees)
Returns an instance of this image rotated by the given number of degrees.
|
Image |
Image.rotate(int degrees)
Returns an instance of this image rotated by the given number of degrees.
|
Image |
FontImage.rotate(int degrees)
Returns an instance of this image rotated by the given number of degrees.
|
Image |
Image.rotate180Degrees(boolean maintainOpacity)
Rotates the image by 180 degrees
|
Image |
FontImage.rotate180Degrees(boolean maintainOpacity)
Rotates the image by 180 degrees
|
Image |
Image.rotate270Degrees(boolean maintainOpacity)
Rotates the image by 270 degrees while changing the ratio of the picture
|
Image |
FontImage.rotate270Degrees(boolean maintainOpacity)
Rotates the image by 270 degrees while changing the ratio of the picture
|
Image |
Image.rotate90Degrees(boolean maintainOpacity)
Rotates this image by 90 degrees while changing the ratio of the picture
|
Image |
FontImage.rotate90Degrees(boolean maintainOpacity)
Rotates this image by 90 degrees while changing the ratio of the picture
|
Image |
RGBImage.scaled(int width,
int height)
Returns a scaled version of this image image using the given width and height,
this is a fast algorithm that preserves translucent information.
|
Image |
ComponentImage.scaled(int width,
int height)
Returns a scaled version of this image image using the given width and height,
this is a fast algorithm that preserves translucent information.
|
Image |
ComponentImage.EncodedWrapper.scaled(int width,
int height)
Returns a scaled version of this image image using the given width and height,
this is a fast algorithm that preserves translucent information.
|
Image |
EncodedImage.scaled(int width,
int height)
Returns a scaled version of this image image using the given width and height,
this is a fast algorithm that preserves translucent information.
|
Image |
Image.scaled(int width,
int height)
Returns a scaled version of this image image using the given width and height,
this is a fast algorithm that preserves translucent information.
|
Image |
EncodedImage.scaledHeight(int height)
Scales the image to the given height while updating the width based on the
aspect ratio of the height
|
Image |
Image.scaledHeight(int height)
Scales the image to the given height while updating the width based on the
aspect ratio of the height
|
Image |
Image.scaledLargerRatio(int width,
int height)
Scales the image while maintaining the aspect ratio to the larger size
image
|
Image |
EncodedImage.scaledSmallerRatio(int width,
int height)
Scales the image while maintaining the aspect ratio to the smaller size
image
|
Image |
Image.scaledSmallerRatio(int width,
int height)
Scales the image while maintaining the aspect ratio to the smaller size
image
|
Image |
EncodedImage.scaledWidth(int width)
Scales the image to the given width while updating the height based on the
aspect ratio of the width
|
Image |
Image.scaledWidth(int width)
Scales the image to the given width while updating the height based on the
aspect ratio of the width
|
Image |
RGBImage.subImage(int x,
int y,
int width,
int height,
boolean processAlpha)
Extracts a subimage from the given image allowing us to breakdown a single large image
into multiple smaller images in RAM, this actually creates a standalone version
of the image for use.
|
Image |
EncodedImage.subImage(int x,
int y,
int width,
int height,
boolean processAlpha)
Extracts a subimage from the given image allowing us to breakdown a single large image
into multiple smaller images in RAM, this actually creates a standalone version
of the image for use.
|
Image |
Image.subImage(int x,
int y,
int width,
int height,
boolean processAlpha)
Extracts a subimage from the given image allowing us to breakdown a single large image
into multiple smaller images in RAM, this actually creates a standalone version
of the image for use.
|
Image |
Component.toImage()
Returns the component as an image.
|
Image |
FontImage.toImage()
Converts the icon image to an image if possible
|
Modifier and Type | Method and Description |
---|---|
AsyncResource<Image> |
BrowserComponent.captureScreenshot()
Async method for capturing a screenshot of the browser content.
|
Modifier and Type | Method and Description |
---|---|
Container |
Container.add(Image img)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.add(Object constraint,
Image img)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Command |
Toolbar.addCommandToLeftBar(String name,
Image icon,
ActionListener ev)
Adds a Command to the TitleArea on the left side.
|
Command |
Toolbar.addCommandToLeftSideMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the left side navigation menu
|
Command |
Toolbar.addCommandToOverflowMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the overflow menu
|
Command |
Toolbar.addCommandToRightBar(String name,
Image icon,
ActionListener ev)
Adds a Command to the TitleArea on the right side.
|
Command |
Toolbar.addCommandToRightSideMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the right side navigation menu (it requires a permanent
sidemenu or an onTop mode sidemenu, otherwise it does nothing)
|
Command |
Toolbar.addCommandToSideMenu(String name,
Image icon,
ActionListener ev)
Adds a Command to the left or right side navigation menu according to the
state of RTL.
|
void |
Tabs.addTab(String title,
Image icon,
Component component)
Adds a
component
represented by a title and/or icon ,
either of which can be null . |
Tabs |
Tabs.addTab(String title,
Image icon,
Image pressedIcon,
Component component)
Adds a
component
represented by a title and/or icon ,
either of which can be null . |
void |
EncodedImage.asyncLock(Image internal)
Async lock is the equivalent of a lock operation, however it uses the given image as
the hard cache and performs the actual image loading asynchronously.
|
void |
Image.asyncLock(Image internal)
Async lock is the equivalent of a lock operation, however it uses the given image as
the hard cache and performs the actual image loading asynchronously.
|
static Command |
Command.create(String name,
Image icon,
ActionListener ev)
Creates a new command instance that encapsulates the action listener and details, the main
value of this approach is in our ability to write commands using the shorthand lambda syntax
of Java 8.
|
static Font |
Font.createBitmapFont(Image bitmap,
int[] cutOffsets,
int[] charWidth,
String charsets)
Deprecated.
bitmap font functionality is now deprecated
|
static Font |
Font.createBitmapFont(String name,
Image bitmap,
int[] cutOffsets,
int[] charWidth,
String charsets)
Deprecated.
bitmap font functionality is now deprecated
|
static Image |
URLImage.createCachedImage(String imageName,
String url,
Image placeholder,
int resizeRule)
Creates an image that will be downloaded on the fly as necessary.
|
static EncodedImage |
EncodedImage.createFromImage(Image i,
boolean jpeg)
Converts an image to encoded image
|
static URLImage.ImageAdapter |
URLImage.createMaskAdapter(Image imageMask)
Creates an adapter that uses an image as a Mask, this is roughly the same as SCALE_TO_FILL with the
exception that a mask will be applied later on.
|
protected Component |
Tabs.createTab(String title,
Image icon)
Creates a tab component by default this is a RadioButton but subclasses can use this to return anything
|
static CheckBox |
CheckBox.createToggle(Image icon)
Shorthand for creating the check box setting the icon/text and making it into
a toggle button
|
static RadioButton |
RadioButton.createToggle(Image icon,
ButtonGroup bg)
Shorthand for creating the radio button, adding it to a group, setting the icon/text and making it into
a toggle button
|
static CheckBox |
CheckBox.createToggle(String text,
Image icon)
Shorthand for creating the check box setting the icon/text and making it into
a toggle button
|
static RadioButton |
RadioButton.createToggle(String text,
Image icon,
ButtonGroup bg)
Shorthand for creating the radio button, adding it to a group, setting the icon/text and making it into
a toggle button
|
protected void |
Component.drawDraggedImage(Graphics g,
Image img,
int x,
int y)
Draws the given image at x/y, this method can be overriden to draw additional information such as positive
or negative drop indication
|
void |
Graphics.drawImage(Image img,
int x,
int y)
Draws the image so its top left coordinate corresponds to x/y
|
void |
Graphics.drawImage(Image img,
int x,
int y,
int w,
int h)
Draws the image so its top left coordinate corresponds to x/y and scales it to width/height
|
void |
Graphics.drawShadow(Image img,
int x,
int y,
int offsetX,
int offsetY,
int blurRadius,
int spreadRadius,
int color,
float opacity) |
Image |
Display.gaussianBlurImage(Image image,
float radius)
Create a blur image from the given image.
|
AutoCompleteTextComponent |
AutoCompleteTextComponent.hint(Image hint)
Sets the hint of the field
|
TextComponent |
TextComponent.hint(Image hint)
Sets the hint of the field
|
TextComponentPassword |
TextComponentPassword.hint(Image hint)
Overridden for covariant return type
Sets the hint of the field
|
void |
Tabs.insertTab(String title,
Image icon,
Component component,
int index)
Inserts a
component , at index ,
represented by a title and/or icon ,
either of which may be null . |
Command |
Form.setBackCommand(String name,
Image icon,
ActionListener ev)
Shorthand for
Form.setBackCommand(com.codename1.ui.Command) that
dynamically creates the command using Command.create(java.lang.String, com.codename1.ui.Image, com.codename1.ui.events.ActionListener) . |
void |
Form.setBgImage(Image bgImage)
Deprecated.
Use the style directly
|
ComponentSelector |
ComponentSelector.setBgImage(Image bgImage)
|
void |
ComboBox.setComboBoxImage(Image comboBoxImage)
Sets the ComboBox drop down icon
|
void |
Button.setDisabledIcon(Image disabledIcon)
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
void |
Command.setDisabledIcon(Image disabledIcon)
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
ComponentSelector |
ComponentSelector.setDisabledIcon(Image icon)
|
void |
SelectableIconHolder.setDisabledIcon(Image disabledIcon)
Indicates the icon that is displayed on the button when the button is in
the disabled state
|
void |
TextArea.setHint(String hint,
Image icon)
Sets the TextArea hint text and Icon, the hint text and icon are
displayed on the TextArea when there is no text in the TextArea
|
void |
List.setHint(String hint,
Image icon)
Sets the TextArea hint text and Icon, the hint text and icon are
displayed on the TextArea when there is no text in the TextArea
|
void |
TextArea.setHintIcon(Image icon)
Sets the TextArea hint icon, the hint is displayed on the TextArea
When there is no text in the TextArea
|
void |
List.setHintIcon(Image icon)
Sets the TextArea hint icon, the hint is displayed on the TextArea
When there is no text in the TextArea
|
void |
Command.setIcon(Image icon)
Sets the icon for the command
|
void |
Label.setIcon(Image icon)
Sets the Label icon, if the icon is unmodified a repaint would not be triggered
|
void |
IconHolder.setIcon(Image icon)
Sets the Label icon, if the icon is unmodified a repaint would not be triggered
|
ComponentSelector |
ComponentSelector.setIcon(Image icon)
Sets the icon for components in found set.
|
protected void |
PeerComponent.setPeerImage(Image i)
The peer image is drawn when the component doesn't exist or during transition
a placeholder image can be placed in the beginning to show something while
the peer is being created asynchronously.
|
void |
Button.setPressedIcon(Image pressedIcon)
Indicates the icon that is displayed on the button when the button is in
pressed state
|
void |
Command.setPressedIcon(Image pressedIcon)
Indicates the icon that is displayed on the button when the button is in
pressed state
|
ComponentSelector |
ComponentSelector.setPressedIcon(Image icon)
|
void |
SelectableIconHolder.setPressedIcon(Image pressedIcon)
Indicates the icon that is displayed on the button when the button is in
pressed state
|
void |
Button.setRolloverIcon(Image rolloverIcon)
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
void |
Command.setRolloverIcon(Image rolloverIcon)
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
ComponentSelector |
ComponentSelector.setRolloverIcon(Image icon)
|
void |
SelectableIconHolder.setRolloverIcon(Image rolloverIcon)
Indicates the icon that is displayed on the button when the button is in
rolled over state
|
void |
Button.setRolloverPressedIcon(Image rolloverPressedIcon)
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
ComponentSelector |
ComponentSelector.setRolloverPressedIcon(Image icon)
|
void |
SelectableIconHolder.setRolloverPressedIcon(Image rolloverPressedIcon)
Indicates the icon that is displayed on the button when the button is in
pressed state and is selected.
|
protected void |
Tabs.setTabSelectedIcon(Component tab,
Image icon)
Sets the selected icon of the tab.
|
void |
Tabs.setTabSelectedIcon(int index,
Image icon)
Sets the selected icon of the tab at the given index
|
protected void |
Tabs.setTabTitle(Component tab,
String title,
Image icon)
Updates the tabs title .
|
void |
Tabs.setTabTitle(String title,
Image icon,
int index)
Updates the information about the tab details
|
void |
Slider.setThumbImage(Image thumbImage)
The thumb image is drawn on top of the current progress
|
static Command |
Dialog.show(String title,
Component body,
Command[] cmds,
int type,
Image icon)
Shows a modal dialog with the given component as its "body" placed in the
center.
|
static Command |
Dialog.show(String title,
Component body,
Command[] cmds,
int type,
Image icon,
long timeout)
Shows a modal dialog with the given component as its "body" placed in the
center.
|
static Command |
Dialog.show(String title,
Component body,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal dialog with the given component as its "body" placed in the
center.
|
static Command |
Dialog.show(String title,
Component body,
Command defaultCommand,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal dialog with the given component as its "body" placed in the
center.
|
static Command |
Dialog.show(String title,
String text,
Command[] cmds,
int type,
Image icon,
long timeout)
Shows a modal prompt dialog with the given title and text.
|
static Command |
Dialog.show(String title,
String text,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal prompt dialog with the given title and text.
|
static Command |
Dialog.show(String title,
String text,
Command defaultCommand,
Command[] cmds,
int type,
Image icon,
long timeout)
Shows a modal prompt dialog with the given title and text.
|
static Command |
Dialog.show(String title,
String text,
Command defaultCommand,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal prompt dialog with the given title and text.
|
static boolean |
Dialog.show(String title,
String text,
int type,
Image icon,
String okText,
String cancelText)
Shows a modal prompt dialog with the given title and text.
|
static boolean |
Dialog.show(String title,
String text,
int type,
Image icon,
String okText,
String cancelText,
long timeout)
Shows a modal prompt dialog with the given title and text.
|
void |
Graphics.tileImage(Image img,
int x,
int y,
int w,
int h)
Allows an implementation to optimize image tiling rendering logic
|
Constructor and Description |
---|
Button(Image icon)
Constructs a button with the specified image.
|
Button(Image icon,
String id)
Constructor a button with image and UIID
|
Button(String text,
Image icon)
Constructor a button with text and image
|
Button(String text,
Image icon,
String id)
Constructor a button with text, image and uiid
|
Calendar(Image leftArrowImage,
Image rightArrowImage)
Constructs a calendar with the current date and time with left and right
images set
|
Calendar(long time,
TimeZone tmz,
Image leftArrowImage,
Image rightArrowImage)
Creates a new instance of Calendar set to the given date based on time
since epoch (the java.util.Date convention)
|
CheckBox(Image icon)
Constructs a checkbox with the given icon
|
CheckBox(String text,
Image icon)
Constructs a checkbox with the given text and icon
|
Command(String command,
Image icon)
Creates a new instance of Command
|
Command(String command,
Image icon,
int id)
Creates a new instance of Command
|
Label(Image icon)
Constructs a new label with the specified icon
|
Label(Image icon,
String uiid)
Constructs a new label with the specified icon and UIID
|
Label(String text,
Image icon)
Constructs a new label with the specified icon and text
|
Label(String text,
Image icon,
String uiid)
Constructs a new label with the specified icon text and UIID
|
NavigationCommand(String command,
Image icon)
Creates a new instance of NavigationCommand
|
NavigationCommand(String command,
Image icon,
int id)
Creates a new instance of NavigationCommand
|
RadioButton(Image icon)
Constructs a radio with the given icon
|
RadioButton(String text,
Image icon)
Constructs a radio with the given text and icon
|
RGBImage(Image img)
Converts an image to an RGB image after which the original image can be GC'd
|
Modifier and Type | Class and Description |
---|---|
class |
Timeline
A timeline represents the motions of animation objects
|
Modifier and Type | Method and Description |
---|---|
Image |
Timeline.scaled(int width,
int height)
Returns a scaled version of this image image using the given width and height,
this is a fast algorithm that preserves translucent information.
|
Modifier and Type | Method and Description |
---|---|
static AnimationObject |
AnimationObject.createAnimationImage(Image img,
int x,
int y)
Creates an animation object instance that can define the animation properties for an image
|
static CommonTransitions |
CommonTransitions.createTimeline(Image animation)
Creates a transition using an animated image object (e.g.
|
Modifier and Type | Method and Description |
---|---|
Image |
Style.getBgImage()
Background image for the component
|
Image[] |
DefaultLookAndFeel.getCheckBoxFocusImages()
Deprecated.
Returns the images used to represent the checkbox when focused
|
Image[] |
DefaultLookAndFeel.getCheckBoxImages()
Deprecated.
Returns the images used to represent the checkbox (selected followed by unselected).
|
Image |
StyleParser.ImageInfo.getImage(Resources theme)
Gets the image object that this image info references.
|
Image[] |
LookAndFeel.getMenuIcons()
Deprecated.
Simple getter for the menu icons
|
Image[] |
DefaultLookAndFeel.getRadioButtonFocusImages()
Deprecated.
Returns the images used to represent the radio button when in focused mode
|
Image[] |
DefaultLookAndFeel.getRadioButtonImages()
Deprecated.
Returns the images used to represent the radio button (selected followed by unselected).
|
Image |
UIManager.getThemeImageConstant(String constantName)
Returns a theme constant defined in the resource editor
|
Modifier and Type | Method and Description |
---|---|
CSSBorder |
CSSBorder.backgroundImage(Image... images)
Sets the background image of the border.
|
CSSBorder |
CSSBorder.borderImage(Image borderImage,
double... slicePoints)
Creates a 9-piece image border.
|
static Border |
Border.createHorizonalImageBorder(Image left,
Image right,
Image center)
This is an image border that can only grow horizontally
|
static Border |
Border.createImageBorder(Image top,
Image topLeft,
Image background)
The given images are tiled appropriately across the matching side of the border, rotated and placed
as expected in the four corners.
|
static Border |
Border.createImageBorder(Image top,
Image bottom,
Image left,
Image right,
Image topLeft,
Image topRight,
Image bottomLeft,
Image bottomRight,
Image background)
The given top/bottom/left/right images are tiled appropriately across the matching sides of the border and the corners are placed
as expected in the four corners.
|
static Border |
Border.createImageScaledBorder(Image top,
Image bottom,
Image left,
Image right,
Image topLeft,
Image topRight,
Image bottomLeft,
Image bottomRight,
Image background)
The given top/bottom/left/right images are scaled appropriately across the matching sides of the border and the corners are placed
as expected in the four corners.
|
static Border |
Border.createImageSplicedBorder(Image img,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
The given image is spliced into 9 pieces based on the provided top, right, bottom, and left insets, and the resulting
sub-images are used to form a 9-piece image border via
Border.createImageBorder(com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image) |
static Border |
Border.createVerticalImageBorder(Image top,
Image bottom,
Image center)
This is an image border that can only grow vertically
|
void |
Style.setBgImage(Image bgImage)
Sets the background image for the component
|
void |
Style.setBgImage(Image bgImage,
boolean override)
Sets the background image for the component
|
void |
DefaultLookAndFeel.setCheckBoxFocusImages(Image checkedX,
Image uncheckedX,
Image disabledChecked,
Image disabledUnchecked)
Deprecated.
Sets images for checkbox when in focused mode
|
void |
DefaultLookAndFeel.setCheckBoxImages(Image checkedX,
Image uncheckedX)
Deprecated.
Sets images for checkbox checked/unchecked modes
|
void |
DefaultLookAndFeel.setCheckBoxImages(Image checkedX,
Image uncheckedX,
Image disabledChecked,
Image disabledUnchecked)
Deprecated.
Sets images for checkbox checked/unchecked modes
|
void |
DefaultLookAndFeel.setComboBoxImage(Image picker)
Deprecated.
Sets image for the combo box dropdown drawing
|
void |
Border.setImageBorderSpecialTile(Image tileTop,
Image tileBottom,
Image tileLeft,
Image tileRight,
Component trackComponent)
This method is designed mainly for the purpose of creating an arrow that will track a specific component using the image border
the tile given would be an arrow like image just like the ones used for the top/bottom/left/right images.
|
void |
Border.setImageBorderSpecialTile(Image tileTop,
Image tileBottom,
Image tileLeft,
Image tileRight,
Rectangle trackComponent)
This method is designed mainly for the purpose of creating an arrow that will track a specific component using the image border
the tile given would be an arrow like image just like the ones used for the top/bottom/left/right images.
|
void |
LookAndFeel.setMenuIcons(Image select,
Image cancel,
Image menu)
Deprecated.
Sets globally the Menu icons
|
void |
DefaultLookAndFeel.setRadioButtonFocusImages(Image selected,
Image unselected,
Image disabledSelected,
Image disabledUnselected)
Deprecated.
Sets images for radio button selected/unselected and disabled modes, when the radio button has focus, these are entirely optional
|
void |
DefaultLookAndFeel.setRadioButtonImages(Image selected,
Image unselected)
Deprecated.
Sets images for radio button selected/unselected modes
|
void |
DefaultLookAndFeel.setRadioButtonImages(Image selected,
Image unselected,
Image disabledSelected,
Image disabledUnselected)
Deprecated.
Sets images for radio button selected/unselected modes
|
Constructor and Description |
---|
Style(int fgColor,
int bgColor,
Font f,
byte transparency,
Image im,
byte backgroundType)
Creates a new style with the given attributes
|
Modifier and Type | Method and Description |
---|---|
static void |
Tree.setFolderIcon(Image folderIcon)
Sets the icon for a tree folder
|
static void |
Tree.setFolderOpenIcon(Image folderIcon)
Sets the icon for a tree folder in its expanded state
|
static void |
Tree.setNodeIcon(Image nodeIcon)
Sets the icon for a tree node
|
protected void |
Tree.setNodeIcon(Image icon,
Component node)
Sets the icon for the given node similar in scope to bindNodeListener
|
Modifier and Type | Method and Description |
---|---|
static Image |
Effects.dropshadow(Image source,
int blurRadius,
float opacity)
Generates a shadow for the source image and returns either the shadow itself or the image merged with the
shadow.
|
static Image |
Effects.dropshadow(Image source,
int blurRadius,
float opacity,
int xDistance,
int yDistance)
Generates a shadow for the source image and returns a new larger image containing the shadow
|
static Image |
Effects.gaussianBlurImage(Image image,
float radius)
Create a blur image from the given image.
|
Image |
Resources.getImage(String id)
Returns the image resource from the file
|
static Image |
Effects.reflectionImage(Image source)
Takes the given image and appends an effect of reflection below it that
is similar to the way elements appear in water beneath them.
|
static Image |
Effects.reflectionImage(Image source,
float mirrorRatio,
int alphaRatio)
Takes the given image and appends an effect of reflection below it that
is similar to the way elements appear in water beneath them.
|
static Image |
Effects.reflectionImage(Image source,
float mirrorRatio,
int alphaRatio,
int spacing)
Takes the given image and appends an effect of reflection below it that
is similar to the way elements appear in water beneath them.
|
static Image |
Effects.squareShadow(int width,
int height,
int blurRadius,
float opacity)
Generates a square shadow and returns it
|
static Image |
Effects.verticalPerspective(Image i,
float topScaleRatio,
float bottomScaleRatio,
float verticalShrink)
Skews an image in a faux perspective transform on the vertical axis, this is effectively a fast scale
algorithm that both shrinks the image vertically and reduces the width
|
Modifier and Type | Method and Description |
---|---|
protected Command |
UIBuilder.createCommand(String commandName,
Image icon,
int commandId,
String action)
Creates a command instance.
|
static Image |
Effects.dropshadow(Image source,
int blurRadius,
float opacity)
Generates a shadow for the source image and returns either the shadow itself or the image merged with the
shadow.
|
static Image |
Effects.dropshadow(Image source,
int blurRadius,
float opacity,
int xDistance,
int yDistance)
Generates a shadow for the source image and returns a new larger image containing the shadow
|
static Image |
Effects.gaussianBlurImage(Image image,
float radius)
Create a blur image from the given image.
|
static Image |
Effects.reflectionImage(Image source)
Takes the given image and appends an effect of reflection below it that
is similar to the way elements appear in water beneath them.
|
static Image |
Effects.reflectionImage(Image source,
float mirrorRatio,
int alphaRatio)
Takes the given image and appends an effect of reflection below it that
is similar to the way elements appear in water beneath them.
|
static Image |
Effects.reflectionImage(Image source,
float mirrorRatio,
int alphaRatio,
int spacing)
Takes the given image and appends an effect of reflection below it that
is similar to the way elements appear in water beneath them.
|
void |
ImageIO.save(Image img,
OutputStream response,
String format,
float quality)
Saves an image object to the given format
|
protected abstract void |
ImageIO.saveImage(Image img,
OutputStream response,
String format,
float quality)
Saves an image object to the given format
|
static Image |
Effects.verticalPerspective(Image i,
float topScaleRatio,
float bottomScaleRatio,
float verticalShrink)
Skews an image in a faux perspective transform on the vertical axis, this is effectively a fast scale
algorithm that both shrinks the image vertically and reduces the width
|
Modifier and Type | Method and Description |
---|---|
static Image |
Validator.getDefaultValidationFailedEmblem()
The emblem that will be drawn on top of the component to indicate the validation failure
|
Image |
Validator.getValidationFailedEmblem()
The emblem that will be drawn on top of the component to indicate the validation failure
|
Modifier and Type | Method and Description |
---|---|
static void |
Validator.setDefaultValidationFailedEmblem(Image aDefaultValidationFailedEmblem)
The emblem that will be drawn on top of the component to indicate the validation failure
|
void |
Validator.setValidationFailedEmblem(Image validationFailedEmblem)
The emblem that will be drawn on top of the component to indicate the validation failure
|
Copyright © 2022. All rights reserved.