String orientationStr = style.getProperty("gauge-orientation"); if (orientationStr != null) { if ("vertical".equals(orientationStr)) { this.orientation = VERTICAL; } else { this.orientation = HORIZONTAL; } }
	public void setStyle(Style style) {		super.setStyle(style);		String orientationStr = style.getProperty("gauge-orientation");		if (orientationStr != null) {			if ("vertical".equals(orientationStr)) {				this.orientation = VERTICAL;			} else {				this.orientation = HORIZONTAL;			}		}		String colorStr = style.getProperty("gauge-color");		if (colorStr != null) {			this.color = Integer.parseInt( colorStr );		}		String widthStr = style.getProperty( "gauge-width");		if (widthStr != null) {			this.preferredWidth = Integer.parseInt( widthStr );		}		String heightStr = style.getProperty( "gauge-height");		if (heightStr != null) {			this.preferredHeight = Integer.parseInt( heightStr );		}		String modeStr = style.getProperty( "gauge-mode");		if (modeStr != null) {			if ("continuous".equals(modeStr)) {				this.mode = MODE_CONTINUOUS;			} else {				this.mode = MODE_CHUNKED;			}		}		String gapColorStr = style.getProperty( "gauge-gap-color");		if (gapColorStr != null) {			this.gapColor = Integer.parseInt( gapColorStr );		}		String gapWidthStr = style.getProperty( "gauge-gap-width");		if (gapWidthStr != null) {			this.gapWidth = Integer.parseInt( gapWidthStr );		}		String chunkWidthStr = style.getProperty( "gauge-chunk-width");		if (chunkWidthStr != null) {			this.chunkWidth = Integer.parseInt( chunkWidthStr );		}		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 );			}		}	}