protected class CommonGraph.GraphBadDogCallback
extends java.lang.Object
implements oracle.dss.graph.pfj.BadDogCallback
| Modifier | Constructor and Description |
|---|---|
protected |
CommonGraph.GraphBadDogCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBadDog(java.awt.Graphics gx)
Draw the "bad dog" to let user know what went wrong.
|
void |
drawBadDogToSVG(java.util.Map context)
Render the "bad dog" to SVG to let user know what went wrong.
|
void |
drawBadDogToXML(java.util.Map context)
Render the "bad dog" to XML to let user know what went wrong.
|
java.lang.String |
getErrorText()
Retrieves the error text from Bad Dog callback
|
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.
|
protected void |
setNotEnoughDataMessage(java.lang.String[] s)
Set the message indicating not enough data is present.
|
protected void |
setNotEnoughDataMessage(java.lang.String[] s,
NotEnoughData neData)
Set the message indicating not enough data is present.
|
public boolean isValidChart()
oracle.dss.graph.pfj.BadDogCallbackisValidChart in interface oracle.dss.graph.pfj.BadDogCallbackpublic void drawBadDog(java.awt.Graphics gx)
oracle.dss.graph.pfj.BadDogCallbackdrawBadDog in interface oracle.dss.graph.pfj.BadDogCallbackpublic void drawBadDogToSVG(java.util.Map context)
throws java.io.IOException,
java.lang.Exception
oracle.dss.graph.pfj.BadDogCallbackdrawBadDogToSVG in interface oracle.dss.graph.pfj.BadDogCallbackcontext - context for this renderjava.io.IOException - if there was a problem writing to the streamjava.lang.Exception - if another problem occurredpublic void drawBadDogToXML(java.util.Map context)
throws java.io.IOException,
java.lang.Exception
oracle.dss.graph.pfj.BadDogCallbackdrawBadDogToXML in interface oracle.dss.graph.pfj.BadDogCallbackcontext - context for this renderjava.io.IOException - if there was a problem writing to the streamjava.lang.Exception - if another problem occurredprotected void setNotEnoughDataMessage(java.lang.String[] s)
s - array of strings to showprotected void setNotEnoughDataMessage(java.lang.String[] s,
NotEnoughData neData)
s - array of strings to showneData - object indicating how data is insufficientpublic java.lang.String getErrorText()
getErrorText in interface oracle.dss.graph.pfj.BadDogCallback