Package org.apache.fop.afp
Class BorderPaintingInfo
java.lang.Object
org.apache.fop.afp.BorderPaintingInfo
- All Implemented Interfaces:
PaintingInfo
Border painting information
-
Constructor Summary
ConstructorsConstructorDescriptionBorderPaintingInfo(float x1, float y1, float x2, float y2, boolean isHorizontal, int style, Color color) Main constructor -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the colorintgetStyle()Returns the stylefloatgetX1()Returns the x1 coordinatefloatgetX2()Returns the x2 coordinatefloatgetY1()Returns the y1 coordinatefloatgetY2()Returns the y2 coordinatebooleanReturns true when this is a horizontal line
-
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 coordinatey1- the y1 coordinatex2- the x2 coordinatey2- the y2 coordinateisHorizontal- true when the border line is horizontalstyle- the border stylecolor- 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
Returns the color- Returns:
- the color
-