|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataGraphBase
Provides access to members that control the data graph.
The IDataGraphBase interface is a common interface for both DataGraph and DataGraphT CoClasses. It provides access to basic functionality for graph such as copy, draw, export, load, rename, and save. It also handles selection for graph.
Method Summary | |
---|---|
void |
copyToClipboard()
Copies the data graph to the clipboard as a metafile. |
void |
drawToDC(int hDC,
tagRECT pOutputRect,
tagRECT pGraphRect)
Draws the data graph into the provided device context. |
void |
exportToFile(String filename)
Exports the data graph to a file. |
String |
getName()
Name of the data graph. |
boolean |
isUseSelectedSet()
Indicates if the selected set of the series from input dataset is used to build graph. |
void |
loadFromFile(String filename)
Loads the data graph from a .grf file. |
void |
reload()
Reloads data values in data graph series. |
void |
saveToFile(String filename)
Saves the data graph to a .grf file. |
void |
setName(String pName)
Name of the data graph. |
void |
setUseSelectedSet(boolean pUseSel)
Indicates if the selected set of the series from input dataset is used to build graph. |
Method Detail |
---|
String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String pName) throws IOException, AutomationException
pName
- The pName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseSelectedSet() throws IOException, AutomationException
Value is the only parameter. Graphs can be built based on selected set from the input data. There are two methods available: HighlightSelection (from IDataGraphT) and UseSelectedSet (from IDataGraphBase). If UseSelectedSet is set to true, graph series will be built based on selection. There are two modes on how graph is drawn. The first one is by highlighting features on the graph (HighlightSelection is set to true in this case), and the second one is building graph from selected features only (HighlighteSelection is set to false in this case).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseSelectedSet(boolean pUseSel) throws IOException, AutomationException
pUseSel
- The pUseSel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reload() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawToDC(int hDC, tagRECT pOutputRect, tagRECT pGraphRect) throws IOException, AutomationException
There are three parameters. They are hdc, pOutputRect, and pGraphRect. hdc means handle device context, it is used for graph drawing. pOutputRect coordinates the rectangle in device context for graph drawing. pGraphRect is the rectangle that represents the size of the graph drawn in device context. The dimension of output rectangle is usually the same as graph rectangle.
hDC
- The hDC (A COM typedef) (in)pOutputRect
- A Structure: com.esri.arcgis.system.tagRECT (in)pGraphRect
- A Structure: com.esri.arcgis.system.tagRECT (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void loadFromFile(String filename) throws IOException, AutomationException
filename
- The filename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveToFile(String filename) throws IOException, AutomationException
filename
- The filename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void exportToFile(String filename) throws IOException, AutomationException
fileName is the only parameter. It supports various export format, including Windows bitmap (.bmp), Encapsulated PostScript (.eps), Graphics Interchange Format (.gif), Joint Photographic Experts Group (.jpg or .jpeg), Windows Metafile (.wmf), Enhanced Windows Metafile (.emf), TeeChart Office Graphic (.tee), PC Paintbrush bitmap (.pcx), Portable Document Format (.pdf), Portable Network Graphics (.png), and Scalable Vector Graphics (.svg).
filename
- The filename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void copyToClipboard() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |