Class Appearance
- java.lang.Object
-
- org.scilab.forge.scirenderer.shapes.appearance.Appearance
-
public final class Appearance extends java.lang.ObjectBasic class for appearance parameters.- Author:
- Pierre Lando
-
-
Field Summary
Fields Modifier and Type Field Description static ColorDEFAULT_FILL_COLORThe default fill color.static ColorDEFAULT_LINE_COLORThe default line color.static shortDEFAULT_LINE_PATTERNThe default line pattern (full line).static floatDEFAULT_LINE_WIDTHThe default line width.
-
Constructor Summary
Constructors Constructor Description Appearance()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppearancegetDefault()Return the default appearance.ColorgetFillColor()Return the fill color.ColorgetLineColor()Return the line color.shortgetLinePattern()Return the line pattern.floatgetLineWidth()Return the line width.TexturegetTexture()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 Detail
-
DEFAULT_LINE_WIDTH
public static final float DEFAULT_LINE_WIDTH
The default line width.- See Also:
- Constant Field Values
-
DEFAULT_LINE_PATTERN
public static final short DEFAULT_LINE_PATTERN
The default line pattern (full line). The 16 bits of the pattern represents how lines are drawn.- See Also:
- Constant Field Values
-
DEFAULT_LINE_COLOR
public static final Color DEFAULT_LINE_COLOR
The default line color.
-
DEFAULT_FILL_COLOR
public static final Color DEFAULT_FILL_COLOR
The default fill color.
-
-
Method Detail
-
getDefault
public static Appearance getDefault()
Return the default appearance.- Returns:
- the default appearance.
-
getTexture
public Texture getTexture()
Texture getter.- Returns:
- the current texture if any.
-
setTexture
public void setTexture(Texture texture)
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
public Color getLineColor()
Return the line color.- Returns:
- the line color.
-
setLineColor
public void setLineColor(Color lineColor)
Set the line color.- Parameters:
lineColor- the new lne color.
-
getFillColor
public Color getFillColor()
Return the fill color.- Returns:
- the fill color.
-
setFillColor
public void setFillColor(Color fillColor)
Set the fill color.- Parameters:
fillColor- the new fill color.
-
-