org.zaval.lw.theme
Interface LwLineRender
- All Known Implementing Classes:
- LwColorLineRender, LwSoftLineRender, LwP3DLineRender, LwListLineRender
- public interface LwLineRender
This is interface to describe painting rules for top, left, right, bottom
lines.
|
Method Summary |
void |
bottomLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Paints bottom line from-to the given locations using the specified graphics
context. |
void |
leftLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Paints left line from-to the given locations using the specified graphics
context. |
int |
lineSize(int type)
Returns thickness of the specified line. |
void |
rightLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Paints right line from-to the given locations using the specified graphics
context. |
void |
topLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Paints top line from-to the given locations using the specified graphics
context. |
leftLine
public void leftLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
- Paints left line from-to the given locations using the specified graphics
context.
- Parameters:
g - the specified graphics context.x1 - the x location of the starting line point.y1 - the y location of the starting line point.x2 - the x location of the ending line point.y2 - the y location of the ending line point.
rightLine
public void rightLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
- Paints right line from-to the given locations using the specified graphics
context.
- Parameters:
g - the specified graphics context.x1 - the x location of the starting line point.y1 - the y location of the starting line point.x2 - the x location of the ending line point.y2 - the y location of the ending line point.
topLine
public void topLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
- Paints top line from-to the given locations using the specified graphics
context.
- Parameters:
g - the specified graphics context.x1 - the x location of the starting line point.y1 - the y location of the starting line point.x2 - the x location of the ending line point.y2 - the y location of the ending line point.
bottomLine
public void bottomLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
- Paints bottom line from-to the given locations using the specified graphics
context.
- Parameters:
g - the specified graphics context.x1 - the x location of the starting line point.y1 - the y location of the starting line point.x2 - the x location of the ending line point.y2 - the y location of the ending line point.
lineSize
public int lineSize(int type)
- Returns thickness of the specified line.
- Parameters:
type - the specified line type. Use LwToolkit.TOP, LwToolkit.BOTTOM,
LwToolkit.LEFT or LwToolkit.RIGHT constant as the argument value- Returns:
- a thickness of the specified line.
|