Class BorderPaintingInfo

java.lang.Object
org.apache.fop.afp.BorderPaintingInfo
All Implemented Interfaces:
PaintingInfo

public class BorderPaintingInfo extends Object implements PaintingInfo
Border painting information
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Color
     
    private final boolean
     
    private final int
     
    private final float
     
    private final float
     
    private final float
     
    private final float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BorderPaintingInfo(float x1, float y1, float x2, float y2, boolean isHorizontal, int style, Color color)
    Main constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the color
    int
    Returns the style
    float
    Returns the x1 coordinate
    float
    Returns the x2 coordinate
    float
    Returns the y1 coordinate
    float
    Returns the y2 coordinate
    boolean
    Returns true when this is a horizontal line

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x1

      private final float x1
    • y1

      private final float y1
    • x2

      private final float x2
    • y2

      private final float y2
    • isHorizontal

      private final boolean isHorizontal
    • style

      private final int style
    • color

      private final Color color
  • Constructor Details

    • BorderPaintingInfo

      public BorderPaintingInfo(float x1, float y1, float x2, float y2, boolean isHorizontal, int style, Color color)
      Main constructor
      Parameters:
      x1 - the x1 coordinate
      y1 - the y1 coordinate
      x2 - the x2 coordinate
      y2 - the y2 coordinate
      isHorizontal - true when the border line is horizontal
      style - the border style
      color - the border color
  • Method Details

    • getX1

      public float getX1()
      Returns the x1 coordinate
      Returns:
      the x1 coordinate
    • getY1

      public float getY1()
      Returns the y1 coordinate
      Returns:
      the y1 coordinate
    • getX2

      public float getX2()
      Returns the x2 coordinate
      Returns:
      the x2 coordinate
    • getY2

      public float getY2()
      Returns the y2 coordinate
      Returns:
      the y2 coordinate
    • isHorizontal

      public boolean isHorizontal()
      Returns true when this is a horizontal line
      Returns:
      true when this is a horizontal line
    • getStyle

      public int getStyle()
      Returns the style
      Returns:
      the style
    • getColor

      public Color getColor()
      Returns the color
      Returns:
      the color