|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI org.mov.chart.BasicChartUI
public class BasicChartUI
Chart Implementation.
Field Summary |
---|
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
BasicChartUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
double |
getDifference(Chart chart,
Coordinate c,
Coordinate start,
Coordinate end)
|
double |
getDifference(Chart chart,
java.lang.Integer x,
java.lang.Integer y,
Coordinate start,
Coordinate end)
|
java.awt.Color |
getGraphColour(Graph graph,
Chart chart)
Return the colour we will draw the given graph. |
java.awt.image.BufferedImage |
getImage()
|
protected int |
getLevelAtPoint(int yCoordinate)
Return which graph level contains the given y coordinate. |
static int |
getMinimumHeight(Chart chart)
Return the minimum height needed by this component. |
static int |
getMinimumWidth(Chart chart)
Return the minimum width needed by this component. |
Coordinate |
getMoved(Chart chart,
java.lang.Integer x,
java.lang.Integer y,
Coordinate start,
Coordinate end)
|
java.lang.String |
getToolTipText(Chart chart,
int xCoordinate,
int yCoordinate)
Return the tool tip text for the given x, y coordinates. |
java.lang.Comparable |
getXAtPoint(Chart chart,
int xCoordinate)
Return the X value at the given x coordinate. |
java.lang.Double |
getYAtPoint(Chart chart,
int yCoordinate)
Return the Y value at the given x coordinate. |
boolean |
imageUpdate(java.awt.Image image,
int infofloags,
int x,
int y,
int width,
int height)
|
boolean |
intersect(Chart chart,
Coordinate c1,
Coordinate c2,
int delta)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paint the component. |
void |
resetBuffer()
Reset the double buffer and force the chart to redraw. |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicChartUI()
Method Detail |
---|
public static int getMinimumWidth(Chart chart)
chart
- the chart componentpublic static int getMinimumHeight(Chart chart)
chart
- the chart componentpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public java.lang.Comparable getXAtPoint(Chart chart, int xCoordinate)
chart
- the chart componentxCoordinate
- an x coordinate on the screen
public java.lang.Double getYAtPoint(Chart chart, int yCoordinate)
chart
- the chart componentyCoordinate
- an y coordinate on the screen
protected int getLevelAtPoint(int yCoordinate)
yCoordinate
- the y coordinate to query
0
if none dopublic java.lang.String getToolTipText(Chart chart, int xCoordinate, int yCoordinate)
chart
- the chart componentxCoordinate
- the x coordinateyCoordinate
- the y coordinatepublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
g
- the graphics to paint toc
- the chart componentpublic java.awt.image.BufferedImage getImage()
public double getDifference(Chart chart, java.lang.Integer x, java.lang.Integer y, Coordinate start, Coordinate end)
public double getDifference(Chart chart, Coordinate c, Coordinate start, Coordinate end)
public Coordinate getMoved(Chart chart, java.lang.Integer x, java.lang.Integer y, Coordinate start, Coordinate end)
public boolean intersect(Chart chart, Coordinate c1, Coordinate c2, int delta)
public void resetBuffer()
public boolean imageUpdate(java.awt.Image image, int infofloags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
public java.awt.Color getGraphColour(Graph graph, Chart chart)
graph
- the graph to querychart
- the chart component
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |