Class Appearance
java.lang.Object
org.scilab.forge.scirenderer.shapes.appearance.Appearance
Basic class for appearance parameters.
- Author:
- Pierre Lando
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AppearanceReturn the default appearance.Return the fill color.Return the line color.shortReturn the line pattern.floatReturn the line width.Texture getter.voidsetFillColor(Color fillColor) Set the fill color.voidsetLineColor(Color lineColor) Set the line color.voidsetLinePattern(short linePattern) Set the line pattern.voidsetLineWidth(float lineWidth) Set the line width.voidsetTexture(Texture texture) Texture setter.
-
Field Details
-
DEFAULT_LINE_WIDTH
public static final float DEFAULT_LINE_WIDTHThe default line width.- See Also:
-
DEFAULT_LINE_PATTERN
public static final short DEFAULT_LINE_PATTERNThe default line pattern (full line). The 16 bits of the pattern represents how lines are drawn.- See Also:
-
DEFAULT_LINE_COLOR
The default line color. -
DEFAULT_FILL_COLOR
The default fill color.
-
-
Constructor Details
-
Appearance
public Appearance()Default constructor.
-
-
Method Details
-
getDefault
Return the default appearance.- Returns:
- the default appearance.
-
getTexture
-
setTexture
-
getLineWidth
public float getLineWidth()Return the line width.- Returns:
- the line width.
-
setLineWidth
public void setLineWidth(float lineWidth) Set the line width.- Parameters:
lineWidth- the new line width.
-
getLinePattern
public short getLinePattern()Return the line pattern.- Returns:
- the line pattern.
-
setLinePattern
public void setLinePattern(short linePattern) Set the line pattern.- Parameters:
linePattern- the new line pattern.
-
getLineColor
-
setLineColor
Set the line color.- Parameters:
lineColor- the new lne color.
-
getFillColor
-
setFillColor
Set the fill color.- Parameters:
fillColor- the new fill color.
-