Ignore:
Timestamp:
2017-02-02T00:08:08+01:00 (9 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/Group.java

    r8084 r11525  
    6666    }
    6767
     68    @Override
    6869    public String getTagName()
    6970    {
     
    7576     * each child tag that has been processed
    7677     */
     78    @Override
    7779    public void loaderAddChild(SVGLoaderHelper helper, SVGElement child) throws SVGElementException
    7880    {
     
    98100    }
    99101
    100     void pick(Point2D point, boolean boundingBox, List retVec) throws SVGException
     102    @Override
     103    void pick(Point2D point, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
    101104    {
    102105        Point2D xPoint = new Point2D.Double(point.getX(), point.getY());
     
    113116
    114117
    115         for (Iterator it = children.iterator(); it.hasNext();)
    116         {
    117             SVGElement ele = (SVGElement) it.next();
     118        for (SVGElement ele : children) {
    118119            if (ele instanceof RenderableElement)
    119120            {
     
    125126    }
    126127
    127     void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List retVec) throws SVGException
     128    @Override
     129    void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
    128130    {
    129131        if (xform != null)
     
    134136
    135137
    136         for (Iterator it = children.iterator(); it.hasNext();)
    137         {
    138             SVGElement ele = (SVGElement) it.next();
     138        for (SVGElement ele : children) {
    139139            if (ele instanceof RenderableElement)
    140140            {
     
    146146    }
    147147
     148    @Override
    148149    public void render(Graphics2D g) throws SVGException
    149150    {
     
    169170        beginLayer(g);
    170171
    171         Iterator it = children.iterator();
     172        Iterator<SVGElement> it = children.iterator();
    172173
    173174//        try
     
    185186        while (it.hasNext())
    186187        {
    187             SVGElement ele = (SVGElement) it.next();
     188            SVGElement ele = it.next();
    188189            if (ele instanceof RenderableElement)
    189190            {
     
    212213     * Retrieves the cached bounding box of this group
    213214     */
     215    @Override
    214216    public Shape getShape()
    215217    {
     
    225227        Area retShape = new Area();
    226228
    227         for (Iterator it = children.iterator(); it.hasNext();)
    228         {
    229             SVGElement ele = (SVGElement) it.next();
    230 
     229        for (SVGElement ele : children) {
    231230            if (ele instanceof ShapeElement)
    232231            {
     
    246245     * Retrieves the cached bounding box of this group
    247246     */
     247    @Override
    248248    public Rectangle2D getBoundingBox() throws SVGException
    249249    {
     
    262262    public void calcBoundingBox() throws SVGException
    263263    {
    264 //        Rectangle2D retRect = new Rectangle2D.Float();
    265264        Rectangle2D retRect = null;
    266265
    267         for (Iterator it = children.iterator(); it.hasNext();)
    268         {
    269             SVGElement ele = (SVGElement) it.next();
    270 
     266        for (SVGElement ele : children) {
    271267            if (ele instanceof RenderableElement)
    272268            {
     
    304300    }
    305301
     302    @Override
    306303    public boolean updateTime(double curTime) throws SVGException
    307304    {
    308305        boolean changeState = super.updateTime(curTime);
    309         Iterator it = children.iterator();
     306        Iterator<SVGElement> it = children.iterator();
    310307
    311308        //Distribute message to all members of this group
    312309        while (it.hasNext())
    313310        {
    314             SVGElement ele = (SVGElement) it.next();
     311            SVGElement ele = it.next();
    315312            boolean updateVal = ele.updateTime(curTime);
    316313
Note: See TracChangeset for help on using the changeset viewer.