APIdia Launch Partner
Top Inners Fields Constructors Methods
com.badlogic.gdx.tools.flame

public Class Chart

extends JPanel
Class Inheritance
Imports
java.awt.BasicStroke, .Color, .Font, .FontMetrics, .Graphics, .Graphics2D, .GridBagLayout, java.awt.event.MouseAdapter, .MouseEvent, .MouseMotionListener, java.util.ArrayList, javax.swing.JPanel

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv boolean
pack-priv int
pack-priv int
pack-priv boolean
pack-priv int
pack-priv boolean
pack-priv int
private int
pack-priv int
private static final int
private static final int
pack-priv ArrayList<Chart.Point>
pack-priv String

Constructor Summary

AccessConstructor and Description
public
Chart(String title)

Method Summary

Modifier and TypeMethod and Description
public void
addPoint(float x, float y)

private String
axisLabel(float value)

public float[]
public float[]
public boolean
protected void
paintComponent(Graphics graphics)

Overrides javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

pack-priv Chart.Point
pixelToPoint(float x, float y)

public void
pack-priv Chart.Point
public void
setExpanded(boolean isExpanded)

public void
public void
setValues(float[] x, float[] y)

private String
valueLabel(float value)

Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

chartHeightback to summary
pack-priv int chartHeight
chartWidthback to summary
pack-priv int chartWidth
chartXback to summary
pack-priv int chartX
chartYback to summary
pack-priv int chartY
isExpandedback to summary
pack-priv boolean isExpanded
maxXback to summary
pack-priv int maxX
maxYback to summary
pack-priv int maxY
moveAllback to summary
pack-priv boolean moveAll
moveAllPrevYback to summary
pack-priv int moveAllPrevY
moveAllProportionallyback to summary
pack-priv boolean moveAllProportionally
movingIndexback to summary
pack-priv int movingIndex
numberHeightback to summary
private int numberHeight
overIndexback to summary
pack-priv int overIndex
POINT_SIZEback to summary
private static final int POINT_SIZE
POINT_SIZE_EXPANDEDback to summary
private static final int POINT_SIZE_EXPANDED
pointsback to summary
pack-priv ArrayList<Chart.Point> points
titleback to summary
pack-priv String title

Constructor Detail

Chartback to summary
public Chart(String title)

Method Detail

addPointback to summary
public void addPoint(float x, float y)
axisLabelback to summary
private String axisLabel(float value)
getValuesXback to summary
public float[] getValuesX()
getValuesYback to summary
public float[] getValuesY()
isExpandedback to summary
public boolean isExpanded()
paintComponentback to summary
protected void paintComponent(Graphics graphics)

Overrides javax.swing.JComponent.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

pixelToPointback to summary
pack-priv Chart.Point pixelToPoint(float x, float y)
pointsChangedback to summary
public void pointsChanged()
pointToPixelback to summary
pack-priv Chart.Point pointToPixel(Chart.Point point)
setExpandedback to summary
public void setExpanded(boolean isExpanded)
setTitleback to summary
public void setTitle(String title)
setValuesback to summary
public void setValues(float[] x, float[] y)
valueLabelback to summary
private String valueLabel(float value)
com.badlogic.gdx.tools.flame back to summary

public Class Chart.Point

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public float
x

public float
y

Constructor Summary

AccessConstructor and Description
public
public
Point(float x, float y)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

xback to summary
public float x
yback to summary
public float y

Constructor Detail

Pointback to summary
public Point()
Pointback to summary
public Point(float x, float y)