本文整理汇总了Java中net.sf.jasperreports.engine.design.JRDesignLine类的典型用法代码示例。如果您正苦于以下问题:Java JRDesignLine类的具体用法?Java JRDesignLine怎么用?Java JRDesignLine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JRDesignLine类属于net.sf.jasperreports.engine.design包,在下文中一共展示了JRDesignLine类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createObject
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
@Override
public Object createObject(Attributes atts)
{
JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
JRDesignLine line = new JRDesignLine(jasperDesign);
LineDirectionEnum direction = LineDirectionEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_direction));
if (direction != null)
{
line.setDirection(direction);
}
return line;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:16,代码来源:JRLineFactory.java
示例2: getPropertyValue
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
@Override
public Object getPropertyValue(Object id) {
JRDesignLine jrElement = (JRDesignLine) getValue();
if (id.equals(JRBaseLine.PROPERTY_DIRECTION))
return directionD.getEnumValue(jrElement.getDirectionValue());
if (id.equals(JRBaseStyle.PROPERTY_FILL))
return fillD.getEnumValue(jrElement.getOwnFillValue());
return super.getPropertyValue(id);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:MLine.java
示例3: setPropertyValue
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
@Override
public void setPropertyValue(Object id, Object value) {
JRDesignLine jrElement = (JRDesignLine) getValue();
if (id.equals(JRBaseLine.PROPERTY_DIRECTION))
jrElement.setDirection((LineDirectionEnum) directionD.getEnumValue(value));
if (id.equals(JRBaseStyle.PROPERTY_FILL))
jrElement.setFill((FillEnum) fillD.getEnumValue(value));
else
super.setPropertyValue(id, value);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:11,代码来源:MLine.java
示例4: createJRElement
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
@Override
public JRDesignElement createJRElement(JasperDesign jasperDesign) {
JRDesignLine jrDesignLine = new JRDesignLine(jasperDesign);
DefaultManager.INSTANCE.applyDefault(this.getClass(), jrDesignLine);
jrDesignLine.setWidth(getDefaultWidth());
jrDesignLine.setHeight(getDefaultHeight());
return jrDesignLine;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:11,代码来源:MLine.java
示例5: createReportElement
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
public JRDesignElement createReportElement(JasperDesign jd)
{
JRDesignElement element = new JRDesignLine();//FIXMETD why lines have empty constructor?
element.setWidth(100);
element.setHeight(1);
return element;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:8,代码来源:CreateLineAction.java
示例6: addColumnHeaderToBand
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
private static void addColumnHeaderToBand(ODLTableDefinition table, int elementWidth, JRDesignBand chBand) {
JRDesignStaticText back = new JRDesignStaticText();
back.setBackcolor(new Color(230, 230, 230));
back.setWidth(elementWidth);
back.setHeight(20);
back.setMode(ModeEnum.OPAQUE);
chBand.addElement(back);
List<Double> colWidths = getColumnWidths(table, elementWidth);
int nc = table.getColumnCount();
if (nc > 0) {
double dx=0;
for (int i = 0; i < nc; i++) {
JRDesignStaticText text = new JRDesignStaticText();
int x = (int) Math.round(dx);
text.setX(x);
text.setY(4);
text.setWidth((int) Math.floor(colWidths.get(i)));
text.setHeight(15);
text.setText(table.getColumnName(i));
text.setFontSize(11);
// int fs = text.getFontSize();
text.setForecolor(new Color(0, 0, 80));
text.setBold(true);
chBand.addElement(text);
dx += colWidths.get(i);
}
}
JRDesignLine line = new JRDesignLine();
// line.setX(-ret.getLeftMargin());
line.setY(19);
line.setWidth(elementWidth);
line.setHeight(0);
line.setPositionType(PositionTypeEnum.FLOAT);
chBand.addElement(line);
}
开发者ID:PGWelch,项目名称:com.opendoorlogistics,代码行数:39,代码来源:ReportBuilderUtils.java
示例7: visitLine
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
/**
*
*/
public void visitLine(JRLine line)
{
node = new ElementNode(jasperDesign, (JRDesignLine)line,doLkp);
node.setIconBaseWithExtension(ICON_LINE);
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:9,代码来源:ElementNodeVisitor.java
示例8: getGraphicPropertySets
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
/**
* Get the GraphicElement properties...
*/
public static List<Sheet.Set> getGraphicPropertySets(JRDesignGraphicElement element, JasperDesign jd)
{
JRDesignDataset dataset = ModelUtils.getElementDataset(element, jd);
List<Sheet.Set> list = new ArrayList<Sheet.Set>();
Sheet.Set propertySet = Sheet.createPropertiesSet();
propertySet.setName("GRAPHIC_ELEMENT_PROPERTIES");
propertySet.setDisplayName("Graphic properties");
//propertySet.put(new PenProperty( element ));
propertySet.put(new JRPenProperty(element.getLinePen(), element));
propertySet.put(new FillProperty( element ));
list.add(propertySet);
if (element instanceof JRDesignImage)
{
Sheet.Set imagePropertySet = Sheet.createPropertiesSet();
imagePropertySet.setName("IMAGE_ELEMENT_PROPERTIES");
imagePropertySet.setDisplayName("Image properties");
imagePropertySet.put(new ImageExpressionProperty((JRDesignImage)element, dataset));
imagePropertySet.put(new ImageExpressionClassNameProperty((JRDesignImage)element) );
imagePropertySet.put(new ScaleImageProperty( (JRDesignImage)element ));
imagePropertySet.put(new HorizontalAlignmentProperty( (JRDesignImage)element ));
imagePropertySet.put(new VerticalAlignmentProperty( (JRDesignImage)element ));
imagePropertySet.put(new ImageUsingCacheProperty( (JRDesignImage)element ));
imagePropertySet.put(new LazyProperty( (JRDesignImage)element ));
imagePropertySet.put(new OnErrorTypeProperty( (JRDesignImage)element ));
imagePropertySet.put(new ImageEvaluationTimeProperty((JRDesignImage)element, dataset));//, dataset));
imagePropertySet.put(new EvaluationGroupProperty((JRDesignImage)element, dataset));
list.add(imagePropertySet);
}
else if (element instanceof JRDesignLine)
{
Sheet.Set linePropertySet = Sheet.createPropertiesSet();
linePropertySet.setName("LINE_ELEMENT_PROPERTIES");
linePropertySet.setDisplayName("Line properties");
linePropertySet.put(new LineDirectionProperty( (JRDesignLine)element ));
list.add(linePropertySet);
}
else if (element instanceof JRDesignRectangle)
{
Sheet.Set rectanglePropertySet = Sheet.createPropertiesSet();
rectanglePropertySet.setName("RECTANGLE_ELEMENT_PROPERTIES");
rectanglePropertySet.setDisplayName("Rectangle properties");
rectanglePropertySet.put(new RadiusProperty( (JRDesignRectangle)element ));
list.add(rectanglePropertySet);
}
else if (element instanceof JRDesignEllipse)
{
// Nothing to do...
}
return list;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:58,代码来源:GraphicElementPropertiesFactory.java
示例9: LineDirectionProperty
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public LineDirectionProperty(JRDesignLine line)
{
super(LineDirectionEnum.class, line);
this.line = line;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:7,代码来源:LineDirectionProperty.java
示例10: MLine
import net.sf.jasperreports.engine.design.JRDesignLine; //导入依赖的package包/类
/**
* Instantiates a new m line.
*
* @param parent
* the parent
* @param jrLine
* the jr line
* @param newImage
* the new image
*/
public MLine(ANode parent, JRDesignLine jrLine, int newImage) {
super(parent, newImage);
setValue(jrLine);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:15,代码来源:MLine.java
注:本文中的net.sf.jasperreports.engine.design.JRDesignLine类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论