Package org.meteoinfo.legend
Class PolygonBreak
- java.lang.Object
-
- org.meteoinfo.legend.ColorBreak
-
- org.meteoinfo.legend.PolygonBreak
-
- Direct Known Subclasses:
BarBreak
public class PolygonBreak extends ColorBreak
Polygon break class
-
-
Field Summary
-
Fields inherited from class org.meteoinfo.legend.ColorBreak
_breakType
-
-
Constructor Summary
Constructors Constructor Description PolygonBreak()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Cloenjava.awt.ColorgetBackColor()Get background colorjava.awt.ColorgetOutlineColor()Get outline colorfloatgetOutlineSize()Get outline sizejava.lang.ObjectgetPropertyObject()Get property objectHatchStylegetStyle()Get hatch styleintgetStyleSize()Get style sizebooleanisDrawFill()Get if draw fillbooleanisDrawOutline()Get if draw outlinebooleanisMaskout()Get if maskoutbooleanisUsingHatchStyle()Get if using hatch stylevoidsetBackColor(java.awt.Color c)Set background colorvoidsetDrawFill(boolean isTrue)Set if draw fillvoidsetDrawOutline(boolean isTrue)Set if draw outlinevoidsetMaskout(boolean isTrue)Set if maskoutvoidsetOutlineColor(java.awt.Color c)Set outline colorvoidsetOutlineSize(float size)Set outline sizevoidsetStyle(java.lang.String value)Set hatch style by a stringvoidsetStyle(HatchStyle value)Set hatch stylevoidsetStyleSize(int value)Set style size-
Methods inherited from class org.meteoinfo.legend.ColorBreak
exportToXML, getBreakType, getCaption, getColor, getEndValue, getStartValue, getTag, getValueString, isDrawShape, isNoData, setBreakType, setCaption, setColor, setDrawShape, setEndValue, setNoData, setStartValue, setTag
-
-
-
-
Method Detail
-
getOutlineColor
public java.awt.Color getOutlineColor()
Get outline color- Returns:
- Outline color
-
setOutlineColor
public void setOutlineColor(java.awt.Color c)
Set outline color- Parameters:
c- Outline color
-
getOutlineSize
public float getOutlineSize()
Get outline size- Returns:
- Outline size
-
setOutlineSize
public void setOutlineSize(float size)
Set outline size- Parameters:
size- Outline size
-
isDrawOutline
public boolean isDrawOutline()
Get if draw outline- Returns:
- Boolean
-
setDrawOutline
public void setDrawOutline(boolean isTrue)
Set if draw outline- Parameters:
isTrue- Boolean
-
isDrawFill
public boolean isDrawFill()
Get if draw fill- Returns:
- Boolean
-
setDrawFill
public void setDrawFill(boolean isTrue)
Set if draw fill- Parameters:
isTrue- Boolean
-
getBackColor
public java.awt.Color getBackColor()
Get background color- Returns:
- Background color
-
setBackColor
public void setBackColor(java.awt.Color c)
Set background color- Parameters:
c- Background color
-
isUsingHatchStyle
public boolean isUsingHatchStyle()
Get if using hatch style- Returns:
- Boolean
-
getStyle
public HatchStyle getStyle()
Get hatch style- Returns:
- Hatch style
-
setStyle
public void setStyle(HatchStyle value)
Set hatch style- Parameters:
value- Hatch style
-
setStyle
public void setStyle(java.lang.String value)
Set hatch style by a string- Parameters:
value- Hatch style string
-
getStyleSize
public int getStyleSize()
Get style size- Returns:
- Style size
-
setStyleSize
public void setStyleSize(int value)
Set style size- Parameters:
value- Style size
-
isMaskout
public boolean isMaskout()
Get if maskout- Returns:
- Boolean
-
setMaskout
public void setMaskout(boolean isTrue)
Set if maskout- Parameters:
isTrue- Boolean
-
getPropertyObject
public java.lang.Object getPropertyObject()
Get property object- Overrides:
getPropertyObjectin classColorBreak- Returns:
- Custom property object
-
clone
public java.lang.Object clone()
Cloen- Overrides:
clonein classColorBreak- Returns:
- PolygonBreak
-
-