com.bluemarsh.jswat.view
Interface DrawContext

All Known Implementing Classes:
BasicDrawContext

public interface DrawContext

This interface provides methods for getting and setting various drawing attributes. During painting, each DrawLayer receives a DrawContext and has the opportunity to modify the context.

Author:
Nathan Fiedler

Method Summary
 java.awt.Color getBackColor()
          Get current background color.
 java.awt.Font getFont()
          Get current font.
 java.awt.Color getForeColor()
          Get current foreground color.
 void setBackColor(java.awt.Color color)
          Set current background color.
 void setFont(java.awt.Font font)
          Set current font.
 void setForeColor(java.awt.Color color)
          Set current foreground color.
 

Method Detail

getBackColor

public java.awt.Color getBackColor()
Get current background color.
Returns:
background color.

getFont

public java.awt.Font getFont()
Get current font.
Returns:
font.

getForeColor

public java.awt.Color getForeColor()
Get current foreground color.
Returns:
foreground color.

setBackColor

public void setBackColor(java.awt.Color color)
Set current background color.
Parameters:
color - background color.

setForeColor

public void setForeColor(java.awt.Color color)
Set current foreground color.
Parameters:
color - foreground color.

setFont

public void setFont(java.awt.Font font)
Set current font.
Parameters:
font - new font.