Package edu.cnu.mdi.graphics.style
Interface IStyled
- All Known Implementing Classes:
Styled
public interface IStyled
-
Method Summary
Modifier and TypeMethodDescriptionGet the color used for auxiliary lines.Get the style used for drawing auxiliary lines.floatGet the line width for drawing auxiliary lines.Get the color used for symbol borders.Get the color used for fill the interior area.Get the color used for the primary line (e.g.Get the style used for drawing the primary line (seegetLineColor()).floatGet the line width for drawing the primary line.default BasicStrokeGet the stroke derived from the primary line width and style.intGet the symbol size (full width) in pixels.Get the symbol used for drawing points.Get the color used for text.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 borderColor) Set the color used for symbol borders.voidsetFillColor(Color fillColor) Set the color used for fill the interior area.voidsetLineColor(Color lineColor) Set the color used for the primary line (seegetLineColor()).voidsetLineStyle(LineStyle lineStyle) Set the style used for drawing the primary line (seesetLineColor(java.awt.Color)).voidsetLineWidth(float lineWidth) Set the line width for drawing the primary line.voidsetSymbolSize(int symbolSize) Set symbol size (full width) in pixels.voidsetSymbolType(SymbolType symbolType) Set the symbol used for drawing points.voidsetTextColor(Color textColor) Set the color used for text.
-
Method Details
-
getFillColor
Color getFillColor()Get the color used for fill the interior area.- Returns:
- the fill color.
-
setFillColor
Set the color used for fill the interior area.- Parameters:
fillColor- the fill color.
-
getBorderColor
Color getBorderColor()Get the color used for symbol borders.- Returns:
- the symbol border color.
-
setBorderColor
Set the color used for symbol borders.- Parameters:
borderColor- the border color.
-
setTextColor
Set the color used for text.- Parameters:
textColor- the text color.
-
getTextColor
Color getTextColor()Get the color used for text.- Returns:
- the text color.
-
getLineColor
Color getLineColor()Get the color used for the primary line (e.g. an item's outline, a curve's fit line, or a connector's stroke, depending on the implementer).- Returns:
- the line color.
-
getAuxLineColor
Color getAuxLineColor()Get the color used for auxiliary lines.- Returns:
- the auxiliary line color.
-
setLineColor
Set the color used for the primary line (seegetLineColor()).- Parameters:
lineColor- the line color.
-
setAuxLineColor
Set the color used for auxiliary lines.- Parameters:
auxColor- the auxiliary line color.
-
getLineStyle
LineStyle getLineStyle()Get the style used for drawing the primary line (seegetLineColor()).- Returns:
- the primary line style.
-
getAuxLineStyle
LineStyle getAuxLineStyle()Get the style used for drawing auxiliary lines.- Returns:
- the auxiliary line style.
-
setLineStyle
Set the style used for drawing the primary line (seesetLineColor(java.awt.Color)).- Parameters:
lineStyle- the primary line style.
-
setAuxLineStyle
Set the style used for drawing auxiliary lines.- Parameters:
lineStyle- the auxiliary line style.
-
getSymbolType
SymbolType getSymbolType()Get the symbol used for drawing points.- Returns:
- the symbol used for drawing points.
-
setSymbolType
Set the symbol used for drawing points.- Parameters:
symbolType- the symbol used for drawing points.
-
getLineWidth
float getLineWidth()Get the line width for drawing the primary line.- Returns:
- the primary line width in pixels.
-
getAuxLineWidth
float getAuxLineWidth()Get the line width for drawing auxiliary lines.- Returns:
- the auxiliary line width in pixels.
-
setLineWidth
void setLineWidth(float lineWidth) Set the line width for drawing the primary line.- Parameters:
lineWidth- the line width in pixels.
-
setAuxLineWidth
void setAuxLineWidth(float lineWidth) Set the line width for drawing auxiliary lines.- Parameters:
lineWidth- the auxiliary line width in pixels.
-
getSymbolSize
int getSymbolSize()Get the symbol size (full width) in pixels.- Returns:
- the symbol size (full width) in pixels.
-
setSymbolSize
void setSymbolSize(int symbolSize) Set symbol size (full width) in pixels.- Parameters:
symbolSize- symbol size (full width) in pixels.
-
getStroke
Get the stroke derived from the primary line width and style.- Returns:
- the stroke used for drawing the primary line.
-