public class Model3DElement extends AbstractElement implements ScalableElement, RotatableElement, PropertiesProvider
AbstractElement.ELEMENT_TYPE
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_ROOT_ELEMENT |
protected java.lang.String |
originalFilePath |
centerLocation, copyChars, dialog, doc, guinea, hiddenCheck, id, isLoadOk, objName, obstacleCheck, paramsPanel, selected, takenNames, transp, transparency, userCancel
Constructor and Description |
---|
Model3DElement() |
Model3DElement(MapGroup mg,
MapType map) |
Model3DElement(java.lang.String xml) |
Model3DElement(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 point,
StateRenderer2D renderer) |
double[] |
getDimension() |
AbstractElement.ELEMENT_TYPE |
getElementType() |
java.awt.Image |
getImage2D() |
java.lang.String |
getImage2DFilename() |
double |
getImage2DScale() |
int |
getLayerPriority()
Returns the showing priority for this object (0 normal, <0 background, >0 on top)
|
java.lang.String |
getModel3DFilename() |
double |
getModel3DScale() |
java.lang.String |
getOriginalFilePath() |
ParametersPanel |
getParametersPanel(boolean editable,
MapType map) |
com.l2fprod.common.propertysheet.DefaultProperty[] |
getProperties() |
java.lang.String |
getPropertiesDialogTitle() |
java.lang.String[] |
getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties) |
java.lang.String |
getType() |
double |
getYaw() |
void |
grow(double ammount) |
void |
initialize(ParametersPanel paramsPanel) |
boolean |
isHas2DImage() |
boolean |
isImage2DFixedSize() |
boolean |
load(org.dom4j.Element elem)
Should set
XmlInputMethods.isLoadOk() return value. |
void |
paint(java.awt.Graphics2D g2,
StateRenderer2D renderer,
double rotation) |
void |
rotateLeft(double ammount) |
void |
rotateRight(double ammount) |
void |
setDimension(double[] newDimension) |
void |
setHas2DImage(boolean has2DImage) |
void |
setImage2D(java.awt.Image image2D) |
void |
setImage2DFilename(java.lang.String image2DFilename) |
void |
setImage2DFixedSize(boolean image2DFixedSize) |
void |
setImage2DScale(double image2DScale) |
void |
setModel3DFilename(java.lang.String model3DFilename) |
void |
setModel3DScale(double model3DScale) |
void |
setOriginalFilePath(java.lang.String originalFilePath) |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
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, 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
protected static final java.lang.String DEFAULT_ROOT_ELEMENT
protected java.lang.String originalFilePath
public Model3DElement()
public Model3DElement(java.lang.String xml)
xml
- public Model3DElement(java.lang.String xml, java.lang.String originalFilePath)
public boolean containsPoint(LocationType point, 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 java.lang.String getType()
getType
in class AbstractElement
public boolean isHas2DImage()
public void setHas2DImage(boolean has2DImage)
has2DImage
- The has2DImage to set.public java.awt.Image getImage2D()
public void setImage2D(java.awt.Image image2D)
image2D
- The image2D to set.public java.lang.String getImage2DFilename()
public void setImage2DFilename(java.lang.String image2DFilename)
image2DFilename
- The image2DFilename to set.public boolean isImage2DFixedSize()
public void setImage2DFixedSize(boolean image2DFixedSize)
image2DFixedSize
- The image2DFixedSize to set.public double getImage2DScale()
public void setImage2DScale(double image2DScale)
image2DScale
- The image2DScale to set.public java.lang.String getModel3DFilename()
public void setModel3DFilename(java.lang.String model3DFilename)
model3DFilename
- The model3DFilename to set.public double getModel3DScale()
public void setModel3DScale(double model3DScale)
model3DScale
- The model3DScale to set.public java.lang.String getOriginalFilePath()
public void setOriginalFilePath(java.lang.String originalFilePath)
originalFilePath
- The originalFilePath to set.public void initialize(ParametersPanel paramsPanel)
initialize
in class AbstractElement
public void paint(java.awt.Graphics2D g2, StateRenderer2D renderer, double rotation)
paint
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 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 com.l2fprod.common.propertysheet.DefaultProperty[] getProperties()
getProperties
in interface PropertiesProvider
public java.lang.String getPropertiesDialogTitle()
getPropertiesDialogTitle
in interface PropertiesProvider
public java.lang.String[] getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties)
getPropertiesErrors
in interface PropertiesProvider
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties
in interface PropertiesProvider
public double getYaw()
getYaw
in interface RotatableElement
getYaw
in class AbstractElement
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 grow(double ammount)
grow
in interface ScalableElement
public void setDimension(double[] newDimension)
setDimension
in interface ScalableElement
public void shrink(double ammount)
shrink
in interface ScalableElement
public AbstractElement.ELEMENT_TYPE getElementType()
getElementType
in class AbstractElement
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.