|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITracePainter
An interface that works at trace level and defines how it's points are rendered.
A contract for implementation is that Object.equals(java.lang.Object)
has to be
implemented to return true if two instances are of the same class and
Comparable.compareTo(java.lang.Object)
is implemented according to that. This
is OK as trace painters are mostly to characterize by their different implementation of rendering
a trace.
Graphics2D
instance
than painting just the label or tick will not produce layout problems. E.g. changing the color or
font is not recommended as these should be assigned to the
ITrace2D
/ Chart2D
.
Method Summary | |
---|---|
void |
discontinue(Graphics2D g2d,
ITrace2D trace)
Invoked to inform the painter that a discontinue in the trace to # paint has occured. |
void |
endPaintIteration(Graphics2D g2d)
Invoked to inform implementations that a paint iteration ends for the corresponding ITrace2D . |
void |
startPaintIteration(Graphics2D g2d,
ITrace2D trace)
Invoked to inform implementations that a paint iteration starts for the corresponding ITrace2D . |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface info.monitorenter.gui.chart.IPointPainter |
---|
paintPoint |
Method Detail |
---|
void discontinue(Graphics2D g2d, ITrace2D trace)
This only has to be implemented by painters that collect several points of
IPointPainter.paintPoint(int, int, int, int, Graphics2D, TracePoint2D)
to draw them as polygons
(e.g.: Graphics.drawPolyline(int[], int[], int)
).
g2d
- provided in case pending paint operations have to be performed.trace
- the trace to discontinue painting of.void endPaintIteration(Graphics2D g2d)
ITrace2D
.
g2d
- provided in case pending paint operations have to be performed.void startPaintIteration(Graphics2D g2d, ITrace2D trace)
ITrace2D
.
g2d
- provided in case pending paint operations have to be performed.trace
- the TracePoint2D
to paint in this iteration.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |