/** * Test if the contour label is enabled. Use associated <code>ContourLineAttribute</code> if it * exists and has labelEnabledOverrideen set to <code>false</code>. */ public boolean isLabelEnabled() { if (attr_ != null && attr_.isLabelEnabledOverridden()) { return attr_.isLabelEnabled(); } else { return labelEnabled_; } }
/** * Get the contour line miter style. Use associated <code>ContourLineAttribute</code> if it exists * and has miterStyleOverrideen set to <code>false</code>. */ public int getMiterStyle() { if (attr_ != null && attr_.isMiterStyleOverridden()) { return attr_.getMiterStyle(); } else { return super.getMiterStyle(); } }
/** * Get the contour line miter limit. Use associated <code>ContourLineAttribute</code> if it exists * and has miterLimitOverrideen set to <code>false</code>. */ public float getMiterLimit() { if (attr_ != null && attr_.isMiterLimitOverridden()) { return attr_.getMiterLimit(); } else { return super.getMiterLimit(); } }
/** * Get the contour line color. Use associated <code>ContourLineAttribute</code> if it exists and * has colorOverrideen set to <code>false</code>. */ public Color getColor() { if (attr_ != null && attr_.isColorOverridden()) { return attr_.getColor(); } else { return super.getColor(); } }
/** * Get the contour line width. Use associated <code>ContourLineAttribute</code> if it exists and * has widthOverrideen set to <code>false</code>. */ public float getWidth() { if (attr_ != null && attr_.isWidthOverridden()) { return attr_.getWidth(); } else { return super.getWidth(); } }
/** * Get dash array. Use associated <code>ContourLineAttribute</code> if it exists and has * dashArrayOverrideen set to <code>false</code>. */ public float[] getDashArray() { if (attr_ != null && attr_.isDashArrayOverridden()) { return attr_.getDashArray(); } else { return super.getDashArray(); } }
/** * Get the dash phase. Use associated <code>ContourLineAttribute</code> if it exists and has * dashPhaseOverrideen set to <code>false</code>. */ public float getDashPhase() { if (attr_ != null && attr_.isDashPhaseOverridden()) { return attr_.getDashPhase(); } else { return super.getDashPhase(); } }
/** * Get the contour label format. Use associated <code>ContourLineAttribute</code> if it exists and * has labelFormatOverrideen set to <code>false</code>. */ public String getLabelFormat() { if (attr_ != null && attr_.isLabelFormatOverridden()) { return attr_.getLabelFormat(); } else { return labelFormat_; } }
/** * Get the contour label font. Use associated <code>ContourLineAttribute</code> if it exists and * has labelFontOverrideen set to <code>false</code>. */ public Font getLabelFont() { if (attr_ != null && attr_.isLabelFontOverridden()) { return attr_.getLabelFont(); } else { return labelFont_; } }
/** * Get the contour label height. Use associated <code>ContourLineAttribute</code> if it exists and * has labelHeightPOverrideen set to <code>false</code>. */ public double getLabelHeightP() { if (attr_ != null && attr_.isLabelHeightPOverridden()) { return attr_.getLabelHeightP(); } else { return labelHeightP_; } }
/** * Get the contour label color. Use associated <code>ContourLineAttribute</code> if it exists and * has labelColorOverrideen set to <code>false</code>. */ public Color getLabelColor() { if (attr_ != null && attr_.isLabelColorOverridden()) { return attr_.getLabelColor(); } else { return labelColor_; } }
/** * Return label text from associated <code>ContourLineAttribute</code>, if none return empty * string. */ public String getLabelText() { if (attr_ != null) { return attr_.getLabelText(); } else { return ""; } }
/** * Test if auto label is enabled. Use associated <code>ContourLineAttribute</code> if it exists * otherwise always returns <code>true</code>. */ public boolean isAutoLabel() { if (attr_ != null) { return attr_.isAutoLabel(); } else { return true; } }
/** Set label text for associated <code>ContourLineAttribute</code>. */ public void setLabelText(String label) { if (attr_ != null) attr_.setLabelText(label); }