| Package | Description |
|---|---|
| com.codename1.charts |
The main ChartComponent Package
|
| com.codename1.charts.compat |
This package contains compatibility classes for internal use
|
| com.codename1.charts.transitions | |
| 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.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.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.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.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.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 |
ChartComponent.paint(Graphics g)
Paints the chart.
|
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 |
|---|---|
Graphics |
Canvas.g
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SeriesTransition.paint(Graphics g) |
| Modifier and Type | Method and Description |
|---|---|
void |
InfiniteProgress.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
Switch.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
ImageViewer.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
OnOffSwitch.paint(Graphics g)
Deprecated.
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
protected void |
ImageViewer.paintBackground(Graphics g)
This method paints the Component background, it should be overriden
by subclasses to perform custom background drawing.
|
| Modifier and Type | Method and Description |
|---|---|
protected Graphics |
CodenameOneImplementation.getCodenameOneGraphics()
Returns a graphics object for use by the painting
|
Graphics |
CodenameOneImplementation.getComponentScreenGraphics(Component cmp,
Graphics currentContext)
This method allows customizing/creating a graphics context per component which is useful for
some elaborate implementations of Codename One.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.afterComponentPaint(Component c,
Graphics g)
Called after internal paint of component finishes
|
void |
CodenameOneImplementation.beforeComponentPaint(Component c,
Graphics g)
Called before internal paint of component starts
|
Graphics |
CodenameOneImplementation.getComponentScreenGraphics(Component cmp,
Graphics currentContext)
This method allows customizing/creating a graphics context per component which is useful for
some elaborate implementations of Codename One.
|
protected void |
CodenameOneImplementation.paintOverlay(Graphics g)
Allows for painting an overlay on top of the implementation for notices during
testing etc.
|
void |
CodenameOneImplementation.setCodenameOneGraphics(Graphics g)
Installs the Codename One graphics object into the implementation
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ProxyHttpTile.paint(Graphics g)
Paints the tile on the Graphics Object
|
boolean |
Tile.paint(Graphics g)
Paints the tile on the Graphics Object
|
void |
Tile.paint(Graphics g,
int x,
int y)
Paints the tile on the Graphics Object translated to the given x, y,
This method paints the tile image if available or will call
paintTileLoading
|
void |
MapComponent.paintBackground(Graphics g)
Deprecated.
This method paints the Component background, it should be overriden
by subclasses to perform custom background drawing.
|
void |
Tile.paintTileLoading(Graphics g)
This method paints a "tile loading" on the Graphics if
boolean paint(Graphics g) returned false.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Layer.paint(Graphics g,
Tile screenTile)
Paints the Layer on the given Graphics
|
void |
PointsLayer.paint(Graphics g,
Tile tile)
Paints the Layer on the given Graphics
|
void |
LinesLayer.paint(Graphics g,
Tile screenTile)
Paints the Layer on the given Graphics
|
void |
PointLayer.paint(Graphics g,
Tile tile)
Paints the Layer on the given Graphics
|
protected void |
LinesLayer.paintSegment(Graphics g,
Coord[] segment,
Tile tile)
Paint a segment.
|
protected void |
ArrowLinesLayer.paintSegment(Graphics g,
Coord[] segment,
Tile tile)
Paints arrows on each segment.
|
| Modifier and Type | Method and Description |
|---|---|
Graphics |
RGBImage.getGraphics()
This method is unsupported in this image type
|
Graphics |
EncodedImage.getGraphics()
If this is a mutable image a graphics object allowing us to draw on it
is returned.
|
Graphics |
Image.getGraphics()
If this is a mutable image a graphics object allowing us to draw on it
is returned.
|
Graphics |
FontImage.getGraphics()
Throws a runtime exception
|
| Modifier and Type | Method and Description |
|---|---|
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
|
protected void |
RGBImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
EncodedImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
Image.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
FontImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
ComponentImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Draws the image.
|
protected void |
DynamicImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
EncodedImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
Image.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
FontImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
ComponentImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
DynamicImage.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected abstract void |
DynamicImage.drawImageImpl(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
This method should be overridden by subclasses to perform the actual drawing of
the image on a graphics context.
|
protected boolean |
Component.isInClippingRegion(Graphics g) |
void |
Button.paint(Graphics g) |
void |
List.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
Component.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
ComboBox.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
TextField.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
Form.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
Container.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
CheckBox.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
TextArea.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
Label.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
CommonProgressAnimations.CircleProgress.paint(Graphics g) |
void |
CommonProgressAnimations.LoadingTextAnimation.paint(Graphics g) |
void |
PeerComponent.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
ComponentSelector |
ComponentSelector.paint(Graphics g)
|
void |
InterFormContainer.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
RadioButton.paint(Graphics g)
This method paints the Component on the screen, it should be overriden
by subclasses to perform custom drawing or invoke the UI API's to let
the PLAF perform the rendering.
|
void |
LinearGradientPaint.paint(Graphics g,
double x,
double y,
double w,
double h)
Painds the linear gradient in the given bounds.
|
void |
Paint.paint(Graphics g,
double x,
double y,
double w,
double h)
Paints in the given bounds.
|
void |
Painter.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
void |
LinearGradientPaint.paint(Graphics g,
Rectangle2D bounds)
Paints linear gradient in the given bounds.
|
void |
Paint.paint(Graphics g,
Rectangle2D bounds)
Paints in the given bounds.
|
protected void |
Component.paintBackground(Graphics g)
This method paints the Component background, it should be overriden
by subclasses to perform custom background drawing.
|
void |
Form.paintBackground(Graphics g)
Exposing the background painting for the benefit of animations
|
protected void |
CommonProgressAnimations.CircleProgress.paintBackground(Graphics g) |
protected void |
CommonProgressAnimations.LoadingTextAnimation.paintBackground(Graphics g) |
protected void |
PeerComponent.paintBackground(Graphics g)
This method paints the Component background, it should be overriden
by subclasses to perform custom background drawing.
|
void |
Component.paintBackgrounds(Graphics g)
This method paints all the parents Components Background.
|
void |
PeerComponent.paintBackgrounds(Graphics g)
This method paints all the parents Components Background.
|
ComponentSelector |
ComponentSelector.paintBackgrounds(Graphics g)
|
protected void |
Component.paintBorder(Graphics g)
Draws the component border if such a border exists.
|
protected void |
PeerComponent.paintBorder(Graphics g)
Draws the component border if such a border exists.
|
protected void |
Component.paintBorderBackground(Graphics g)
Draws the component border background if such a border exists.
|
void |
Component.paintComponent(Graphics g)
Paints this component as a root by going to all the parent components and
setting the absolute translation based on coordinates and scroll status.
|
ComponentSelector |
ComponentSelector.paintComponent(Graphics g)
|
void |
Component.paintComponent(Graphics g,
boolean background)
Paints this component as a root by going to all the parent components and
setting the absolute translation based on coordinates and scroll status.
|
void |
Container.paintComponentBackground(Graphics g)
Paints the background of the component, invoked with the clipping region
and appropriate scroll translation.
|
void |
Slider.paintComponentBackground(Graphics g)
Paint the progress indicator
|
protected void |
Container.paintGlass(Graphics g)
This method can be overriden by a component to draw on top of itself or its children
after the component or the children finished drawing in a similar way to the glass
pane but more refined per component
|
void |
Component.paintIntersectingComponentsAbove(Graphics g)
Deprecated.
For internal use only
|
void |
Component.paintRippleOverlay(Graphics g,
int x,
int y,
int position)
Invoked to draw the ripple effect overlay in Android where the finger of the user causes a growing
circular overlay over time.
|
protected void |
Component.paintScrollbars(Graphics g)
Paints the UI for the scrollbars on the component, this will be invoked only
for scrollable components.
|
protected void |
Form.paintScrollbars(Graphics g) |
protected void |
PeerComponent.paintScrollbars(Graphics g)
Paints the UI for the scrollbars on the component, this will be invoked only
for scrollable components.
|
protected void |
Component.paintScrollbarX(Graphics g)
Paints the UI for the scrollbar on the X axis, this method allows component
subclasses to customize the look of a scrollbar
|
protected void |
PeerComponent.paintScrollbarX(Graphics g)
Paints the UI for the scrollbar on the X axis, this method allows component
subclasses to customize the look of a scrollbar
|
protected void |
Component.paintScrollbarY(Graphics g)
Paints the UI for the scrollbar on the Y axis, this method allows component
subclasses to customize the look of a scrollbar
|
protected void |
PeerComponent.paintScrollbarY(Graphics g)
Paints the UI for the scrollbar on the Y axis, this method allows component
subclasses to customize the look of a scrollbar
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Timeline.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
protected void |
Timeline.drawImage(Graphics g,
Object nativeGraphics,
int x,
int y,
int w,
int h)
Callback invoked internally by Codename One to draw the image/frame onto the display.
|
void |
BubbleTransition.paint(Graphics g) |
abstract void |
Transition.paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
void |
Timeline.paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
void |
CommonTransitions.paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
void |
MorphTransition.paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
void |
Animation.paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
void |
FlipTransition.paint(Graphics g) |
void |
Timeline.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
protected void |
Transition.paintInterformContainers(Graphics g)
Paints all shared InterFormContainers between the source and destination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PainterChain.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
void |
BackgroundPainter.paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultLookAndFeel.drawButton(Graphics g,
Button b)
Deprecated.
this method is no longer used by the implementation, we shifted code away to improve performance
|
abstract void |
LookAndFeel.drawButton(Graphics g,
Button b)
Deprecated.
this method is no longer used by the implementation, we shifted code away to improve performance
|
void |
DefaultLookAndFeel.drawCheckBox(Graphics g,
Button cb)
Deprecated.
Invoked for drawing a checkbox widget
|
abstract void |
LookAndFeel.drawCheckBox(Graphics g,
Button cb)
Deprecated.
Invoked for drawing a checkbox widget
|
void |
DefaultLookAndFeel.drawComboBox(Graphics g,
List cb)
Deprecated.
Invoked for drawing a combo box widget
|
abstract void |
LookAndFeel.drawComboBox(Graphics g,
List cb)
Deprecated.
Invoked for drawing a combo box widget
|
void |
LookAndFeel.drawHorizontalScroll(Graphics g,
Component c,
float offsetRatio,
float blockSizeRatio)
Deprecated.
Draws a horizontal scroll bar in the given component
|
void |
DefaultLookAndFeel.drawLabel(Graphics g,
Label l)
Deprecated.
this method is no longer used by the implementation, we shifted code away to improve performance
|
abstract void |
LookAndFeel.drawLabel(Graphics g,
Label l)
Deprecated.
this method is no longer used by the implementation, we shifted code away to improve performance
|
protected int |
DefaultLookAndFeel.drawLabelText(Graphics g,
Label l,
String text,
int x,
int y,
int textSpaceW)
Deprecated.
Draws the text of a label
|
void |
DefaultLookAndFeel.drawList(Graphics g,
List l)
Deprecated.
Invoked for drawing a list widget
|
abstract void |
LookAndFeel.drawList(Graphics g,
List l)
Deprecated.
Invoked for drawing a list widget
|
void |
DefaultLookAndFeel.drawPullToRefresh(Graphics g,
Component cmp,
boolean taskExecuted)
Deprecated.
Paints the pull to refresh
|
abstract void |
LookAndFeel.drawPullToRefresh(Graphics g,
Component cmp,
boolean taskExecuted)
Deprecated.
Paints the pull to refresh
|
void |
DefaultLookAndFeel.drawRadioButton(Graphics g,
Button rb)
Deprecated.
Invoked for drawing the radio button widget
|
abstract void |
LookAndFeel.drawRadioButton(Graphics g,
Button rb)
Deprecated.
Invoked for drawing the radio button widget
|
void |
DefaultLookAndFeel.drawTextArea(Graphics g,
TextArea ta)
Deprecated.
Draw the given text area
|
abstract void |
LookAndFeel.drawTextArea(Graphics g,
TextArea ta)
Deprecated.
Draw the given text area
|
void |
DefaultLookAndFeel.drawTextField(Graphics g,
TextArea ta)
Deprecated.
Draws the text field without its cursor which is drawn in a separate method
input mode indication can also be drawn using this method.
|
abstract void |
LookAndFeel.drawTextField(Graphics g,
TextArea ta)
Deprecated.
Draws the text field without its cursor which is drawn in a separate method
input mode indication can also be drawn using this method.
|
void |
DefaultLookAndFeel.drawTextFieldCursor(Graphics g,
TextArea ta)
Deprecated.
Draws the cursor of the text field, blinking is handled simply by avoiding
a call to this method.
|
abstract void |
LookAndFeel.drawTextFieldCursor(Graphics g,
TextArea ta)
Deprecated.
Draws the cursor of the text field, blinking is handled simply by avoiding
a call to this method.
|
void |
LookAndFeel.drawVerticalScroll(Graphics g,
Component c,
float offsetRatio,
float blockSizeRatio)
Deprecated.
Draws a vertical scroll bar in the given component
|
void |
Border.paint(Graphics g,
Component c)
Draws the border for the given component, this method is called before a call to
background painting is made.
|
void |
RoundRectBorder.paintBorderBackground(Graphics g,
Component c) |
void |
RoundBorder.paintBorderBackground(Graphics g,
Component c) |
void |
CSSBorder.paintBorderBackground(Graphics g,
Component c)
Has effect when the border demands responsibility for background painting
normally the painter will perform this work but in this case the border might
do it instead.
|
void |
Border.paintBorderBackground(Graphics g,
Component c)
Has effect when the border demands responsibility for background painting
normally the painter will perform this work but in this case the border might
do it instead.
|
void |
LookAndFeel.paintTensileHighlight(Component t,
Graphics g,
boolean top,
int opacity)
Deprecated.
Paints the tensile hightlight image
|
void |
LookAndFeel.setFG(Graphics g,
Component c)
Deprecated.
Sets the foreground color and font for a generic component, reuse-able by most component
drawing code
|
| Modifier and Type | Method and Description |
|---|---|
void |
Scene.paint(Graphics g)
Deprecated.
|
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.
|
void |
Node.render(Graphics g)
Deprecated.
Renders the node onto a graphics context.
|
void |
Node.renderChildren(Graphics g)
Deprecated.
Renders the node's children.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Picker.paint(Graphics g) |
protected void |
BaseSpinner.paintGlass(Graphics g)
This method can be overriden by a component to draw on top of itself or its children
after the component or the children finished drawing in a similar way to the glass
pane but more refined per component
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Table.paintGlass(Graphics g)
This method can be overriden by a component to draw on top of itself or its children
after the component or the children finished drawing in a similar way to the glass
pane but more refined per component
|
| 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.