|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.zfqjava.swing.AbstractChart
public abstract class AbstractChart
AbstractChart provides a abstract chart container.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CENTER_CHART_SIZE_MODE
The chart is displayed in the center if the AbstractChart is
larger than the chart. |
static int |
STRETCH_CHART_SIZE_MODE
The chart within the AbstractChart is stretched or shrunk to
fit the size of the AbstractChart. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
AbstractChart()
|
| Method Summary | |
|---|---|
protected Map |
createRenderingHints()
Creates the RenderingHints for rendering. |
void |
doLayout()
|
Chart |
getChart()
Returns the chart for this container. |
Dimension |
getPreferredSize()
|
Map |
getRenderingHints()
Returns the RenderingHints for rendering. |
int |
getSizeMode()
Returns the AbstractChart size mode in use. |
Tool |
getTool()
Returns the Tool for this chart. |
String |
getToolTipText(MouseEvent event)
|
protected void |
paintComponent(Graphics g)
|
protected void |
setChart(Chart chart)
Sets the chart for this container. |
void |
setRenderingHints(Map hints)
Sets the RenderingHints for rendering. |
void |
setSizeMode(int sizeMode)
Sets the AbstractChart size mode. |
void |
setTool(Tool t)
Sets the Tool for this chart. |
void |
updateUI()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.accessibility.Accessible |
|---|
getAccessibleContext |
| Field Detail |
|---|
public static final int CENTER_CHART_SIZE_MODE
AbstractChart is
larger than the chart. If the chart is larger than
the AbstractChart, the chart is placed in the center of
the AbstractChart and the outside edges are clipped.
getSizeMode(),
setSizeMode(int),
Constant Field Valuespublic static final int STRETCH_CHART_SIZE_MODE
AbstractChart is stretched or shrunk to
fit the size of the AbstractChart.
getSizeMode(),
setSizeMode(int),
Constant Field Values| Constructor Detail |
|---|
protected AbstractChart()
| Method Detail |
|---|
public void updateUI()
updateUI in class JComponentprotected void paintComponent(Graphics g)
paintComponent in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic String getToolTipText(MouseEvent event)
getToolTipText in class JComponentpublic void doLayout()
doLayout in class Containerpublic Chart getChart()
setChart(com.zfqjava.chart.Chart)protected void setChart(Chart chart)
chart - the chartgetChart()public void setRenderingHints(Map hints)
hints - the RenderingHints for renderinggetRenderingHints()public Map getRenderingHints()
setRenderingHints(java.util.Map)protected Map createRenderingHints()
public void setTool(Tool t)
t - the ToolgetTool()public Tool getTool()
setTool(com.zfqjava.chart.Tool)public void setSizeMode(int sizeMode)
AbstractChart size mode.
The size mode of the AbstractChart:
sizeMode - the size mode of the AbstractChart
IllegalArgumentException - if the size mode is illegalgetSizeMode()public int getSizeMode()
AbstractChart size mode in use.
The size mode of the AbstractChart:
AbstractChartsetSizeMode(int)
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||