public interface CommonDrawRelSizeAttlist extends ODFAttribute, CommonDrawSizeAttlist
The interpretation of relative values depends on the anchor of the drawing object. If the anchor for the drawing object is in a table cell, the percentage value relates to the surrounding table box. If the anchor for the drawing object is in a text box, the percentage value relates to the surrounding text box. In other cases, the percentage values relate to the width of the page or window.
The value scale for the width means that the width should be calculated depending on the height, so that the ratio of with and height of the original image or object size is preserved.
The value scale for the height means that the height should be calculated depending on the width, so that the ratio of with and height of the original image or object size is preserved.
The value scale-min equals the value scale, except that the calculated width or height is a minimum height rather than an absolute one.
To support application that don't support relative with and heights, applications that save the attributes style:rel-width or style:rel-height should also provide the real width and heights in the svg:width and svg:height/fo:min-height attributes.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCALE
Constants value for style:rel-width and style:rel-height.
|
static java.lang.String |
SCALE_MIN
Constants value for style:rel-width and style:rel-height.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStyleRelHeight()
Return a style:rel-height.
|
java.lang.String |
getStyleRelWidth()
Return a style:rel-width.
|
void |
setStyleRelHeight(java.lang.String styleRelHeight)
Set a style:rel-height.
|
void |
setStyleRelWidth(java.lang.String styleRelWidth)
Set a style:rel-width.
|
getSVGHeight, getSVGWidth, setSVGHeight, setSVGWidth
static final java.lang.String SCALE
static final java.lang.String SCALE_MIN
java.lang.String getStyleRelWidth()
void setStyleRelWidth(java.lang.String styleRelWidth)
styleRelWidth
- the style:rel-width to setjava.lang.String getStyleRelHeight()
void setStyleRelHeight(java.lang.String styleRelHeight)
styleRelHeight
- the style:rel-height to setCopyright © 2010 - No Magic Asia