Class JRTemplateLine

All Implemented Interfaces:
Serializable, Deduplicable, JRCommonElement, JRCommonGraphicElement, JRPenContainer, JRPropertiesHolder, JRStyleContainer

public class JRTemplateLine extends JRTemplateGraphicElement
Line element information shared by multiple print line objects.
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
  • Field Details

  • Constructor Details

    • JRTemplateLine

      protected JRTemplateLine(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRLine line)
    • JRTemplateLine

      public JRTemplateLine(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
      Creates a template line.
      Parameters:
      origin - the origin of the elements that will use this template
      defaultStyleProvider - the default style provider to use for this template
  • Method Details

    • setLine

      protected void setLine(JRLine line)
    • getDirection

      public LineDirectionEnum getDirection()
    • setDirection

      public void setDirection(LineDirectionEnum direction)
    • getHashCode

      public int getHashCode()
      Description copied from interface: Deduplicable
      Returns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwh Deduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.
      Returns:
      deduplication hash code
    • isIdentical

      public boolean isIdentical(Object object)
      Description copied from interface: Deduplicable
      Determines if this instance is identical to another object.
      Parameters:
      object - the object to compare with this instance
      Returns:
      true if the two objects are identical and can be deduplicated