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.float
Get 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.float
Get the line width for drawing fits.int
Get the symbol size (full width) in pixels.Get the symbol used for drawing points.void
setAuxLineColor
(Color auxColor) Set the color used for auxiliary lines.void
setAuxLineStyle
(LineStyle lineStyle) Set the style used for drawing auxiliary lines.void
setAuxLineWidth
(float lineWidth) Set the line width for drawing auxiliary lines.void
setBorderColor
(Color lineColor) Set the color used for symbol borders.void
setFillColor
(Color fillColor) Set the color used for fill the interior area.void
setFitLineColor
(Color fitColor) Set the color used for the fit drawing.void
setFitLineStyle
(LineStyle lineStyle) Set the line stylevoid
setFitLineWidth
(float lineWidth) Set the line widthvoid
setSymbolSize
(int symbolSize) Set symbol size (full width) in pixels.void
setSymbolType
(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:
getFillColor
in interfaceIStyled
- Returns:
- the fill color for the symbols
-
getBorderColor
Description copied from interface:IStyled
Get the color used for symbol borders.- Specified by:
getBorderColor
in interfaceIStyled
- Returns:
- the symbol border color.
-
getFitLineColor
Description copied from interface:IStyled
Get the color used for fits.- Specified by:
getFitLineColor
in interfaceIStyled
- Returns:
- the fit line color.
-
getFitLineStyle
Description copied from interface:IStyled
Get the style used for drawing fits.- Specified by:
getFitLineStyle
in interfaceIStyled
- Returns:
- the line style for fits.
-
getFitLineWidth
public float getFitLineWidth()Description copied from interface:IStyled
Get the line width for drawing fits.- Specified by:
getFitLineWidth
in interfaceIStyled
- Returns:
- the fit line width in pixels.
-
getSymbolType
Description copied from interface:IStyled
Get the symbol used for drawing points.- Specified by:
getSymbolType
in interfaceIStyled
- Returns:
- the symbol used for drawing points.
-
setFillColor
Description copied from interface:IStyled
Set the color used for fill the interior area.- Specified by:
setFillColor
in interfaceIStyled
- Parameters:
fillColor
- the fill color.
-
setBorderColor
Description copied from interface:IStyled
Set the color used for symbol borders.- Specified by:
setBorderColor
in interfaceIStyled
- Parameters:
lineColor
- the border color.
-
setFitLineColor
Description copied from interface:IStyled
Set the color used for the fit drawing.- Specified by:
setFitLineColor
in interfaceIStyled
- Parameters:
fitColor
- the fit color.
-
setFitLineStyle
Set the line style- Specified by:
setFitLineStyle
in interfaceIStyled
- Parameters:
lineStyle
- the new line style
-
setFitLineWidth
public void setFitLineWidth(float lineWidth) Set the line width- Specified by:
setFitLineWidth
in interfaceIStyled
- Parameters:
lineWidth
- the new line width
-
setSymbolType
Set the symbol type- Specified by:
setSymbolType
in interfaceIStyled
- Parameters:
lineWidth
- the new symbol type
-
getSymbolSize
public int getSymbolSize()Get the symbol size (full width) in pixels.- Specified by:
getSymbolSize
in interfaceIStyled
- Returns:
- the symbol size (full width) in pixels.
-
setSymbolSize
public void setSymbolSize(int symbolSize) Set symbol size (full width) in pixels.- Specified by:
setSymbolSize
in interfaceIStyled
- Parameters:
symbolSize
- symbol size (full width) in pixels.
-
getAuxLineColor
Description copied from interface:IStyled
Get the color used for auxiliary lines.- Specified by:
getAuxLineColor
in interfaceIStyled
- Returns:
- the auxiliary line color.
-
setAuxLineColor
Description copied from interface:IStyled
Set the color used for auxiliary lines.- Specified by:
setAuxLineColor
in interfaceIStyled
- Parameters:
auxColor
- the auxiliary line color.
-
getAuxLineStyle
Description copied from interface:IStyled
Get the style used for drawing fits.- Specified by:
getAuxLineStyle
in interfaceIStyled
- Returns:
- the line style for fits.
-
setAuxLineStyle
Description copied from interface:IStyled
Set the style used for drawing auxiliary lines.- Specified by:
setAuxLineStyle
in interfaceIStyled
- Parameters:
lineStyle
- the auxiliary line style.
-
getAuxLineWidth
public float getAuxLineWidth()Description copied from interface:IStyled
Get the line width for drawing auxiliary lines.- Specified by:
getAuxLineWidth
in interfaceIStyled
- Returns:
- the auxiliary line width in pixels.
-
setAuxLineWidth
public void setAuxLineWidth(float lineWidth) Description copied from interface:IStyled
Set the line width for drawing auxiliary lines.- Specified by:
setAuxLineWidth
in interfaceIStyled
- Parameters:
lineWidth
- the auxiliary line width in pixels.
-