| Package | Description |
|---|---|
| com.codename1.charts |
The main ChartComponent Package
|
| 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.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.providers |
These are the map providers, currently http://www.openstreetmap.org/ is supported.
|
| 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.geom |
Contains classes related to geometry locations and calculations such as
rectangle and size
|
| com.codename1.ui.layouts |
Layout managers allow a
Container to
arrange its components by a set of rules that adapt to specific
densities (ppi - pixels per inch). |
| com.codename1.ui.layouts.mig | |
| 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.spinner |
Spinners allows picking of simple sequential values similarly to combo boxes but of a much wider value set.
|
| com.codename1.ui.table |
Table component for editing and viewing tabular data and arranging Codename One components in a tabular form
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
ChartComponent.calcPreferredSize() |
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
ImageViewer.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
InfiniteProgress.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
OnOffSwitch.calcPreferredSize()
Deprecated.
Calculates the preferred size based on component content.
|
protected Dimension |
MediaPlayer.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
Switch.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
ScaleImageButton.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
FloatingActionButton.calcPreferredSize() |
protected Dimension |
ScaleImageLabel.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
SignatureComponent.calcPreferredSize()
Calculates the preferred size of the button itself (not the signature canvas...
|
protected Dimension |
AudioRecorderComponent.calcPreferredSize() |
| Modifier and Type | Method and Description |
|---|---|
String |
FaceBookAccess.getImageURL(String id,
Dimension toScale)
Returns the URL for a given image
|
void |
FaceBookAccess.getPhotoThumbnail(String photoId,
Label label,
Dimension toScale,
boolean tempStorage)
Gets the photo thumbnail of a Photo Object
|
void |
FaceBookAccess.getPicture(String id,
ActionListener callback,
Dimension toScale,
boolean tempStorage)
Gets the picture of the given facebook object id
|
void |
FaceBookAccess.getPicture(String id,
Component targetList,
int targetOffset,
String targetKey,
Dimension toScale,
boolean tempStorage)
Gets the picture of the given facebook object id and stores it in the given List in the offset index
This assumes the GenericListCellRenderer style of
list which relies on a hashtable based model approach.
|
void |
FaceBookAccess.getPicture(String id,
Label label,
Dimension toScale,
boolean tempStorage)
Gets the picture of the given facebook object id
|
EncodedImage |
FaceBookAccess.getPictureAndWait(String id,
Dimension toScale)
Gets the picture of the given facebook object id
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ImageDownloadService.createImageToFileSystem(String url,
Component targetList,
int targetOffset,
String targetKey,
String destFile,
Dimension toScale,
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,
List targetList,
int targetOffset,
String targetKey,
String destFile,
Dimension toScale)
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,
Dimension scale,
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,
Dimension toScale)
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
|
static void |
ImageDownloadService.createImageToStorage(String url,
Label l,
String cacheId,
Dimension toScale,
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
|
static void |
ImageDownloadService.createImageToStorage(String url,
List targetList,
int targetOffset,
String targetKey,
String cacheId,
Dimension scale)
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
MapComponent.calcPreferredSize()
Deprecated.
Calculates the preferred size based on component content.
|
Dimension |
Tile.dimension()
Gets the tile dimension
|
| Constructor and Description |
|---|
ProxyHttpTile(Dimension tileSize,
BoundingBox bbox,
String url)
Creates an Http Tile
|
Tile(Dimension dimension,
BoundingBox boundingBox,
Image image)
Creates a new Tile.
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
MapProvider.tileSize()
Gets the tile size
|
| Modifier and Type | Method and Description |
|---|---|
void |
MapProvider.tileSize(Dimension size)
Request map to provide tiles of specific sizes.
|
| Constructor and Description |
|---|
MapProvider(Projection p,
Dimension tileSize)
Creates a new MapProvider
|
TiledProvider(String url,
Projection projection,
Dimension tileSize)
Creates a new Tiled provider
|
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
Label.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
List.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
PeerComponent.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
MenuBar.calcPreferredSize()
Prevents scaling down of the menu when there is no text on the menu bar
|
protected Dimension |
TextArea.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
Component.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
RadioButton.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
Slider.calcPreferredSize()
Return the size we would generally like for the component
|
protected Dimension |
TextField.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
Container.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
ComboBox.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
CommonProgressAnimations.CircleProgress.calcPreferredSize() |
protected Dimension |
CommonProgressAnimations.EmptyAnimation.calcPreferredSize() |
protected Dimension |
CommonProgressAnimations.LoadingTextAnimation.calcPreferredSize() |
protected Dimension |
InterFormContainer.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
InputComponent.calcPreferredSize() |
protected Dimension |
CheckBox.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
Button.calcPreferredSize()
Calculates the preferred size based on component content.
|
protected Dimension |
PeerComponent.calcScrollSize()
Method that can be overriden to represent the actual size of the component
when it differs from the desireable size for the viewport
|
protected Dimension |
TextArea.calcScrollSize()
Method that can be overriden to represent the actual size of the component
when it differs from the desireable size for the viewport
|
protected Dimension |
Component.calcScrollSize()
Method that can be overriden to represent the actual size of the component
when it differs from the desireable size for the viewport
|
Dimension |
Dialog.getDialogPreferredSize()
Returns the preferred size of the dialog, this allows developers to position a dialog
manually in arbitrary positions.
|
Dimension |
Component.getPreferredSize()
Returns the Component Preferred Size, there is no guarantee the Component will
be sized at its Preferred Size.
|
Dimension |
Component.getScrollDimension()
Returns the Components dimension in scrolling, this is very similar to the
preferred size aspect only it represents actual scrolling limits.
|
static Dimension |
Component.parsePreferredSize(String preferredSize,
Dimension baseSize)
Parses the preferred size given as a string
|
| Modifier and Type | Method and Description |
|---|---|
static Dimension |
Component.parsePreferredSize(String preferredSize,
Dimension baseSize)
Parses the preferred size given as a string
|
void |
Component.setPreferredSize(Dimension d)
Deprecated.
this method shouldn't be used, use sameWidth/Height, padding, margin or override calcPeferredSize
to reach similar functionality
|
ComponentSelector |
ComponentSelector.setPreferredSize(Dimension dim)
|
void |
Component.setScrollSize(Dimension d)
Set the size for the scroll area
|
ComponentSelector |
ComponentSelector.setScrollSize(Dimension size)
|
void |
Component.setSize(Dimension d)
Sets the Component size, this method is exposed for the purpose of
external layout managers and should not be invoked directly.
If a user wishes to affect the component size, setPreferredSize should be used. |
ComponentSelector |
ComponentSelector.setSize(Dimension size)
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
Timeline.getSize()
Returns the pixel based unscaled dimentions of this timeline
|
| Modifier and Type | Method and Description |
|---|---|
static Timeline |
Timeline.createTimeline(int duration,
AnimationObject[] animations,
Dimension size)
Create a new timeline animation
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
Rectangle.getSize()
Return the dimension of the rectangle
|
| Constructor and Description |
|---|
Dimension(Dimension d)
Creates a new instance of Dimension with a predefine dimension
|
Rectangle(int x,
int y,
Dimension size)
Creates a new instance of Rectangle at position (x, y) and with
predefine dimension
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
BorderLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
CoordinateLayout.getPreferredSize(Container parent)
Deprecated.
Returns the container preferred size
|
Dimension |
GroupLayout.getPreferredSize(Container parent)
Returns the preferred size for the specified container.
|
Dimension |
TextModeLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
abstract Dimension |
Layout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
GridBagLayout.getPreferredSize(Container parent) |
Dimension |
BoxLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
FlowLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
GridLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
LayeredLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
| Constructor and Description |
|---|
CoordinateLayout(Dimension d)
Deprecated.
This constructor accepts the relative width and height used to define the
aspect ratio of the Container
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
MigLayout.getPreferredSize(Container parent)
Deprecated.
|
Dimension |
MigLayout.maximumLayoutSize(Container parent)
Deprecated.
|
Dimension |
MigLayout.minimumLayoutSize(Container parent)
Deprecated.
|
Dimension |
MigLayout.preferredLayoutSize(Container parent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
DefaultLookAndFeel.getButtonPreferredSize(Button b)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getButtonPreferredSize(Button b)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getCheckBoxPreferredSize(Button cb)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getCheckBoxPreferredSize(Button cb)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getComboBoxPreferredSize(List cb)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getComboBoxPreferredSize(List box)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getLabelPreferredSize(Label l)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getLabelPreferredSize(Label l)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getListPreferredSize(List l)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getListPreferredSize(List l)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getRadioButtonPreferredSize(Button rb)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getRadioButtonPreferredSize(Button rb)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getTextAreaSize(TextArea ta,
boolean pref)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getTextAreaSize(TextArea ta,
boolean pref)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getTextFieldPreferredSize(TextArea ta)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getTextFieldPreferredSize(TextArea ta)
Deprecated.
Calculate the preferred size of the component
|
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
BaseSpinner.calcPreferredSize()
Calculates the preferred size based on component content.
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
TableLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
| Modifier and Type | Method and Description |
|---|---|
protected Dimension |
Tree.calcPreferredSize()
Calculates the preferred size based on component content.
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
ImageIO.getImageSize(String imageFilePath)
Returns the image size in pixels
|
Copyright © 2021. All rights reserved.