public class GridElementDOM extends RepositoryStorageDOM implements GridElementStorage
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element |
childrenRoot |
document, dostylesheets, storageRoot, templateDOM
nickname, 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, writeXML
addRepositoryListener, afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, getStorageCalculationsAgentClass, removeRepositoryListener, transferStorage, transferStorageCommands
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRepositoryListener, getComment, getCreatedBy, getCreatedOn, getEnabled, getNickname, removeRepositoryListener, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname
afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, transferStorage, transferStorageCommands
public void addVertexListener(VertexListener l)
addVertexListener
in interface GridElement
public void removeVertexListener(VertexListener l)
removeVertexListener
in interface GridElement
public void fireVertexEvent(VertexEvent dv)
fireVertexEvent
in interface GridElement
public void addGriddedRegionListener(GriddedRegionListener l)
addGriddedRegionListener
in interface GriddedRegion
public void removeGriddedRegionListener(GriddedRegionListener l)
removeGriddedRegionListener
in interface GriddedRegion
public void fireGriddedRegionEvent(GriddedRegionEvent dv)
fireGriddedRegionEvent
in interface GriddedRegion
public void setLabel(java.lang.String st)
GridElementStorage
setLabel
in interface GridElementStorage
setLabel
in interface GridElement
public void setAlternate(java.lang.String st)
GridElementStorage
setAlternate
in interface GridElementStorage
public void setLongName(java.lang.String st)
GridElementStorage
setLongName
in interface GridElementStorage
public java.lang.String getLabel()
getLabel
in interface GridElement
public java.lang.String getAlternate()
GridElementStorage
getAlternate
in interface GridElementStorage
public java.lang.String getLongName()
GridElementStorage
getLongName
in interface GridElementStorage
protected void specifyStorage(org.w3c.dom.Document doc, org.w3c.dom.Element root)
specifyStorage
in class RepositoryStorageDOM
public RepositoryElement getCoordinateRepositoryElement()
GridElementStorage
getCoordinateRepositoryElement
in interface GridElementStorage
public java.util.Vector getChildGridElements()
GridElementStorage
getChildGridElements
in interface GridElementStorage
public int childCount()
GridElementStorage
childCount
in interface GridElementStorage
public void clearGridCoordinates()
GridElementStorage
clearGridCoordinates
in interface GridElementStorage
public void clearChildGrids()
GridElementStorage
clearChildGrids
in interface GridElementStorage
public void setCoordinateRepositoryElement(RepositoryElement elem)
GridElementStorage
setCoordinateRepositoryElement
in interface GridElementStorage
public RepositoryElement getChildGridElement(int k)
GridElementStorage
getChildGridElement
in interface GridElementStorage
public void addChildGridElement(RepositoryElement elem)
GridElementStorage
addChildGridElement
in interface GridElementStorage
public void removeChildGridElement(RepositoryElement elem)
GridElementStorage
removeChildGridElement
in interface GridElementStorage
public void removeChildGridElement(int k)
public void setParentGridElement(RepositoryElement elem)
GridElementStorage
setParentGridElement
in interface GridElementStorage
public java.lang.Class getDefaultGraphicalEditorClass()
getDefaultGraphicalEditorClass
in interface RepositoryStorage
getDefaultGraphicalEditorClass
in class RepositoryStorageDOM
public java.lang.String getRootElementName()
getRootElementName
in class RepositoryStorageDOM
protected java.lang.String getStylesheetRef()
RepositoryStorageDOM
setProcessingInstructions
method.getStylesheetRef
in class RepositoryStorageDOM
RepositoryStorageDOM.setProcessingInstructions()
public java.lang.Class getStorageTransferAgentClass()
AbstractRepositoryStorage
getStorageTransferAgentClass
in class AbstractRepositoryStorage
public java.lang.Class getDOMStorageClass()
AbstractRepositoryStorage
getDOMStorageClass
in interface DOMStorable
getDOMStorageClass
in class RepositoryStorageDOM
public java.io.File[] exportUNG(java.io.File hdrFile, java.io.File datFile)
GridElementStorage
exportUNG
in interface GridElementStorage
public java.io.File[] exportUNG()
GridElementStorage
exportUNG
in interface GridElementStorage
public void importAsChildUNG(java.lang.String idxident, java.io.File hdrFile, java.io.File datFile, int nskips)
importAsChildUNG
in interface GridElementStorage
public void importAsChildUNG(java.util.Set targets, java.io.File hdrFile, java.io.File datFile, int nskips)
importAsChildUNG
in interface GridElementStorage
public void importVerticesUNG(java.lang.String idxident, java.io.File datFile, int nskips)
importVerticesUNG
in interface GridElementStorage
public void importVerticesUNG(java.lang.String idxident, java.io.File datFile)
importVerticesUNG
in interface GridElementStorage
public void importAsChildUNG(java.io.File headrFile, java.io.File datFile)
importAsChildUNG
in interface GridElementStorage
public void importAsChildUNG(java.io.File headrFile, java.io.File datFile, int nskips)
importAsChildUNG
in interface GridElementStorage
public void addAllChildGridElements(java.util.Vector elems)
GridElementStorage
addAllChildGridElements
in interface GridElementStorage
public DblMatrix getXData()
GridElementStorage
getXData
in interface GridElementStorage
public DblMatrix getYData()
GridElementStorage
getYData
in interface GridElementStorage
public DblMatrix getCoords()
getCoords
in interface GridElement
public java.util.Iterator gridIterator()
gridIterator
in interface GriddedRegion
public int getGridCount()
getGridCount
in interface GriddedRegion
public GridElement getGridElement(int index)
getGridElement
in interface GriddedRegion
public GridElement getParent()
getParent
in interface GridElement
public java.util.Vector verticesOf()
verticesOf
in interface GridElement
public java.util.Vector subFacesOf()
subFacesOf
in interface GridElement
public int getDimension()
getDimension
in interface GridElement
public java.lang.Integer getIndex(int j)
getIndex
in interface GridElement
public int size()
size
in interface GridElement
public DblMatrix getCoordsOf(java.lang.Integer row)
getCoordsOf
in interface GridElement
public DblMatrix getPerimeter()
getPerimeter
in interface GridElement
public DblMatrix getVolume()
getVolume
in interface GridElement
public DblMatrix getCentroid()
getCentroid
in interface GridElement
Copyright © 2011, 2013. Daniel P. Dougherty