org.scilab.forge.scirenderer.shapes.appearance
Class Appearance

java.lang.Object
  extended by org.scilab.forge.scirenderer.shapes.appearance.Appearance

public final class Appearance
extends java.lang.Object

Basic class for appearance parameters.

Author:
Pierre Lando

Field Summary
static Color DEFAULT_FILL_COLOR
          The default fill color.
static Color DEFAULT_LINE_COLOR
          The default line color.
static short DEFAULT_LINE_PATTERN
          The default line pattern (full line).
static float DEFAULT_LINE_WIDTH
          The default line width.
 
Constructor Summary
Appearance()
          Default constructor.
 
Method Summary
static Appearance getDefault()
          Return the default appearance.
 Color getFillColor()
          Return the fill color.
 Color getLineColor()
          Return the line color.
 short getLinePattern()
          Return the line pattern.
 float getLineWidth()
          Return the line width.
 Texture getTexture()
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Constructor Detail

Appearance

public Appearance()
Default constructor.

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.