|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
net.moioli.chart.AbstractChart
public abstract class AbstractChart
An AbstractChart is a Collection of drawable objects (instances of classes
implementing the DrawableI interface). You can use all the Collection methods
on an AbstractChart, but probably only DrawableI objects will be drawn.
You just have to implement the drawMe() method, where you'll most probably
draw the Axes or a Legend after having created an appropriate Scale object.
For an example implementation, see the DefaultChart class.
DrawableI
,
GraphicsI
,
Serialized FormConstructor Summary | |
---|---|
AbstractChart()
Default constructor. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object arg0)
|
abstract void |
drawMe(GraphicsI g,
IntRectangle clip)
Draws this DefaultChart on the passed GraphicsI surface. |
double |
getMaxX()
Returns the maximum x value represented. |
double |
getMaxY()
Returns the maximum y value represented. |
double |
getMinX()
Returns the minimum x value represented. |
double |
getMinY()
Returns the minimum y value represented. |
int |
getPixelAccuracy()
Returns the pixelAccuracy value. |
void |
setMaxX(double maxX)
Returns the maximum x value represented. |
void |
setMaxY(double maxY)
The maximum y value to be represented. |
void |
setMinX(double minX)
The minimum x value to be represented. |
void |
setMinY(double minY)
The minimum y value represented. |
void |
setPixelAccuracy(int pixelAccuracy)
The pixelAccuracy to set. |
Methods inherited from class java.util.HashSet |
---|
clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public AbstractChart()
Method Detail |
---|
public abstract void drawMe(GraphicsI g, IntRectangle clip)
ChartI
drawMe
in interface ChartI
g
- the surface where this DefaultChart will be drawnclip
- the clipping rectangle to be used for drawingChartI.drawMe(net.moioli.chart.GraphicsI,
net.moioli.chart.IntRectangle)
public double getMaxX()
ChartI
getMaxX
in interface ChartI
ChartI.getMaxX()
public void setMaxX(double maxX)
ChartI
setMaxX
in interface ChartI
maxX
- The maximum x value represented.ChartI.setMaxX(double)
public double getMinX()
ChartI
getMinX
in interface ChartI
ChartI.getMinX()
public void setMinX(double minX)
ChartI
setMinX
in interface ChartI
minX
- The minimum x value represented.ChartI.setMinX(double)
public double getMaxY()
ChartI
getMaxY
in interface ChartI
ChartI.getMaxY()
public void setMaxY(double maxY)
ChartI
setMaxY
in interface ChartI
maxY
- The maximum y value represented.ChartI.setMaxY(double)
public double getMinY()
ChartI
getMinY
in interface ChartI
ChartI.getMinY()
public void setMinY(double minY)
ChartI
setMinY
in interface ChartI
minY
- The minimum y value represented.ChartI.setMinY(double)
public int getPixelAccuracy()
ChartI
getPixelAccuracy
in interface ChartI
ChartI.getPixelAccuracy()
public void setPixelAccuracy(int pixelAccuracy)
ChartI
setPixelAccuracy
in interface ChartI
ChartI.setPixelAccuracy(int)
public boolean add(java.lang.Object arg0)
add
in interface java.util.Collection
add
in interface java.util.Set
add
in interface ChartI
add
in class java.util.HashSet
ChartI.add(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |