Package org.esa.snap.ui.diagram
Class Diagram
java.lang.Object
org.esa.snap.ui.diagram.Diagram
The 
Diagram class is used to plot simple X/Y graphs. Instances of this class are composed of
 DiagramGraphDiagramAxis- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddChangeListener(DiagramChangeListener listener) voidaddGraph(DiagramGraph graph) voidadjustAxes(boolean reset) protected voidadjustAxes(DiagramGraph graph) voidvoiddispose()voidgetClosestGraph(int x, int y) booleangetFont()getGraph(int index) intintgetXAxis()getYAxis()voidbooleanisValid()voidvoidremoveChangeListener(DiagramChangeListener listener) voidremoveGraph(DiagramGraph graph) voidrender(Graphics2D g2d, int x, int y, int width, int height) voidvoidvoidsetBackgroundColor(Color backgroundColor) voidsetDrawGrid(boolean drawGrid) voidvoidsetForegroundColor(Color foregroundColor) voidsetMajorGridColor(Color majorGridColor) voidsetMinorGridColor(Color minorGridColor) voidsetTextGap(int textGap) voidsetValid(boolean valid) voidsetXAxis(DiagramAxis xAxis) voidsetYAxis(DiagramAxis yAxis) 
- 
Field Details- 
DEFAULT_FONT_NAME- See Also:
 
- 
DEFAULT_FONT_SIZEpublic static final int DEFAULT_FONT_SIZE- See Also:
 
- 
DEFAULT_FOREGROUND_COLOR
- 
DEFAULT_BACKGROUND_COLOR
 
- 
- 
Constructor Details- 
Diagrampublic Diagram()
- 
Diagram
 
- 
- 
Method Details- 
enableChangeEventMergingpublic void enableChangeEventMerging()
- 
disableChangeEventMergingpublic void disableChangeEventMerging()
- 
getTransform
- 
getDrawGridpublic boolean getDrawGrid()
- 
setDrawGridpublic void setDrawGrid(boolean drawGrid) 
- 
getXAxis
- 
setXAxis
- 
getYAxis
- 
setYAxis
- 
getGraphs
- 
getGraphCountpublic int getGraphCount()
- 
getGraph
- 
addGraph
- 
removeGraph
- 
removeAllGraphspublic void removeAllGraphs()
- 
getFont
- 
setFont
- 
getMajorGridColor
- 
setMajorGridColor
- 
getMinorGridColor
- 
setMinorGridColor
- 
getForegroundColor
- 
setForegroundColor
- 
getBackgroundColor
- 
setBackgroundColor
- 
getTextGappublic int getTextGap()
- 
setTextGappublic void setTextGap(int textGap) 
- 
isValidpublic boolean isValid()
- 
setValidpublic void setValid(boolean valid) 
- 
invalidatepublic void invalidate()
- 
getGraphArea
- 
render
- 
getClosestGraph
- 
adjustAxespublic void adjustAxes(boolean reset) 
- 
adjustAxes
- 
resetMinMaxAccumulatorspublic void resetMinMaxAccumulators()
- 
resetMinMaxAccumulatorsFromAxespublic void resetMinMaxAccumulatorsFromAxes()
- 
getChangeListeners
- 
addChangeListener
- 
removeChangeListener
- 
disposepublic void dispose()
 
-