Ignore:
Timestamp:
2017-02-02T00:08:08+01:00 (7 years ago)
Author:
Don-vip
Message:

see #14319 - update to latest version of svgSalamander (2017-01-07, patched)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/kitfox/svg/Text.java

    r10787 r11525  
    4444import java.awt.geom.Point2D;
    4545import java.awt.geom.Rectangle2D;
    46 import java.util.Iterator;
     46import java.io.Serializable;
    4747import java.util.LinkedList;
     48import java.util.List;
    4849import java.util.regex.Matcher;
    4950import java.util.regex.Pattern;
     
    6364    float fontSize;
    6465    //List of strings and tspans containing the content of this node
    65     LinkedList content = new LinkedList();
     66    LinkedList<Serializable> content = new LinkedList<>();
    6667    Shape textShape;
    6768    public static final int TXAN_START = 0;
     
    9899    }
    99100
     101    @Override
    100102    public String getTagName()
    101103    {
     
    122124    }
    123125
    124     public java.util.List getContent()
     126    public List<Serializable> getContent()
    125127    {
    126128        return content;
     
    131133     * each child tag that has been processed
    132134     */
     135    @Override
    133136    public void loaderAddChild(SVGLoaderHelper helper, SVGElement child) throws SVGElementException
    134137    {
     
    141144     * Called during load process to add text scanned within a tag
    142145     */
     146    @Override
    143147    public void loaderAddText(SVGLoaderHelper helper, String text)
    144148    {
     
    150154    }
    151155
     156    @Override
    152157    public void build() throws SVGException
    153158    {
     
    273278            }
    274279        }
    275 
     280       
    276281        if (font == null)
    277282        {
     
    286291        AffineTransform xform = new AffineTransform();
    287292
    288         for (Iterator it = content.iterator(); it.hasNext();)
    289         {
    290             Object obj = it.next();
    291 
     293        for (Serializable obj : content) {
    292294            if (obj instanceof String)
    293295            {
     
    451453//    }
    452454
     455    @Override
    453456    public void render(Graphics2D g) throws SVGException
    454457    {
     
    458461    }
    459462
     463    @Override
    460464    public Shape getShape()
    461465    {
     
    463467    }
    464468
     469    @Override
    465470    public Rectangle2D getBoundingBox() throws SVGException
    466471    {
     
    475480     * update
    476481     */
     482    @Override
    477483    public boolean updateTime(double curTime) throws SVGException
    478484    {
Note: See TracChangeset for help on using the changeset viewer.