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, obstacleCheck, paramsPanel, takenNames, transp, transparency, userCancel
Constructor and Description |
---|
ImageElement() |
ImageElement(java.io.File imgFile,
java.io.File worldFile) |
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() |
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) |
int |
getResolution() |
java.lang.String |
getType() |
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) |
void |
setMaxDepth(double maxDepth) |
void |
setMaxHeight(double maxHeight) |
void |
setOriginalFilePath(java.lang.String originalFilePath) |
void |
setResolution(int 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, isLoadOk, isObstacle, isSelected, isUserCancel, load, setCenterLocation, setId, setMapGroup, setMissionType, setObstacle, setParentMap, setPhi, setPitch, setPitchDeg, setPsi, setRoll, setRollDeg, setSelected, setTakenNames, setTheta, setTransparency, setYaw, setYawDeg, showParametersDialog, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getYaw
protected 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) throws java.lang.Exception
java.lang.Exception
public ImageElement(java.lang.String xml)
xml
- public ImageElement(java.lang.String xml, java.lang.String originalFilePath)
public java.lang.String getType()
getType
in class AbstractElement
public boolean load(org.dom4j.Element elem)
XmlInputMethods
XmlInputMethods.isLoadOk()
return value.load
in interface XmlInputMethods
load
in class AbstractElement
public 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 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 int getResolution()
public void setResolution(int 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()
XmlOutputMethods
FileUtil.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 XmlOutputMethods
asXML
in class AbstractElement
public java.lang.String asXML(java.lang.String rootElementName)
XmlOutputMethods
FileUtil.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 XmlOutputMethods
asXML
in class AbstractElement
public org.dom4j.Element asElement()
asElement
in interface XmlOutputMethods
asElement
in class AbstractElement
public org.dom4j.Element asElement(java.lang.String rootElementName)
asElement
in interface XmlOutputMethods
asElement
in class AbstractElement
public org.dom4j.Document asDocument()
asDocument
in interface XmlOutputMethods
asDocument
in class AbstractElement
public org.dom4j.Document asDocument(java.lang.String rootElementName)
asDocument
in interface XmlOutputMethods
asDocument
in class AbstractElement
public boolean containsPoint(LocationType lt, StateRenderer2D renderer)
containsPoint
in class AbstractElement
public int getLayerPriority()
AbstractElement
getLayerPriority
in class AbstractElement
public ParametersPanel getParametersPanel(boolean editable, MapType map)
getParametersPanel
in class AbstractElement
public boolean paramsOK(javax.swing.JPanel paramsPanel)
public void initialize(ParametersPanel paramsPanel)
initialize
in class AbstractElement
public void paint(java.awt.Graphics2D g, StateRenderer2D renderer, double rotation)
paint
in class AbstractElement
public void grow(double ammount)
grow
in interface ScalableElement
public void shrink(double ammount)
shrink
in interface ScalableElement
public void rotateLeft(double ammount)
rotateLeft
in interface RotatableElement
public void rotateRight(double ammount)
rotateRight
in interface RotatableElement
public double[] getDimension()
getDimension
in interface ScalableElement
public void setDimension(double[] newDimension)
setDimension
in interface ScalableElement
public java.lang.String getBathymetricImageFileName()
public void setBathymetricImageFileName(java.lang.String bathymetricImageFileName)
public AbstractElement.ELEMENT_TYPE getElementType()
getElementType
in class AbstractElement
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.