tdg
Interface BadDogCallback
- public interface BadDogCallback
Method Summary |
void |
drawBadDog(java.awt.Graphics gx)
Draw the "bad dog" to let user know what went wrong. |
boolean |
isValidChart()
Does the chart pass the "bad dog" tests?
This is a way to:
1) Pre-validate the chart data yourself
instead of having Perspective for Java validate the data. |
isValidChart
public boolean isValidChart()
- Does the chart pass the "bad dog" tests?
This is a way to:
1) Pre-validate the chart data yourself
instead of having Perspective for Java validate the data.
You must return true if the data is ok
or return false if data is not ok
2) If you don't want to handle any validation of data
and want Perspective for Java to validate it, throw the
AssertionException exception and Perspective for Java
will perform the Validation of the chart data prior to drawing.
Most users would choose to pick option 2.
drawBadDog
public void drawBadDog(java.awt.Graphics gx)
- Draw the "bad dog" to let user know what went wrong.