org.apache.poi.hssf.usermodel
Class HSSFAnchor

java.lang.Object
  extended by org.apache.poi.hssf.usermodel.HSSFAnchor
Direct Known Subclasses:
HSSFChildAnchor, HSSFClientAnchor

public abstract class HSSFAnchor
extends java.lang.Object

An anchor is what specifics the position of a shape within a client object or within another containing shape.

Author:
Glen Stampoultzis (glens at apache.org)

Field Summary
protected  boolean _isHorizontallyFlipped
           
protected  boolean _isVerticallyFlipped
           
 
Constructor Summary
HSSFAnchor()
           
HSSFAnchor(int dx1, int dy1, int dx2, int dy2)
           
 
Method Summary
static HSSFAnchor createAnchorFromEscher(EscherContainerRecord container)
           
protected abstract  void createEscherAnchor()
           
abstract  int getDx1()
           
abstract  int getDx2()
           
abstract  int getDy1()
           
abstract  int getDy2()
           
protected abstract  EscherRecord getEscherAnchor()
           
abstract  boolean isHorizontallyFlipped()
           
abstract  boolean isVerticallyFlipped()
           
abstract  void setDx1(int dx1)
           
abstract  void setDx2(int dx2)
           
abstract  void setDy1(int dy1)
           
abstract  void setDy2(int dy2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_isHorizontallyFlipped

protected boolean _isHorizontallyFlipped

_isVerticallyFlipped

protected boolean _isVerticallyFlipped
Constructor Detail

HSSFAnchor

public HSSFAnchor()

HSSFAnchor

public HSSFAnchor(int dx1,
                  int dy1,
                  int dx2,
                  int dy2)
Method Detail

createAnchorFromEscher

public static HSSFAnchor createAnchorFromEscher(EscherContainerRecord container)

getDx1

public abstract int getDx1()
Returns:
x coordinate of the left up corner

setDx1

public abstract void setDx1(int dx1)
Parameters:
dx1 - x coordinate of the left up corner

getDy1

public abstract int getDy1()
Returns:
y coordinate of the left up corner

setDy1

public abstract void setDy1(int dy1)
Parameters:
dy1 - y coordinate of the left up corner

getDy2

public abstract int getDy2()
Returns:
y coordinate of the right down corner

setDy2

public abstract void setDy2(int dy2)
Parameters:
dy2 - y coordinate of the right down corner

getDx2

public abstract int getDx2()
Returns:
x coordinate of the right down corner

setDx2

public abstract void setDx2(int dx2)
Parameters:
dx2 - x coordinate of the right down corner

isHorizontallyFlipped

public abstract boolean isHorizontallyFlipped()
Returns:
whether this shape is horizontally flipped

isVerticallyFlipped

public abstract boolean isVerticallyFlipped()
Returns:
whether this shape is vertically flipped

getEscherAnchor

protected abstract EscherRecord getEscherAnchor()

createEscherAnchor

protected abstract void createEscherAnchor()


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