| Package | Description |
|---|---|
| com.codename1.charts |
The main ChartComponent Package
|
| com.codename1.charts.compat |
This package contains compatibility classes for internal use
|
| com.codename1.charts.views |
Provides the classes that handle the actual rendering / drawing of the charts, based on the provided model and renderer.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.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.list |
Lists are highly customizable and serve as the basis for
ComboBox and
other components (such as carousels etc) they employ a similar MVC approach to
Swing including the renderer pattern, notice that we strongly
discourage usage of lists...ListCellRenderer
allows us to customize the appearance of a list entry, it works as a
"rubber stamp" by drawing the rendered component and discarding its state thus
allowing very large lists with very little component state overhead. |
| com.codename1.ui.painter |
Painter allows us to draw arbitrary elements
of graphics from plain/scaled/tiled images to gradients and pretty
much any form of graphic drawing we can imagine. |
| 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.scene |
This package provides a light-weight scene graph for Codename One.
|
| 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 |
|---|---|
void |
ChartUtil.paintChart(Graphics g,
AbstractChart chart,
Rectangle bounds,
int absX,
int absY)
Draws the given chart onto the given graphics
|
| Modifier and Type | Field and Description |
|---|---|
Rectangle |
Canvas.bounds
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Canvas.getClipBounds(Rectangle mRect)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Rectangle |
XYChart.getScreenR() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
XYChart.setScreenR(Rectangle screenR) |
| Modifier and Type | Method and Description |
|---|---|
void |
InteractionDialog.showPopupDialog(Rectangle rect)
A popup dialog is shown with the context of a component and its selection.
|
void |
InteractionDialog.showPopupDialog(Rectangle rect,
boolean bias)
A popup dialog is shown with the context of a component and its selection.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
CodenameOneImplementation.getClipRect(Object graphics)
Returns the internal clipping rectangle.
|
Rectangle |
CodenameOneImplementation.getDisplaySafeArea(Rectangle rect)
This method returns a rectangle defining the "safe" area of the display, which excludes
areas on the screen that are covered by notches, task bars, rounded corners, etc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.clipRect(Object graphics,
Rectangle rect)
Changes the current clipping rectangle to subset the current clipping with
the given clipping.
|
Rectangle |
CodenameOneImplementation.getDisplaySafeArea(Rectangle rect)
This method returns a rectangle defining the "safe" area of the display, which excludes
areas on the screen that are covered by notches, task bars, rounded corners, etc.
|
void |
CodenameOneImplementation.setClipRect(Object graphics,
Rectangle rect)
Installs a new clipping rectangle
|
void |
CodenameOneImplementation.share(String text,
String image,
String mimeType,
Rectangle sourceRect)
Share the required information using the platform sharing services.
|
| Modifier and Type | Method and Description |
|---|---|
protected Rectangle |
Component.getBounds()
Returns the component bounds which is sometimes more convenient than invoking
getX/Y/Width/Height.
|
Rectangle |
TextSelection.Span.getBounds()
Gets the bounds of the span.
|
Rectangle |
Component.getBounds(Rectangle rect)
Returns the bounds of this component in the provided Rectangle.
|
Rectangle |
Component.getDirtyRegion()
gets the Component dirty region, this method is for internal use only and SHOULD NOT be invoked by user code.
|
Rectangle |
Display.getDisplaySafeArea(Rectangle rect)
Gets the display safe area as a rectangle.
|
Rectangle |
Form.getSafeArea()
This method returns a rectangle defining the "safe" area of the display, which excludes
areas on the screen that are covered by notches, task bars, rounded corners, etc.
|
Rectangle |
Component.getSelectedRect()
Returns the component bounds with absolute screen coordinates, for components that include an internal selection behavior
and are not containers (currently only List) this method allows returning the position of the selection
itself which is useful for things such as the popup dialog and similar UI's that need to reference the
position of the selection externally
|
Rectangle |
ComboBox.getSelectedRect()
Returns the component bounds with absolute screen coordinates, for components that include an internal selection behavior
and are not containers (currently only List) this method allows returning the position of the selection
itself which is useful for things such as the popup dialog and similar UI's that need to reference the
position of the selection externally
|
Rectangle |
List.getSelectedRect()
Returns the component bounds with absolute screen coordinates, for components that include an internal selection behavior
and are not containers (currently only List) this method allows returning the position of the selection
itself which is useful for things such as the popup dialog and similar UI's that need to reference the
position of the selection externally
|
protected Rectangle |
Component.getVisibleBounds()
Returns the component bounds for scrolling which might differ from the getBounds for large components
e.g.
|
protected Rectangle |
ComboBox.getVisibleBounds()
Returns the component bounds for scrolling which might differ from the getBounds for large components
e.g.
|
protected Rectangle |
List.getVisibleBounds()
Returns the component bounds for scrolling which might differ from the getBounds for large components
e.g.
|
Rectangle |
Component.getVisibleBounds(Rectangle rect)
Returns the component bounds for scrolling which might differ from the getBounds for large components
into the provided rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Component.getBounds(Rectangle rect)
Returns the bounds of this component in the provided Rectangle.
|
Rectangle |
Display.getDisplaySafeArea(Rectangle rect)
Gets the display safe area as a rectangle.
|
TextSelection.Span |
TextSelection.Span.getIntersection(Rectangle bounds)
Obtains an intersection span including only the characters that intersect the given rectangle.
|
TextSelection.Span |
TextSelection.Span.getIntersection(Rectangle bounds,
boolean withFlow)
Obtains an intersection span including only the characters that intersect the given rectangle.
|
TextSelection.Spans |
TextSelection.Spans.getIntersection(Rectangle bounds,
boolean b) |
TextSelection.Spans |
TextSelection.TextSelectionSupport.getTextSelectionForBounds(TextSelection sel,
Rectangle bounds)
Gets the spans that should be selected for the given bounds.
|
Rectangle |
Component.getVisibleBounds(Rectangle rect)
Returns the component bounds for scrolling which might differ from the getBounds for large components
into the provided rectangle.
|
TextSelection.Char |
TextSelection.newChar(int pos,
Rectangle bounds)
Creates a new Char box
|
void |
Painter.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
void |
List.scrollRectToVisible(Rectangle rect)
Makes sure the selected index is visible if it is not in the current view
rect the list will scroll so it fits within
|
protected void |
Component.scrollRectToVisible(Rectangle rect,
Component coordinateSpace)
Makes sure the component is visible in the scroll if this container
is scrollable
|
void |
Component.setDirtyRegion(Rectangle dirty)
sets the Component dirty region, this method is for internal use only and SHOULD NOT be invoked by user code.
|
ComponentSelector |
ComponentSelector.setDirtyRegion(Rectangle rect)
|
void |
Display.share(String text,
String image,
String mimeType,
Rectangle sourceRect)
Share the required information using the platform sharing services.
|
static void |
CN.share(String text,
String image,
String mimeType,
Rectangle sourceRect)
Share the required information using the platform sharing services.
|
Command |
Dialog.showPopupDialog(Rectangle rect)
A popup dialog is shown with the context of a component and its selection, it is disposed seamlessly if the back button is pressed
or if the user touches outside its bounds.
|
| Constructor and Description |
|---|
Char(int pos,
Rectangle bounds)
Creates a new Char
|
| Modifier and Type | Method and Description |
|---|---|
void |
Timeline.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
| Modifier and Type | Method and Description |
|---|---|
static Rectangle |
Rectangle.createFromPool(int x,
int y,
int w,
int h)
Creates a rectangle from a Rectangle object pool.
|
Rectangle |
Shape.getBounds()
Returns the bounding rectangle for the shape.
|
Rectangle |
Rectangle.getBounds()
{Returns the bounding rectangle for the shape.}
|
Rectangle |
GeneralPath.getBounds()
Returns the path's bounding box.
|
Rectangle |
Rectangle2D.getBounds()
{Returns the bounding rectangle for the shape.}
|
Rectangle |
Rectangle.intersection(int rX,
int rY,
int rW,
int rH)
Returns a rectangle that intersects the given rectangle with this rectangle.
|
Rectangle |
Rectangle.intersection(Rectangle r)
Returns a rectangle that intersects the given rectangle with this rectangle
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Rectangle.contains(Rectangle rect)
Checks whether or not this Rectangle entirely contains the specified
Rectangle.
|
void |
GeneralPath.getBounds(Rectangle out)
Sets the coordinates of the provided rectangle to the bounding box of this path.
|
boolean |
GeneralPath.intersect(Rectangle rect)
Sets the current path to the intersection of itself and the provided rectangle.
|
static void |
Rectangle.intersection(int rrX,
int rrY,
int rrW,
int rrH,
int rtx1,
int rty1,
int rtw2,
int rth2,
Rectangle dest)
Returns a rectangle that intersects the given rectangle with this rectangle
|
Shape |
Shape.intersection(Rectangle rect)
Returns the shape formed by the intersection of this shape and the provided
rectangle.
|
Rectangle |
Rectangle.intersection(Rectangle r)
Returns a rectangle that intersects the given rectangle with this rectangle
|
Shape |
GeneralPath.intersection(Rectangle rect)
{Returns the shape formed by the intersection of this shape and the provided
rectangle.}
|
Shape |
Rectangle2D.intersection(Rectangle rect) |
void |
Rectangle.intersection(Rectangle input,
Rectangle output) |
boolean |
Rectangle.intersects(Rectangle rect)
Determines whether or not this Rectangle and the specified Rectangle
location (x, y) with the specified dimensions (width, height),
intersect.
|
static void |
Rectangle.recycle(Rectangle r)
Returns the given rectangle to the object pool.
|
void |
Rectangle.setBounds(Rectangle bounds)
Sets the bounds of this rectangle.
|
void |
GeneralPath.setRect(Rectangle r,
Transform t)
Sets this path to be a rectangle with the provided bounds, but with
the given transform applied to it.
|
| Constructor and Description |
|---|
Rectangle(Rectangle rect)
A copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent)
Returns a reference box within which insets of the given component are calculated.
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Component cmp)
Deprecated.
Use {@link #getReferenceBox(com.codename1.ui.Container)
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Component cmp2,
Rectangle box)
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Rectangle box)
Returns a reference box within which insets of the given component are calculated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
GridBagLayout.adjustForGravity(GridBagConstraints constraints,
Rectangle r) |
protected void |
GridBagLayout.AdjustForGravity(GridBagConstraints constraints,
Rectangle r) |
LayeredLayout.LayeredLayoutConstraint.Inset |
LayeredLayout.LayeredLayoutConstraint.Inset.changeUnitsTo(byte unit,
Rectangle refBox) |
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Component cmp2,
Rectangle box)
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Rectangle box)
Returns a reference box within which insets of the given component are calculated.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
ContainerList.getSelectedRect()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BackgroundPainter.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
void |
PainterChain.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
| Modifier and Type | Method and Description |
|---|---|
protected Rectangle |
Border.getTrackComponent()
The track component is an area to which an arrow based border should point at.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
Border.setTrackComponent(Rectangle trackComponent)
In the case of an arrow border the track component lets us track the position
to which the border is pointing
|
| Modifier and Type | Field and Description |
|---|---|
Property<Rectangle,Node> |
Node.paintingRect
Deprecated.
The painting rectangle, into which the renderer should be painted inside the
node's local bounds.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TextPainter.paint(Graphics g,
Rectangle bounds,
Node node)
Paints the text onto the provided graphics context.
|
void |
NodePainter.paint(Graphics g,
Rectangle bounds,
Node node)
Deprecated.
Paints node content in the given bounding rect on the provided Graphics context for the given node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GlassTutorial.paint(Graphics g,
Rectangle rect)
Deprecated.
Draws inside the given rectangle clipping area.
|
Copyright © 2021. All rights reserved.