Package cnuphys.splot.style
Class Styled
java.lang.Object
cnuphys.splot.style.Styled
- All Implemented Interfaces:
- IStyled
- 
Constructor SummaryConstructorsConstructorDescriptionStyled()Create with all defaults.Styled(int index) Generate a sort of random styleCreate with all defaults but the given fill color.Create with all defaults but the given fill color.Styled(Color fillColor, Color borderColor, Color fitLineColor, Color auxLineColor, LineStyle fitLineStyle, LineStyle auxLineStyle, float fitLineWidth, float auxLineWidth, SymbolType symbolType, int symbolSize) Create a Styled object
- 
Method SummaryModifier and TypeMethodDescriptionGet the color used for auxiliary lines.Get the style used for drawing fits.floatGet the line width for drawing auxiliary lines.Get the color used for symbol borders.Get the fill color for the symbolsGet the color used for fits.Get the style used for drawing fits.floatGet the line width for drawing fits.intGet the symbol size (full width) in pixels.Get the symbol used for drawing points.voidsetAuxLineColor(Color auxColor) Set the color used for auxiliary lines.voidsetAuxLineStyle(LineStyle lineStyle) Set the style used for drawing auxiliary lines.voidsetAuxLineWidth(float lineWidth) Set the line width for drawing auxiliary lines.voidsetBorderColor(Color lineColor) Set the color used for symbol borders.voidsetFillColor(Color fillColor) Set the color used for fill the interior area.voidsetFitLineColor(Color fitColor) Set the color used for the fit drawing.voidsetFitLineStyle(LineStyle lineStyle) Set the line stylevoidsetFitLineWidth(float lineWidth) Set the line widthvoidsetSymbolSize(int symbolSize) Set symbol size (full width) in pixels.voidsetSymbolType(SymbolType symbolType) Set the symbol type
- 
Constructor Details- 
Styledpublic Styled()Create with all defaults.
- 
Styledpublic Styled(int index) Generate a sort of random style- Parameters:
- index- determines the style. Can be any integer
 
- 
Styledpublic Styled(Color fillColor, Color borderColor, Color fitLineColor, Color auxLineColor, LineStyle fitLineStyle, LineStyle auxLineStyle, float fitLineWidth, float auxLineWidth, SymbolType symbolType, int symbolSize) Create a Styled object- Parameters:
- fillColor- the fill color
- borderColor- the symbol border color
- fitLineColor- the fit line color
- auxLineColor- the auxiliary line color
- fitLineStyle- the fit line style
- auxLineStyle- the auxiliary line style
- fitLineWidth- the line width for fits
- fitLineWidth- the line width for auxiliary lines
- symbolType- the symbol type
- symbolSize- the symbol size
 
- 
StyledCreate with all defaults but the given fill color.- Parameters:
- fillColor- the fill color to user.
 
- 
StyledCreate with all defaults but the given fill color. The link color is set a little darker or lighter.- Parameters:
- fillColor- the fill color to user.
- darkerLineColor- if true/false make line color darker/lighter than fill color.
 
 
- 
- 
Method Details- 
getFillColorGet the fill color for the symbols- Specified by:
- getFillColorin interface- IStyled
- Returns:
- the fill color for the symbols
 
- 
getBorderColorDescription copied from interface:IStyledGet the color used for symbol borders.- Specified by:
- getBorderColorin interface- IStyled
- Returns:
- the symbol border color.
 
- 
getFitLineColorDescription copied from interface:IStyledGet the color used for fits.- Specified by:
- getFitLineColorin interface- IStyled
- Returns:
- the fit line color.
 
- 
getFitLineStyleDescription copied from interface:IStyledGet the style used for drawing fits.- Specified by:
- getFitLineStylein interface- IStyled
- Returns:
- the line style for fits.
 
- 
getFitLineWidthpublic float getFitLineWidth()Description copied from interface:IStyledGet the line width for drawing fits.- Specified by:
- getFitLineWidthin interface- IStyled
- Returns:
- the fit line width in pixels.
 
- 
getSymbolTypeDescription copied from interface:IStyledGet the symbol used for drawing points.- Specified by:
- getSymbolTypein interface- IStyled
- Returns:
- the symbol used for drawing points.
 
- 
setFillColorDescription copied from interface:IStyledSet the color used for fill the interior area.- Specified by:
- setFillColorin interface- IStyled
- Parameters:
- fillColor- the fill color.
 
- 
setBorderColorDescription copied from interface:IStyledSet the color used for symbol borders.- Specified by:
- setBorderColorin interface- IStyled
- Parameters:
- lineColor- the border color.
 
- 
setFitLineColorDescription copied from interface:IStyledSet the color used for the fit drawing.- Specified by:
- setFitLineColorin interface- IStyled
- Parameters:
- fitColor- the fit color.
 
- 
setFitLineStyleSet the line style- Specified by:
- setFitLineStylein interface- IStyled
- Parameters:
- lineStyle- the new line style
 
- 
setFitLineWidthpublic void setFitLineWidth(float lineWidth) Set the line width- Specified by:
- setFitLineWidthin interface- IStyled
- Parameters:
- lineWidth- the new line width
 
- 
setSymbolTypeSet the symbol type- Specified by:
- setSymbolTypein interface- IStyled
- Parameters:
- lineWidth- the new symbol type
 
- 
getSymbolSizepublic int getSymbolSize()Get the symbol size (full width) in pixels.- Specified by:
- getSymbolSizein interface- IStyled
- Returns:
- the symbol size (full width) in pixels.
 
- 
setSymbolSizepublic void setSymbolSize(int symbolSize) Set symbol size (full width) in pixels.- Specified by:
- setSymbolSizein interface- IStyled
- Parameters:
- symbolSize- symbol size (full width) in pixels.
 
- 
getAuxLineColorDescription copied from interface:IStyledGet the color used for auxiliary lines.- Specified by:
- getAuxLineColorin interface- IStyled
- Returns:
- the auxiliary line color.
 
- 
setAuxLineColorDescription copied from interface:IStyledSet the color used for auxiliary lines.- Specified by:
- setAuxLineColorin interface- IStyled
- Parameters:
- auxColor- the auxiliary line color.
 
- 
getAuxLineStyleDescription copied from interface:IStyledGet the style used for drawing fits.- Specified by:
- getAuxLineStylein interface- IStyled
- Returns:
- the line style for fits.
 
- 
setAuxLineStyleDescription copied from interface:IStyledSet the style used for drawing auxiliary lines.- Specified by:
- setAuxLineStylein interface- IStyled
- Parameters:
- lineStyle- the auxiliary line style.
 
- 
getAuxLineWidthpublic float getAuxLineWidth()Description copied from interface:IStyledGet the line width for drawing auxiliary lines.- Specified by:
- getAuxLineWidthin interface- IStyled
- Returns:
- the auxiliary line width in pixels.
 
- 
setAuxLineWidthpublic void setAuxLineWidth(float lineWidth) Description copied from interface:IStyledSet the line width for drawing auxiliary lines.- Specified by:
- setAuxLineWidthin interface- IStyled
- Parameters:
- lineWidth- the auxiliary line width in pixels.
 
 
-