import {JRChild} from "./JRChild";
import {StretchTypeEnum, PositionTypeEnum, ModeEnum} from "./type/Enums";
import {JRElementGroup} from "./JRElementGroup";
import {JRPropertiesHolder} from "./JRPropertiesHolder";
export interface JRElement extends JRChild, JRPropertiesHolder {
/**
* Returns the position type for the element
* @return the position type
*/
getPositionType():PositionTypeEnum;
/**
* Sets the position type for the element.
* @param positionType the position type
*/
setPositionType(positionTypeValue:PositionTypeEnum):void;
/**
* Indicates the stretch type for the element
* @return a value representing one of the stretch type constants in {@link StretchTypeEnum}
*/
getStretchType():StretchTypeEnum;
/**
* Specifies how the engine should treat a missing image.
* @param stretchTypeEnum a value representing one of the stretch type constants in {@link StretchTypeEnum}
*/
setStretchType(stretchTypeValue:StretchTypeEnum):void;
/**
* Specifies if the element value will be printed for every iteration, even if its value has not changed.
* @see JRElement#isRemoveLineWhenBlank()
* @see JRElement#isPrintInFirstWholeBand()
*/
isPrintRepeatedValues():boolean;
setPrintRepeatedValues(isPrintRepeatedValues:boolean):void;
/**
* Returns true if the remaining blank space appearing when the value is not printed will be removed. Under certain
* circumstances (the element has an empty string as its value or contains a repeated value that is supressed) the
* space reserved for the current element remains empty. If this method returns true, it means the engine will try
* to suppress the blank line, but will only succeed if no other elements occupy the same vertical space.
*/
isRemoveLineWhenBlank():boolean;
/**
* Specifies whether the remaining blank space appearing when the value is not printed will be removed. Under certain
* circumstances (the element has an empty string as its value or contains a repeated value that is supressed) the
* space reserved for the current element remains empty. If the parameter is set to true, it means the engine will try
* to suppress the blank line, but will only succeed if no other elements occupy the same vertical space.
*/
setRemoveLineWhenBlank(isRemoveLineWhenBlank:boolean):void;
/**
* Returns true if an element with a printRepeatedValues attribute set to true will be redisplayed for every
* new page or column that is not an overflow from a previous page or column.
* @see JRElement#isPrintRepeatedValues()
*/
isPrintInFirstWholeBand():boolean;
/**
* Specifies whether an element with a printRepeatedValues attribute set to true should be redisplayed for every
* new page or column that is not an overflow from a previous page or column.
* @see JRElement#isPrintRepeatedValues()
*/
setPrintInFirstWholeBand(isPrintInFirstWholeBand:boolean):void;
/**
* If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page.
* Actually if there is at least one element with this attribute, the band is redisplayed from the beginning, except
* those elements that fitted in the current page and have isPrintWhenDetailOverflow set to false.
*/
isPrintWhenDetailOverflows():boolean;
/**
* If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page.
* Actually if there is at least one element with this attribute, the band is redisplayed from the beginning, except
* those elements that fitted in the current page and have isPrintWhenDetailOverflow set to false.
*/
setPrintWhenDetailOverflows(isPrintWhenDetailOverflows:boolean):void;
/**
* Indicates the logical group that the element belongs to. More elements can be grouped in order to make some of them stretch
* relative to the height of their parent group.
* @see StretchTypeEnum
*/
getElementGroup():JRElementGroup;
getUUID():string;
/**
* Gets the the section relative horizontal offset of the element top left corner.
*/
getX():number;
setX(value:number):void;
/**
* Gets the the section relative vertical offset of the element top left corner.
*/
getY():number;
setY(value:number):void;
getWidth():number;
setWidth(value:number):void;
getHeight():number;
setHeight(value:number):void;
getOwnForecolor():string;
setForecolor(color:string):void;
getOwnBackcolor():string;
setBackcolor(color:string):void;
getOwnModeValue():ModeEnum;
setMode(mode:ModeEnum):void;
}