Java 类net.sf.jasperreports.engine.JRBreak 实例源码

项目:jasperreports    文件:JRBaseObjectFactory.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    JRBaseBreak baseBreak = null;

    if (breakElement != null)
    {
        baseBreak = (JRBaseBreak)get(breakElement);
        if (baseBreak == null)
        {
            baseBreak = new JRBaseBreak(breakElement, this);
        }
    }

    setVisitResult(baseBreak);
}
项目:jasperreports    文件:JRFillObjectFactory.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    JRFillBreak fillBreak = null;

    if (breakElement != null)
    {
        fillBreak = (JRFillBreak)get(breakElement);
        if (fillBreak == null)
        {
            fillBreak = new JRFillBreak(filler, breakElement, this);
        }
    }

    setVisitResult(fillBreak);
}
项目:jasperreports    文件:XmlWriterVisitor.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    try
    {
        xmlWriter.writeBreak(breakElement);
    }
    catch (IOException e)
    {
        throw new JRRuntimeException(e);
    }
}
项目:jasperreports    文件:JRXmlWriter.java   
/**
 *
 */
public void writeBreak(JRBreak breakElement) throws IOException
{
    writer.startElement(JRXmlConstants.ELEMENT_break, getNamespace());
    writer.addAttribute(JRXmlConstants.ATTRIBUTE_type, breakElement.getTypeValue(), BreakTypeEnum.PAGE);

    writeReportElement(breakElement);

    writer.closeElement();
}
项目:jasperreports    文件:JRApiWriter.java   
/**
 *
 */
public void writeBreak( JRBreak breakElement, String breakName)
{
    if(breakElement != null)
    {
        write( "JRDesignBreak " + breakName + " = new JRDesignBreak(jasperDesign);\n");
        write( breakName + ".setType({0});\n", breakElement.getTypeValue(), BreakTypeEnum.PAGE);
        writeReportElement( breakElement, breakName);
        flush();
    }
}
项目:jasperreports    文件:JRFillBreak.java   
/**
 *
 */
protected JRFillBreak(
    JRBaseFiller filler,
    JRBreak breakElement, 
    JRFillObjectFactory factory
    )
{
    super(filler, breakElement, factory);
}
项目:ireport-fork    文件:ElementNameVisitor.java   
/**
 *
 */
public void visitBreak(JRBreak breakElement)
{
    if (breakElement.getTypeValue() == BreakTypeEnum.PAGE)
        name = "Page Break";
    else
       name = "Column Break";
}
项目:jasperreports    文件:ConvertVisitor.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    //FIXMECONVERT
}
项目:jasperreports    文件:JRDelegationVisitor.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    visitor.visitBreak(breakElement);
}
项目:jasperreports    文件:UniformElementVisitor.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    visitElement(breakElement);
}
项目:jasperreports    文件:JRApiWriter.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    apiWriter.writeBreak(breakElement, name);
}
项目:jasperreports    文件:JRVisitorSupport.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    // NOOP
}
项目:jasperreports    文件:DrawVisitor.java   
@Override
public void visitBreak(JRBreak breakElement)
{
    //FIXMEDRAW
}
项目:jasperreports    文件:JRFillBreak.java   
@Override
public BreakTypeEnum getTypeValue()
{
    return ((JRBreak)parent).getTypeValue();
}
项目:PDFReporter-Studio    文件:JSSDrawVisitor.java   
@Override
public void visitBreak(JRBreak breakElement) {
    // FIXMEDRAW
}
项目:ireport-fork    文件:ElementNodeVisitor.java   
/**
 *
 */
public void visitBreak(JRBreak breakElement)
{
    node = new ElementNode(jasperDesign, (JRDesignBreak)breakElement,doLkp);
    node.setIconBaseWithExtension(ICON_BREAK);
}
项目:ireport-fork    文件:HasExpressionVisitor.java   
/**
 *
 */
public void visitBreak(JRBreak breakElement)
{
    collector.collect(breakElement);
}
项目:ireport-fork    文件:NodeCellRenderer.java   
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
   JLabel label = (JLabel)super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);

   label.setIcon(null);

   if (value instanceof Node)
   {
       Node node = (Node)value;
       String text = node.getDisplayName();

       if (node instanceof ElementNode)
       {
           text = "";
           JRDesignElement element = ((ElementNode)node).getElement();
           if (element instanceof JRBreak) text += "Break";
           if (element instanceof JRChart) text += "Chart";
           if (element instanceof JRCrosstab) text += "Crosstab";
           if (element instanceof JRElementGroup) text += "Element Group";
           if (element instanceof JREllipse) text += "Ellipse";
           if (element instanceof JRFrame) text += "Frame";
           if (element instanceof JRImage) text += "Image";
           if (element instanceof JRLine) text += "Line";
           if (element instanceof JRRectangle) text += "Rectangle";
           if (element instanceof JRStaticText) text += "Static Text";
           if (element instanceof JRSubreport) text += "Subreport";
           if (element instanceof JRTextField) text += "Text Field";

           JRElementGroup parent = ModelUtils.getTopElementGroup(element);
           if (parent != null && parent instanceof JRDesignBand) text += " in band " + ModelUtils.nameOf(((JRDesignBand)parent).getOrigin());
           else if (parent != null && parent instanceof JRDesignCellContents) text += " in cell " + ModelUtils.nameOf(((JRDesignCellContents)parent).getOrigin());

           text += " " + node.getDisplayName();
       }

       label.setText(text);
       label.setIcon( new ImageIcon(node.getIcon(BeanInfo.ICON_COLOR_16x16)));
   }
   else if (value instanceof JRDesignExpression)
   {
       JRDesignExpression exp = (JRDesignExpression)value;
       label.setText(exp.getText());
       label.setIcon(expressionIcon);
   }

   return label;
}
项目:jasperreports    文件:JRBaseBreak.java   
/**
 * Initializes properties that are specific to break elements. Common properties are initialized by its
 * parent constructors.
 * @param breakElement an element whose properties are copied to this element. Usually it is a
 * {@link net.sf.jasperreports.engine.design.JRDesignBreak} that must be transformed into an
 * <tt>JRBaseBreak</tt> at compile time.
 * @param factory a factory used in the compile process
 */
protected JRBaseBreak(JRBreak breakElement, JRBaseObjectFactory factory)
{
    super(breakElement, factory);

    typeValue = breakElement.getTypeValue();
}