public class ImageElement extends AbstractElement implements ScalableElement, RotatableElement
AbstractElement.ELEMENT_TYPE| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RESOLUTION |
protected static java.lang.String |
DEFAULT_ROOT_ELEMENT |
protected java.lang.String |
originalFilePath |
centerLocation, copyChars, dialog, doc, guinea, hiddenCheck, id, isLoadOk, objName, obstacle, obstacleCheck, paramsPanel, takenNames, transp, transparency, userCancel| Constructor and Description |
|---|
ImageElement() |
ImageElement(java.io.File imgFile,
java.io.File worldFile,
LocationType utmReference) |
ImageElement(MapGroup mg,
MapType map) |
ImageElement(java.lang.String xml) |
ImageElement(java.lang.String xml,
java.lang.String originalFilePath) |
| Modifier and Type | Method and Description |
|---|---|
org.dom4j.Document |
asDocument() |
org.dom4j.Document |
asDocument(java.lang.String rootElementName) |
org.dom4j.Element |
asElement() |
org.dom4j.Element |
asElement(java.lang.String rootElementName) |
java.lang.String |
asXML()
Este problema foi resolvido com a versão 1.6.1 do DOM4J.
|
java.lang.String |
asXML(java.lang.String rootElementName)
Este problema foi resolvido com a versão 1.6.1 do DOM4J.
|
boolean |
containsPoint(LocationType lt,
StateRenderer2D renderer) |
java.lang.String |
getBathymetricImageFileName() |
double[] |
getDimension() |
AbstractElement.ELEMENT_TYPE |
getElementType() |
java.awt.Image |
getHeightImage() |
java.awt.Image |
getImage() |
java.lang.String |
getImageFileName() |
double |
getImageScale() |
double |
getImageScaleV()
This if different than
Double.NaN will allow different
vertical scale than horizontal. |
int |
getLayerPriority()
Returns the showing priority for this object (0 normal, <0 background, >0 on top)
|
double |
getMaxDepth() |
double |
getMaxHeight() |
java.lang.String |
getOriginalFilePath() |
ParametersPanel |
getParametersPanel(boolean editable,
MapType map) |
double |
getResolution() |
java.lang.String |
getType() |
java.lang.String |
getTypeAbbrev() |
void |
grow(double ammount) |
void |
initialize(ParametersPanel paramsPanel) |
boolean |
isBathymetric() |
boolean |
load(org.dom4j.Element elem)
Should set
XmlInputMethods.isLoadOk() return value. |
void |
paint(java.awt.Graphics2D g,
StateRenderer2D renderer,
double rotation) |
boolean |
paramsOK(javax.swing.JPanel paramsPanel) |
void |
rotateLeft(double ammount) |
void |
rotateRight(double ammount) |
void |
setBathymetric(boolean isBatimetric) |
void |
setBathymetricImageFileName(java.lang.String bathymetricImageFileName) |
void |
setDimension(double[] newDimension) |
void |
setHeightImage(java.awt.Image heightImage) |
void |
setImage(java.awt.Image image) |
void |
setImageFileName(java.lang.String imageFileName) |
void |
setImageScale(double imageScale)
Please note that setting this will set the scale horizontal
equal to the vertical.
|
void |
setImageScaleV(double imageScaleV)
Sets, if different than
Double.NaN, a different
vertical scale than horizontal. |
void |
setMaxDepth(double maxDepth) |
void |
setMaxHeight(double maxHeight) |
void |
setOriginalFilePath(java.lang.String originalFilePath) |
void |
setResolution(double resolution) |
void |
shrink(double ammount) |
actionPerformed, compareTo, getCenterLocation, getClone, getId, getIDComparator, getMapGroup, getMissionType, getNEDPosition, getParentMap, getPhi, getPitch, getPitchDeg, getPitchRad, getPsi, getRoll, getRollDeg, getRollRad, getShapePoints, getTheta, getTopHeight, getTransparency, getYaw, getYawDeg, getYawRad, invertColor, isFilled, isLoadOk, isObstacle, isSelected, isUserCancel, load, setCenterLocation, setFilled, setId, setMapGroup, setMissionType, setObstacle, setParentMap, setPhi, setPitch, setPitchDeg, setPsi, setRoll, setRollDeg, setSelected, setTakenNames, setTheta, setTransparency, setYaw, setYawDeg, showParametersDialog, showParametersDialog, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetYawprotected static final java.lang.String DEFAULT_ROOT_ELEMENT
public static final int DEFAULT_RESOLUTION
protected java.lang.String originalFilePath
public ImageElement()
public ImageElement(java.io.File imgFile,
java.io.File worldFile,
LocationType utmReference)
throws java.lang.Exception
java.lang.Exceptionpublic ImageElement(java.lang.String xml)
xml - public ImageElement(java.lang.String xml,
java.lang.String originalFilePath)
public java.lang.String getType()
getType in class AbstractElementpublic boolean load(org.dom4j.Element elem)
XmlInputMethodsXmlInputMethods.isLoadOk() return value.load in interface XmlInputMethodsload in class AbstractElementpublic java.lang.String getImageFileName()
public void setImageFileName(java.lang.String imageFileName)
imageFileName - The imageFileName to set.public java.awt.Image getImage()
public void setImage(java.awt.Image image)
public java.awt.Image getHeightImage()
public void setHeightImage(java.awt.Image heightImage)
public double getImageScale()
public void setImageScale(double imageScale)
imageScale - The imageScale to set.public double getImageScaleV()
Double.NaN will allow different
vertical scale than horizontal.public void setImageScaleV(double imageScaleV)
Double.NaN, a different
vertical scale than horizontal.imageScaleV - the imageScaleV to setpublic boolean isBathymetric()
public void setBathymetric(boolean isBatimetric)
isBatimetric - The isBatimetric to set.public double getMaxDepth()
public void setMaxDepth(double maxDepth)
maxDepth - The maxDepth to set.public double getMaxHeight()
public void setMaxHeight(double maxHeight)
maxHeight - The maxHight to set.public double getResolution()
public void setResolution(double resolution)
resolution - The resolution to set.public java.lang.String getOriginalFilePath()
public void setOriginalFilePath(java.lang.String originalFilePath)
originalFilePath - The originalFilePath to set.public java.lang.String asXML()
XmlOutputMethodsFileUtil.saveToFile(String, String) e afins. Isto porque ao gravar como UTF-8
os caracteres são adulterados guardando por exemplo "é" em 2 caracteres (ou seja pega nos dois caracteres UTF-8 e
transforma-os em 2 UTF-8s).asXML in interface XmlOutputMethodsasXML in class AbstractElementpublic java.lang.String asXML(java.lang.String rootElementName)
XmlOutputMethodsFileUtil.saveToFile(String, String) e afins. Isto porque ao gravar como UTF-8
os caracteres são adulterados guardando por exemplo "é" em 2 caracteres (ou seja pega nos dois caracteres UTF-8 e
transforma-os em 2 UTF-8s).asXML in interface XmlOutputMethodsasXML in class AbstractElementpublic org.dom4j.Element asElement()
asElement in interface XmlOutputMethodsasElement in class AbstractElementpublic org.dom4j.Element asElement(java.lang.String rootElementName)
asElement in interface XmlOutputMethodsasElement in class AbstractElementpublic org.dom4j.Document asDocument()
asDocument in interface XmlOutputMethodsasDocument in class AbstractElementpublic org.dom4j.Document asDocument(java.lang.String rootElementName)
asDocument in interface XmlOutputMethodsasDocument in class AbstractElementpublic boolean containsPoint(LocationType lt, StateRenderer2D renderer)
containsPoint in class AbstractElementpublic int getLayerPriority()
AbstractElementgetLayerPriority in class AbstractElementpublic ParametersPanel getParametersPanel(boolean editable, MapType map)
getParametersPanel in class AbstractElementpublic boolean paramsOK(javax.swing.JPanel paramsPanel)
public void initialize(ParametersPanel paramsPanel)
initialize in class AbstractElementpublic void paint(java.awt.Graphics2D g,
StateRenderer2D renderer,
double rotation)
paint in class AbstractElementpublic void grow(double ammount)
grow in interface ScalableElementpublic void shrink(double ammount)
shrink in interface ScalableElementpublic void rotateLeft(double ammount)
rotateLeft in interface RotatableElementpublic void rotateRight(double ammount)
rotateRight in interface RotatableElementpublic double[] getDimension()
getDimension in interface ScalableElementpublic void setDimension(double[] newDimension)
setDimension in interface ScalableElementpublic java.lang.String getBathymetricImageFileName()
public void setBathymetricImageFileName(java.lang.String bathymetricImageFileName)
public java.lang.String getTypeAbbrev()
getTypeAbbrev in class AbstractElementpublic AbstractElement.ELEMENT_TYPE getElementType()
getElementType in class AbstractElementCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.