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 final class Line
extends SimpleShape

Represents a line in a PowerPoint drawing

Author:
Yegor Kozlov

Field Summary
static int LINE_DOUBLE
          Double lines of equal width
static int LINE_SIMPLE
          Single line (of width lineWidth)
static int LINE_THICKTHIN
          Double lines, one thick, one thin
static int LINE_THINTHICK
          Double lines, reverse order
static int LINE_TRIPLE
          Three lines, thin, thick, thin
static int PEN_DASH
          dash style
static int PEN_DASHDOT
          PS_DASHDOT system dash style
static int PEN_DASHDOTDOT
          PS_DASHDOTDOT system dash style
static int PEN_DASHDOTGEL
          dash short dash
static int PEN_DOT
          PS_DOT system dash style
static int PEN_DOTGEL
          square dot style
static int PEN_LONGDASHDOTDOTGEL
          long dash short dash short dash
static int PEN_LONGDASHDOTGEL
          long dash short dash
static int PEN_LONGDASHGEL
          long dash style
static int PEN_PS_DASH
          PS_DASH system dash style
static int PEN_SOLID
          Solid (continuous) pen
 
Fields inherited from class org.apache.poi.hslf.model.SimpleShape
_clientData, _clientRecords, DEFAULT_LINE_WIDTH
 
Fields inherited from class org.apache.poi.hslf.model.Shape
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, 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
 java.awt.Shape getOutline()
          Return shape outline as a java.awt.Shape object
 
Methods inherited from class org.apache.poi.hslf.model.SimpleShape
draw, getClientDataRecord, getClientRecords, getFillColor, getFlipHorizontal, getFlipVertical, getLineColor, getLineDashing, getLineStyle, getLineWidth, getLogicalAnchor2D, getRotation, setFillColor, setHyperlink, setLineColor, setLineDashing, setLineStyle, setLineWidth, setRotation, updateClientData
 
Methods inherited from class org.apache.poi.hslf.model.Shape
afterInsert, getAnchor, getAnchor2D, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getHyperlink, getParent, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType, setSheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PEN_SOLID

public static final int PEN_SOLID
Solid (continuous) pen

See Also:
Constant Field Values

PEN_PS_DASH

public static final int PEN_PS_DASH
PS_DASH system dash style

See Also:
Constant Field Values

PEN_DOT

public static final int PEN_DOT
PS_DOT system dash style

See Also:
Constant Field Values

PEN_DASHDOT

public static final int PEN_DASHDOT
PS_DASHDOT system dash style

See Also:
Constant Field Values

PEN_DASHDOTDOT

public static final int PEN_DASHDOTDOT
PS_DASHDOTDOT system dash style

See Also:
Constant Field Values

PEN_DOTGEL

public static final int PEN_DOTGEL
square dot style

See Also:
Constant Field Values

PEN_DASH

public static final int PEN_DASH
dash style

See Also:
Constant Field Values

PEN_LONGDASHGEL

public static final int PEN_LONGDASHGEL
long dash style

See Also:
Constant Field Values

PEN_DASHDOTGEL

public static final int PEN_DASHDOTGEL
dash short dash

See Also:
Constant Field Values

PEN_LONGDASHDOTGEL

public static final int PEN_LONGDASHDOTGEL
long dash short dash

See Also:
Constant Field Values

PEN_LONGDASHDOTDOTGEL

public static final int PEN_LONGDASHDOTDOTGEL
long dash short dash short dash

See Also:
Constant Field Values

LINE_SIMPLE

public static final int LINE_SIMPLE
Single line (of width lineWidth)

See Also:
Constant Field Values

LINE_DOUBLE

public static final int LINE_DOUBLE
Double lines of equal width

See Also:
Constant Field Values

LINE_THICKTHIN

public static final int LINE_THICKTHIN
Double lines, one thick, one thin

See Also:
Constant Field Values

LINE_THINTHICK

public static final int LINE_THINTHICK
Double lines, reverse order

See Also:
Constant Field Values

LINE_TRIPLE

public static final int LINE_TRIPLE
Three lines, thin, thick, thin

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

getOutline

public java.awt.Shape getOutline()
Description copied from class: Shape
Return shape outline as a java.awt.Shape object

Overrides:
getOutline in class Shape
Returns:
the shape outline


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