public void updateDataVO() { dataVO.distance = (int) lightObject.getDistance(); dataVO.directionDegree = direction; if (dataVO.type == LightType.CONE) { dataVO.coneDegree = ((ConeLight) lightObject).getConeDegree(); } dataVO.x = getX() / this.mulX; dataVO.y = getY() / this.mulY; if (dataVO.layerName == null || dataVO.layerName.equals("")) { dataVO.layerName = "Default"; } dataVO.customVars = customVariables.saveAsString(); }