org.apache.poi.hslf.model
Class Line

java.lang.Object
  extended by org.apache.poi.hslf.model.Shape
      extended by org.apache.poi.hslf.model.SimpleShape
          extended by org.apache.poi.hslf.model.Line

public class Line
extends SimpleShape

Represents a line in a PowerPoint drawing

Author:
Yegor Kozlov

Field Summary
static int EndCapFlat
          Line ends at end point
static int EndCapRound
          Rounded ends - the default
static int EndCapSquare
          Square protrudes by half line width
static int LineDashDotDotSys
          PS_DASHDOTDOT system dash style
static int LineDashDotGEL
          dash short dash
static int LineDashDotSys
          PS_DASHDOT system dash style
static int LineDashGEL
          dash style
static int LineDashSys
          PS_DASH system dash style
static int LineDotGEL
          square dot style
static int LineDotSys
          PS_DOT system dash style
static int LineLongDashDotDotGEL
          long dash short dash short dash
static int LineLongDashDotGEL
          long dash short dash
static int LineLongDashGEL
          long dash style
static int LineSolid
          Solid (continuous) pen
 
Fields inherited from class org.apache.poi.hslf.model.Shape
_escherContainer, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, MASTER_DPI, PIXEL_DPI, POINT_DPI
 
Constructor Summary
  Line()
           
protected Line(EscherContainerRecord escherRecord, Shape parent)
           
  Line(Shape parent)
           
 
Method Summary
protected  EscherContainerRecord createSpContainer(boolean isChild)
          Create a new Shape
 
Methods inherited from class org.apache.poi.hslf.model.SimpleShape
getLineColor, getLineStyle, getLineWidth, setFillColor, setLineColor, setLineStyle, setLineWidth
 
Methods inherited from class org.apache.poi.hslf.model.Shape
afterInsert, getAnchor, getEscherChild, getEscherProperty, getParent, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setShapeType, setSheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LineSolid

public static final int LineSolid
Solid (continuous) pen

See Also:
Constant Field Values

LineDashSys

public static final int LineDashSys
PS_DASH system dash style

See Also:
Constant Field Values

LineDotSys

public static final int LineDotSys
PS_DOT system dash style

See Also:
Constant Field Values

LineDashDotSys

public static final int LineDashDotSys
PS_DASHDOT system dash style

See Also:
Constant Field Values

LineDashDotDotSys

public static final int LineDashDotDotSys
PS_DASHDOTDOT system dash style

See Also:
Constant Field Values

LineDotGEL

public static final int LineDotGEL
square dot style

See Also:
Constant Field Values

LineDashGEL

public static final int LineDashGEL
dash style

See Also:
Constant Field Values

LineLongDashGEL

public static final int LineLongDashGEL
long dash style

See Also:
Constant Field Values

LineDashDotGEL

public static final int LineDashDotGEL
dash short dash

See Also:
Constant Field Values

LineLongDashDotGEL

public static final int LineLongDashDotGEL
long dash short dash

See Also:
Constant Field Values

LineLongDashDotDotGEL

public static final int LineLongDashDotDotGEL
long dash short dash short dash

See Also:
Constant Field Values

EndCapFlat

public static final int EndCapFlat
Line ends at end point

See Also:
Constant Field Values

EndCapRound

public static final int EndCapRound
Rounded ends - the default

See Also:
Constant Field Values

EndCapSquare

public static final int EndCapSquare
Square protrudes by half line width

See Also:
Constant Field Values
Constructor Detail

Line

protected Line(EscherContainerRecord escherRecord,
               Shape parent)

Line

public Line(Shape parent)

Line

public Line()
Method Detail

createSpContainer

protected EscherContainerRecord createSpContainer(boolean isChild)
Description copied from class: SimpleShape
Create a new Shape

Overrides:
createSpContainer in class SimpleShape
Parameters:
isChild - true if the Line is inside a group, false otherwise
Returns:
the record container which holds this shape


Copyright 2006 The Apache Software Foundation or its licensors, as applicable.