|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.drawables.DoublePoint
net.moioli.drawables.BigPoint
public class BigPoint
Represents an important point on the DefaultChart, it will be circled and a description will be added.
Field Summary |
---|
Fields inherited from class net.moioli.drawables.DoublePoint |
---|
x, y |
Constructor Summary | |
---|---|
BigPoint()
Default constructor ((0,0), no description) |
|
BigPoint(double x,
double y,
java.lang.String description)
Standard constructor. |
Method Summary | |
---|---|
void |
drawMe(GraphicsI g,
Scale s,
java.lang.Object c)
This method is automatically called by DefaultChart to draw the objects it contains, so end users should never call drawMe directly. |
java.lang.String |
getDescription()
Returns the description. |
double |
maxY(double minX,
double maxX)
Returns the maximum y value that should be represented in the DefaultChart for this object to be drawn properly. |
double |
minY(double minX,
double maxX)
Returns the minimum y value that should be represented in the DefaultChart for this object to be drawn properly. |
void |
setDescription(java.lang.String description)
Changes the point's description |
Methods inherited from class net.moioli.drawables.DoublePoint |
---|
getX, getY, setX, setY, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BigPoint()
public BigPoint(double x, double y, java.lang.String description)
x
- x coordinate of the BigPointy
- y coordinate of the BigPointdescription
- labelMethod Detail |
---|
public void drawMe(GraphicsI g, Scale s, java.lang.Object c)
drawMe
in interface DrawableI
g
- the surface where this object will be drawns
- the DefaultChart's Scale objectc
- the color to be used for drawingpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the new descriptionpublic double minY(double minX, double maxX)
minY
in interface DrawableI
minX
- the minimum x value represented in this DefaultChartmaxX
- the maximum x value represented in this DefaultChart
public double maxY(double minX, double maxX)
maxY
in interface DrawableI
minX
- the minimum x value represented in this DefaultChartmaxX
- the maximum x value represented in this DefaultChart
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |