1 16 17 package org.apache.poi.hssf.usermodel; 18 19 import org.apache.poi.ddf.EscherRecord; 20 import org.apache.poi.ddf.EscherClientAnchorRecord; 21 import org.apache.poi.ddf.EscherChildAnchorRecord; 22 23 public class HSSFChildAnchor 24 extends HSSFAnchor 25 { 26 public HSSFChildAnchor() 27 { 28 } 29 30 public HSSFChildAnchor( int dx1, int dy1, int dx2, int dy2 ) 31 { 32 super( dx1, dy1, dx2, dy2 ); 33 } 34 35 public void setAnchor(int dx1, int dy1, int dx2, int dy2) 36 { 37 this.dx1 = dx1; 38 this.dy1 = dy1; 39 this.dx2 = dx2; 40 this.dy2 = dy2; 41 } 42 43 public boolean isHorizontallyFlipped() 44 { 45 return dx1 > dx2; 46 } 47 48 public boolean isVerticallyFlipped() 49 { 50 return dy1 > dy2; 51 } 52 53 } 54 | Popular Tags |