net.sourceforge.jeuclid.layout
Class LineObject
java.lang.Object
net.sourceforge.jeuclid.layout.LineObject
- All Implemented Interfaces:
- GraphicsObject
public class LineObject
- extends Object
- implements GraphicsObject
- Version:
- $Revision: 88b901bf20fb $
Constructor Summary |
LineObject(float offsetX,
float offsetY,
float offsetX2,
float offsetY2,
float lineWidth,
Color color)
Default Constructor. |
LineObject(float offsetX,
float offsetY,
float offsetX2,
float offsetY2,
float lineWidth,
Color color,
boolean dashed)
Default Constructor. |
Method Summary |
void |
paint(float x,
float y,
Graphics2D g)
Actually draw the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineObject
public LineObject(float offsetX,
float offsetY,
float offsetX2,
float offsetY2,
float lineWidth,
Color color)
- Default Constructor.
- Parameters:
color
- Color of the line.lineWidth
- StrokeWidth of the line.offsetY
- Y Offset from baseline.offsetX
- X Offset from left.offsetY2
- Y2 Offset from baseline.offsetX2
- X2 Offset from left.
LineObject
public LineObject(float offsetX,
float offsetY,
float offsetX2,
float offsetY2,
float lineWidth,
Color color,
boolean dashed)
- Default Constructor.
- Parameters:
color
- Color of the line.lineWidth
- StrokeWidth of the line.offsetY
- Y Offset from baseline.offsetX
- X Offset from left.offsetY2
- Y2 Offset from baseline.offsetX2
- X2 Offset from left.dashed
- if true line is dashed instead of solid.
paint
public void paint(float x,
float y,
Graphics2D g)
- Actually draw the object.
- Specified by:
paint
in interface GraphicsObject
- Parameters:
x
- X-offset of surrounding element.y
- Y-Offset of baseline of surrounding element.g
- Graphics Context.
Copyright © 2002-2010 The JEuclid project. All Rights Reserved.