| 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.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.geom |
Contains classes related to geometry locations and calculations such as
rectangle and size
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
ChartComponent.chartToScreenShape(Shape s)
Converts a screen coordinate spaced shape to the same shape in the chart coordinate space
|
Shape |
ChartComponent.screenToChartShape(Shape s)
Converts a chart coordinate spaced shape to the same shape in the screen coordinate space
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
ChartComponent.chartToScreenShape(Shape s)
Converts a screen coordinate spaced shape to the same shape in the chart coordinate space
|
Shape |
ChartComponent.screenToChartShape(Shape s)
Converts a chart coordinate spaced shape to the same shape in the screen coordinate space
|
void |
ChartComponent.zoomToShapeInChartCoords(Shape s)
Zooms the view port to show a specified shape.
|
void |
ChartComponent.zoomToShapeInChartCoords(Shape s,
int duration)
Zooms the view port to show a specified shape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Canvas.drawPath(Shape p,
Paint paint)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
PieMapper.getSegmentShape(int dataIndex) |
Shape |
PieChart.getSegmentShape(int pointIndex)
Gets the shape of a pie segment given its point index.
|
Shape |
PieSegment.getShape(float cX,
float cY,
float radius) |
| Modifier and Type | Method and Description |
|---|---|
Image |
CodenameOneImplementation.createImage(Shape shape,
Stroke stroke,
int color) |
void |
CodenameOneImplementation.drawShape(Object graphics,
Shape shape,
Stroke stroke)
Draws outline of shape on the given graphics context.
|
void |
CodenameOneImplementation.fillShape(Object graphics,
Shape shape)
Fills the given shape in the specified graphics context using the graphics context's
currently selected color and alpha.
|
void |
CodenameOneImplementation.setClip(Object graphics,
Shape shape)
Clips the Graphics context to the Shape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Graphics.drawShape(Shape shape,
Stroke stroke)
Draws a outline shape inside the specified bounding box.
|
void |
Graphics.fillShape(Shape shape)
Fills the given shape using the current alpha and color settings.
|
void |
Graphics.setClip(Shape shape)
Clips the Graphics context to the Shape.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GeneralPath
A general geometric path, consisting of any number of subpaths constructed
out of straight lines and cubic or quadratic Bezier curves.
|
class |
Rectangle
Represents a Rectangle position (x, y) and
Dimension (width, height),
this is useful for measuring coordinates within the application. |
class |
Rectangle2D
Represents a Rectangle position (x, y) and
Dimension (width, height),
this is useful for measuring coordinates within the application. |
| Modifier and Type | Method and Description |
|---|---|
Shape |
GeneralPath.createTransformedShape(Transform m)
Returns a shape formed by transforming the current shape with the provided
transform.
|
Shape |
Rectangle2D.intersection(Rectangle rect) |
Shape |
Shape.intersection(Rectangle rect)
Returns the shape formed by the intersection of this shape and the provided
rectangle.
|
Shape |
GeneralPath.intersection(Rectangle rect)
{Returns the shape formed by the intersection of this shape and the provided
rectangle.}
|
| Modifier and Type | Method and Description |
|---|---|
void |
GeneralPath.append(Shape shape,
boolean connect)
Appends the segments of a Shape to the path.
|
boolean |
GeneralPath.equals(Shape shape,
Transform t) |
void |
GeneralPath.intersect(Shape shape)
Resets this path to be the intersection of itself with the given shape.
|
void |
GeneralPath.setShape(Shape s,
Transform t)
Sets this path to be a copy of the provided shape, but with the provided
transform applied to it.
|
| Constructor and Description |
|---|
GeneralPath(Shape shape)
Constructs a GeneralPath from an arbitrary shape object.
|
Copyright © 2022. All rights reserved.