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

    Constructors
    Constructor
    Description
    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

    Modifier and Type
    Method
    Description
    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
  • Constructor Details

    • LineObject

      public LineObject(float offsetX, float offsetY, float offsetX2, float offsetY2, float lineWidth, Color color)
      Default Constructor.
      Parameters:
      offsetX - X Offset from left.
      offsetY - Y Offset from baseline.
      offsetX2 - X2 Offset from left.
      offsetY2 - Y2 Offset from baseline.
      lineWidth - StrokeWidth of the line.
      color - Color of the line.
    • LineObject

      public LineObject(float offsetX, float offsetY, float offsetX2, float offsetY2, float lineWidth, Color color, boolean dashed)
      Default Constructor.
      Parameters:
      offsetX - X Offset from left.
      offsetY - Y Offset from baseline.
      offsetX2 - X2 Offset from left.
      offsetY2 - Y2 Offset from baseline.
      lineWidth - StrokeWidth of the line.
      color - Color of the line.
      dashed - if true line is dashed instead of solid.
  • Method Details

    • 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.