< prev index next >

modules/javafx.graphics/src/main/java/javafx/css/CssParser.java

Print this page


   1 /*
   2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  67 import javafx.geometry.Insets;
  68 import javafx.scene.effect.BlurType;
  69 import javafx.scene.effect.Effect;
  70 import javafx.scene.layout.BackgroundPosition;
  71 import javafx.scene.layout.BackgroundRepeat;
  72 import javafx.scene.layout.BackgroundSize;
  73 import javafx.scene.layout.BorderStrokeStyle;
  74 import javafx.scene.layout.BorderWidths;
  75 import javafx.scene.layout.CornerRadii;
  76 import javafx.scene.paint.Color;
  77 import javafx.scene.paint.CycleMethod;
  78 import javafx.scene.paint.Paint;
  79 import javafx.scene.paint.Stop;
  80 import javafx.scene.shape.StrokeLineCap;
  81 import javafx.scene.shape.StrokeLineJoin;
  82 import javafx.scene.shape.StrokeType;
  83 import javafx.scene.text.Font;
  84 import javafx.scene.text.FontPosture;
  85 import javafx.scene.text.FontWeight;
  86 import javafx.util.Duration;
  87 import sun.util.logging.PlatformLogger;
  88 import sun.util.logging.PlatformLogger.Level;

  89 
  90 import java.io.BufferedReader;
  91 import java.io.CharArrayReader;
  92 import java.io.IOException;
  93 import java.io.InputStreamReader;
  94 import java.io.Reader;
  95 import java.net.MalformedURLException;
  96 import java.net.URI;
  97 import java.net.URISyntaxException;
  98 import java.net.URL;
  99 import java.text.MessageFormat;
 100 import java.util.ArrayList;
 101 import java.util.Collections;
 102 import java.util.HashMap;
 103 import java.util.List;
 104 import java.util.Locale;
 105 import java.util.Map;
 106 import java.util.Stack;
 107 
 108 /**


   1 /*
   2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  67 import javafx.geometry.Insets;
  68 import javafx.scene.effect.BlurType;
  69 import javafx.scene.effect.Effect;
  70 import javafx.scene.layout.BackgroundPosition;
  71 import javafx.scene.layout.BackgroundRepeat;
  72 import javafx.scene.layout.BackgroundSize;
  73 import javafx.scene.layout.BorderStrokeStyle;
  74 import javafx.scene.layout.BorderWidths;
  75 import javafx.scene.layout.CornerRadii;
  76 import javafx.scene.paint.Color;
  77 import javafx.scene.paint.CycleMethod;
  78 import javafx.scene.paint.Paint;
  79 import javafx.scene.paint.Stop;
  80 import javafx.scene.shape.StrokeLineCap;
  81 import javafx.scene.shape.StrokeLineJoin;
  82 import javafx.scene.shape.StrokeType;
  83 import javafx.scene.text.Font;
  84 import javafx.scene.text.FontPosture;
  85 import javafx.scene.text.FontWeight;
  86 import javafx.util.Duration;
  87 import com.sun.javafx.logging.PlatformLogger;
  88 import com.sun.javafx.logging.PlatformLogger.Level;
  89 
  90 
  91 import java.io.BufferedReader;
  92 import java.io.CharArrayReader;
  93 import java.io.IOException;
  94 import java.io.InputStreamReader;
  95 import java.io.Reader;
  96 import java.net.MalformedURLException;
  97 import java.net.URI;
  98 import java.net.URISyntaxException;
  99 import java.net.URL;
 100 import java.text.MessageFormat;
 101 import java.util.ArrayList;
 102 import java.util.Collections;
 103 import java.util.HashMap;
 104 import java.util.List;
 105 import java.util.Locale;
 106 import java.util.Map;
 107 import java.util.Stack;
 108 
 109 /**


< prev index next >