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 Appearance
Return the default appearance.Return the fill color.Return the line color.short
Return the line pattern.float
Return the line width.Texture getter.void
setFillColor
(Color fillColor) Set the fill color.void
setLineColor
(Color lineColor) Set the line color.void
setLinePattern
(short linePattern) Set the line pattern.void
setLineWidth
(float lineWidth) Set the line width.void
setTexture
(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
Texture getter.- Returns:
- the current texture if any.
-
setTexture
Texture setter.- Parameters:
texture
- the new texture.
-
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
Return the line color.- Returns:
- the line color.
-
setLineColor
Set the line color.- Parameters:
lineColor
- the new lne color.
-
getFillColor
Return the fill color.- Returns:
- the fill color.
-
setFillColor
Set the fill color.- Parameters:
fillColor
- the new fill color.
-