public class GridElementDOM extends RepositoryStorageDOM implements GridElementStorage
| Modifier and Type | Field and Description |
|---|---|
protected org.w3c.dom.Element |
childrenRoot |
document, dostylesheets, storageRoot, templateDOMnickname, reposListeners, transferAgent| Constructor and Description |
|---|
GridElementDOM() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllChildGridElements(java.util.Vector elems)
Adds all RepositoryElements in Vector as child grids.
|
void |
addChildGridElement(RepositoryElement elem)
Adds the specified child GridElementStorage to this storage.
|
void |
addGriddedRegionListener(GriddedRegionListener l) |
void |
addVertexListener(VertexListener l) |
int |
childCount()
Returns the number of child GridElements
|
void |
clearChildGrids()
Removes all child GridElementStorages from this storage.
|
void |
clearGridCoordinates()
Removes all vertices information from this GridElementStorage.
|
java.io.File[] |
exportUNG()
Exports the grid in Arc/Info Ungenerate ASCII file format.
|
java.io.File[] |
exportUNG(java.io.File hdrFile,
java.io.File datFile)
Exports the grid in Arc/Info Ungenerate ASCII file format.
|
void |
fireGriddedRegionEvent(GriddedRegionEvent dv) |
void |
fireVertexEvent(VertexEvent dv) |
java.lang.String |
getAlternate()
Gets the Alternate name for this GridElementStorage.
|
DblMatrix |
getCentroid() |
RepositoryElement |
getChildGridElement(int k)
Returns a RepositoryElement for the storage of the indicated child GridElementStorage.
|
java.util.Vector |
getChildGridElements()
Returns Vector of RepositoryElements pointing to the child grids.
|
RepositoryElement |
getCoordinateRepositoryElement()
Gets the vertices storage for this GridElementStorage.
|
DblMatrix |
getCoords() |
DblMatrix |
getCoordsOf(java.lang.Integer row) |
java.lang.Class |
getDefaultGraphicalEditorClass() |
int |
getDimension() |
java.lang.Class |
getDOMStorageClass()
Returns a DOM storage variant of this storage instance.
|
int |
getGridCount() |
GridElement |
getGridElement(int index) |
java.lang.Integer |
getIndex(int j) |
java.lang.String |
getLabel() |
java.lang.String |
getLongName()
Gets the LongName for this GridElementStorage.
|
GridElement |
getParent() |
DblMatrix |
getPerimeter()
Returns the perimeter (2D only) of this simplex.
|
java.lang.String |
getRootElementName() |
java.lang.Class |
getStorageTransferAgentClass()
This method should be overridden by subclasses wanting to extend the transfer method.
|
protected java.lang.String |
getStylesheetRef()
Returns the hyper-reference to the style sheet to be used in formating
the XML translation of this DOM.
|
DblMatrix |
getVolume()
Returns the volume (area in 2D) of this element.
|
DblMatrix |
getXData()
Gets just the x-coordinate data for this GridElementStorage.
|
DblMatrix |
getYData()
Gets just the y-coordinate data for this GridElementStorage.
|
java.util.Iterator |
gridIterator() |
void |
importAsChildUNG(java.io.File headrFile,
java.io.File datFile)
Import all grids from data saved in Arc/Info Ungenerate ASCII file format.
|
void |
importAsChildUNG(java.io.File headrFile,
java.io.File datFile,
int nskips)
Import all grids from data saved in Arc/Info Ungenerate ASCII file format.
|
void |
importAsChildUNG(java.util.Set targets,
java.io.File hdrFile,
java.io.File datFile,
int nskips)
Imports the indicated grid data as a child grid under this grid.
|
void |
importAsChildUNG(java.lang.String idxident,
java.io.File hdrFile,
java.io.File datFile,
int nskips)
Imports the indicated grid data as a child grid under this grid.
|
void |
importVerticesUNG(java.lang.String idxident,
java.io.File datFile)
Imports the indicated grid data into this GridElementStorage's vertices.
|
void |
importVerticesUNG(java.lang.String idxident,
java.io.File datFile,
int nskips)
Imports the indicated grid data into this GridElementStorage's vertices.
|
void |
removeChildGridElement(int k) |
void |
removeChildGridElement(RepositoryElement elem)
Removes the specified child GridElementStorage from this storage.
|
void |
removeGriddedRegionListener(GriddedRegionListener l) |
void |
removeVertexListener(VertexListener l) |
void |
setAlternate(java.lang.String st)
Sets the Alternate name for this GridElementStorage.
|
void |
setCoordinateRepositoryElement(RepositoryElement elem)
Specifies vertices storage for this GridElementStorage.
|
void |
setLabel(java.lang.String st)
Sets the Label for this GridElementStorage.
|
void |
setLongName(java.lang.String st)
Sets the LongName for this GridElementStorage.
|
void |
setParentGridElement(RepositoryElement elem)
Sets the parent GridElementStorage
|
int |
size() |
protected void |
specifyStorage(org.w3c.dom.Document doc,
org.w3c.dom.Element root) |
java.util.Vector |
subFacesOf() |
java.util.Vector |
verticesOf()
Returns a Vector of Integers indexing into the coordinate data.
|
createElementByName, getAttributeByElementName, getComment, getCommentElementName, getCreatedBy, getCreatedByAttributeName, getCreatedOn, getCreatedOnAttributeName, getDocument, getEnabled, getEnabledAttributeName, getNickname, getNicknameAttributeName, getStorage, getStorageRoot, getTemplateDOM, getTextNodeByElementName, isValidXML, readXML, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname, setProcessingInstructions, setTextNodeByElementName, show, show, useStyleSheetInfo, usingStyleSheetInfo, writeTemplateXML, writeXMLaddRepositoryListener, afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, getStorageCalculationsAgentClass, removeRepositoryListener, transferStorage, transferStorageCommandsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRepositoryListener, getComment, getCreatedBy, getCreatedOn, getEnabled, getNickname, removeRepositoryListener, setComment, setCreatedBy, setCreatedOn, setEnabled, setNicknameafterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, transferStorage, transferStorageCommandspublic void addVertexListener(VertexListener l)
addVertexListener in interface GridElementpublic void removeVertexListener(VertexListener l)
removeVertexListener in interface GridElementpublic void fireVertexEvent(VertexEvent dv)
fireVertexEvent in interface GridElementpublic void addGriddedRegionListener(GriddedRegionListener l)
addGriddedRegionListener in interface GriddedRegionpublic void removeGriddedRegionListener(GriddedRegionListener l)
removeGriddedRegionListener in interface GriddedRegionpublic void fireGriddedRegionEvent(GriddedRegionEvent dv)
fireGriddedRegionEvent in interface GriddedRegionpublic void setLabel(java.lang.String st)
GridElementStoragesetLabel in interface GridElementStoragesetLabel in interface GridElementpublic void setAlternate(java.lang.String st)
GridElementStoragesetAlternate in interface GridElementStoragepublic void setLongName(java.lang.String st)
GridElementStoragesetLongName in interface GridElementStoragepublic java.lang.String getLabel()
getLabel in interface GridElementpublic java.lang.String getAlternate()
GridElementStoragegetAlternate in interface GridElementStoragepublic java.lang.String getLongName()
GridElementStoragegetLongName in interface GridElementStorageprotected void specifyStorage(org.w3c.dom.Document doc,
org.w3c.dom.Element root)
specifyStorage in class RepositoryStorageDOMpublic RepositoryElement getCoordinateRepositoryElement()
GridElementStoragegetCoordinateRepositoryElement in interface GridElementStoragepublic java.util.Vector getChildGridElements()
GridElementStoragegetChildGridElements in interface GridElementStoragepublic int childCount()
GridElementStoragechildCount in interface GridElementStoragepublic void clearGridCoordinates()
GridElementStorageclearGridCoordinates in interface GridElementStoragepublic void clearChildGrids()
GridElementStorageclearChildGrids in interface GridElementStoragepublic void setCoordinateRepositoryElement(RepositoryElement elem)
GridElementStoragesetCoordinateRepositoryElement in interface GridElementStoragepublic RepositoryElement getChildGridElement(int k)
GridElementStoragegetChildGridElement in interface GridElementStoragepublic void addChildGridElement(RepositoryElement elem)
GridElementStorageaddChildGridElement in interface GridElementStoragepublic void removeChildGridElement(RepositoryElement elem)
GridElementStorageremoveChildGridElement in interface GridElementStoragepublic void removeChildGridElement(int k)
public void setParentGridElement(RepositoryElement elem)
GridElementStoragesetParentGridElement in interface GridElementStoragepublic java.lang.Class getDefaultGraphicalEditorClass()
getDefaultGraphicalEditorClass in interface RepositoryStoragegetDefaultGraphicalEditorClass in class RepositoryStorageDOMpublic java.lang.String getRootElementName()
getRootElementName in class RepositoryStorageDOMprotected java.lang.String getStylesheetRef()
RepositoryStorageDOMsetProcessingInstructions method.getStylesheetRef in class RepositoryStorageDOMRepositoryStorageDOM.setProcessingInstructions()public java.lang.Class getStorageTransferAgentClass()
AbstractRepositoryStoragegetStorageTransferAgentClass in class AbstractRepositoryStoragepublic java.lang.Class getDOMStorageClass()
AbstractRepositoryStoragegetDOMStorageClass in interface DOMStorablegetDOMStorageClass in class RepositoryStorageDOMpublic java.io.File[] exportUNG(java.io.File hdrFile,
java.io.File datFile)
GridElementStorageexportUNG in interface GridElementStoragepublic java.io.File[] exportUNG()
GridElementStorageexportUNG in interface GridElementStoragepublic void importAsChildUNG(java.lang.String idxident,
java.io.File hdrFile,
java.io.File datFile,
int nskips)
importAsChildUNG in interface GridElementStoragepublic void importAsChildUNG(java.util.Set targets,
java.io.File hdrFile,
java.io.File datFile,
int nskips)
importAsChildUNG in interface GridElementStoragepublic void importVerticesUNG(java.lang.String idxident,
java.io.File datFile,
int nskips)
importVerticesUNG in interface GridElementStoragepublic void importVerticesUNG(java.lang.String idxident,
java.io.File datFile)
importVerticesUNG in interface GridElementStoragepublic void importAsChildUNG(java.io.File headrFile,
java.io.File datFile)
importAsChildUNG in interface GridElementStoragepublic void importAsChildUNG(java.io.File headrFile,
java.io.File datFile,
int nskips)
importAsChildUNG in interface GridElementStoragepublic void addAllChildGridElements(java.util.Vector elems)
GridElementStorageaddAllChildGridElements in interface GridElementStoragepublic DblMatrix getXData()
GridElementStoragegetXData in interface GridElementStoragepublic DblMatrix getYData()
GridElementStoragegetYData in interface GridElementStoragepublic DblMatrix getCoords()
getCoords in interface GridElementpublic java.util.Iterator gridIterator()
gridIterator in interface GriddedRegionpublic int getGridCount()
getGridCount in interface GriddedRegionpublic GridElement getGridElement(int index)
getGridElement in interface GriddedRegionpublic GridElement getParent()
getParent in interface GridElementpublic java.util.Vector verticesOf()
verticesOf in interface GridElementpublic java.util.Vector subFacesOf()
subFacesOf in interface GridElementpublic int getDimension()
getDimension in interface GridElementpublic java.lang.Integer getIndex(int j)
getIndex in interface GridElementpublic int size()
size in interface GridElementpublic DblMatrix getCoordsOf(java.lang.Integer row)
getCoordsOf in interface GridElementpublic DblMatrix getPerimeter()
getPerimeter in interface GridElementpublic DblMatrix getVolume()
getVolume in interface GridElementpublic DblMatrix getCentroid()
getCentroid in interface GridElementCopyright © 2011, 2013. Daniel P. Dougherty