String modeStr = style.getProperty( "gauge-mode"); if (modeStr != null) { if ("chunked".equals(modeStr)) {
Integer modeInt = style.getIntProperty( "gauge-mode"); if (modeInt != null) { if (modeInt.intValue() == 0) {
	public void setStyle(Style style) {		super.setStyle(style);		//#ifdef polish.css.gauge-color			Integer gaugeColor = style.getIntProperty("gauge-color");			if (gaugeColor != null) {				this.color = gaugeColor.intValue();			}		//#endif		//#ifdef polish.css.gauge-width			Integer width = style.getIntProperty( "gauge-width");			if (width != null) {				this.preferredWidth = width.intValue();			}		//#endif		//#ifdef polish.css.gauge-height			Integer height = style.getIntProperty( "gauge-height");			if (height != null) {				this.preferredHeight = height.intValue();			}		//#endif		//#ifdef polish.css.gauge-mode			String modeStr = style.getProperty( "gauge-mode");			if (modeStr != null) {				if ("chunked".equals(modeStr)) {					this.mode = MODE_CHUNKED;				} else {					this.mode = MODE_CONTINUOUS;				}			}		//#endif		//#ifdef polish.css.gauge-gap-color			Integer gapColorInt = style.getIntProperty( "gauge-gap-color");			if (gapColorInt != null) {				this.gapColor = gapColorInt.intValue();			}		//#endif		//#ifdef polish.css.gauge-gap-width			Integer gapWidthInt = style.getIntProperty( "gauge-gap-width");			if (gapWidthInt != null) {				this.gapWidth = gapWidthInt.intValue();			}		//#endif		//#ifdef polish.css.gauge-chunk-width			Integer chunkWidthInt = style.getIntProperty( "gauge-chunk-width");			if (chunkWidthInt != null) {				this.chunkWidth = chunkWidthInt.intValue();			}		//#endif		//#ifdef polish.css.gauge-image			String imageStr = style.getProperty( "gauge-image");			if (imageStr != null) {				try {					this.image = StyleSheet.getImage( imageStr, this, false );				} catch (IOException e) {					//#debug error					Debug.debug("unable to load gauge-image [" + imageStr + "]: " + e.getMessage(), e );				}			}		//#endif		if (this.maxValue != INDEFINITE) {			//#ifdef polish.css.gauge-show-value				Boolean showValueBool = style.getBooleanProperty("gauge-show-value");				if (showValueBool != null) {					this.showValue = showValueBool.booleanValue();				}			//#endif			if (style.font != null) {				this.font = style.font;			}			this.fontColor = style.fontColor;			//#ifdef polish.css.gauge-value-align				String valuePositionStr =  style.getProperty( "gauge-value-align" );				if (valuePositionStr != null) {					if ("right".equals(valuePositionStr)) {						this.isValueLeft = false;					} else {						this.isValueLeft = true;					}				}			//#endif		}	}