Package cnuphys.splot.style
Class Styled
java.lang.Object
cnuphys.splot.style.Styled
- All Implemented Interfaces:
IStyled
-
Constructor Summary
ConstructorsConstructorDescriptionStyled()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 Summary
Modifier 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
-
Styled
public Styled()Create with all defaults. -
Styled
public Styled(int index) Generate a sort of random style- Parameters:
index- determines the style. Can be any integer
-
Styled
public 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 colorborderColor- the symbol border colorfitLineColor- the fit line colorauxLineColor- the auxiliary line colorfitLineStyle- the fit line styleauxLineStyle- the auxiliary line stylefitLineWidth- the line width for fitsfitLineWidth- the line width for auxiliary linessymbolType- the symbol typesymbolSize- the symbol size
-
Styled
Create with all defaults but the given fill color.- Parameters:
fillColor- the fill color to user.
-
Styled
Create 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
-
getFillColor
Get the fill color for the symbols- Specified by:
getFillColorin interfaceIStyled- Returns:
- the fill color for the symbols
-
getBorderColor
Description copied from interface:IStyledGet the color used for symbol borders.- Specified by:
getBorderColorin interfaceIStyled- Returns:
- the symbol border color.
-
getFitLineColor
Description copied from interface:IStyledGet the color used for fits.- Specified by:
getFitLineColorin interfaceIStyled- Returns:
- the fit line color.
-
getFitLineStyle
Description copied from interface:IStyledGet the style used for drawing fits.- Specified by:
getFitLineStylein interfaceIStyled- Returns:
- the line style for fits.
-
getFitLineWidth
public float getFitLineWidth()Description copied from interface:IStyledGet the line width for drawing fits.- Specified by:
getFitLineWidthin interfaceIStyled- Returns:
- the fit line width in pixels.
-
getSymbolType
Description copied from interface:IStyledGet the symbol used for drawing points.- Specified by:
getSymbolTypein interfaceIStyled- Returns:
- the symbol used for drawing points.
-
setFillColor
Description copied from interface:IStyledSet the color used for fill the interior area.- Specified by:
setFillColorin interfaceIStyled- Parameters:
fillColor- the fill color.
-
setBorderColor
Description copied from interface:IStyledSet the color used for symbol borders.- Specified by:
setBorderColorin interfaceIStyled- Parameters:
lineColor- the border color.
-
setFitLineColor
Description copied from interface:IStyledSet the color used for the fit drawing.- Specified by:
setFitLineColorin interfaceIStyled- Parameters:
fitColor- the fit color.
-
setFitLineStyle
Set the line style- Specified by:
setFitLineStylein interfaceIStyled- Parameters:
lineStyle- the new line style
-
setFitLineWidth
public void setFitLineWidth(float lineWidth) Set the line width- Specified by:
setFitLineWidthin interfaceIStyled- Parameters:
lineWidth- the new line width
-
setSymbolType
Set the symbol type- Specified by:
setSymbolTypein interfaceIStyled- Parameters:
lineWidth- the new symbol type
-
getSymbolSize
public int getSymbolSize()Get the symbol size (full width) in pixels.- Specified by:
getSymbolSizein interfaceIStyled- Returns:
- the symbol size (full width) in pixels.
-
setSymbolSize
public void setSymbolSize(int symbolSize) Set symbol size (full width) in pixels.- Specified by:
setSymbolSizein interfaceIStyled- Parameters:
symbolSize- symbol size (full width) in pixels.
-
getAuxLineColor
Description copied from interface:IStyledGet the color used for auxiliary lines.- Specified by:
getAuxLineColorin interfaceIStyled- Returns:
- the auxiliary line color.
-
setAuxLineColor
Description copied from interface:IStyledSet the color used for auxiliary lines.- Specified by:
setAuxLineColorin interfaceIStyled- Parameters:
auxColor- the auxiliary line color.
-
getAuxLineStyle
Description copied from interface:IStyledGet the style used for drawing fits.- Specified by:
getAuxLineStylein interfaceIStyled- Returns:
- the line style for fits.
-
setAuxLineStyle
Description copied from interface:IStyledSet the style used for drawing auxiliary lines.- Specified by:
setAuxLineStylein interfaceIStyled- Parameters:
lineStyle- the auxiliary line style.
-
getAuxLineWidth
public float getAuxLineWidth()Description copied from interface:IStyledGet the line width for drawing auxiliary lines.- Specified by:
getAuxLineWidthin interfaceIStyled- Returns:
- the auxiliary line width in pixels.
-
setAuxLineWidth
public void setAuxLineWidth(float lineWidth) Description copied from interface:IStyledSet the line width for drawing auxiliary lines.- Specified by:
setAuxLineWidthin interfaceIStyled- Parameters:
lineWidth- the auxiliary line width in pixels.
-