Package java.awt.geom

Examples of java.awt.geom.Rectangle2D.clone()


   */
  public AttributeMap cloneEntries(AttributeMap newMap) {
    // Clone Bounds
    Rectangle2D bounds = GraphConstants.getBounds(newMap);
    if (bounds != null)
      GraphConstants.setBounds(newMap, (Rectangle2D) (bounds.clone()));
    // Clone List Of Points
    List points = GraphConstants.getPoints(newMap);
    if (points != null)
      GraphConstants.setPoints(newMap, clonePoints(points));
    // Clone extra label positions
View Full Code Here


        dataArea = integerise(dataArea);
        if (dataArea.isEmpty()) {
            return;
        }
        state.setDataArea(dataArea);
        createAndAddEntity((Rectangle2D) dataArea.clone(), state, null, null);

        // if there is a renderer, it draws the background, otherwise use the
        // default background...
        if (getRenderer() != null) {
            getRenderer().drawBackground(g2, this, dataArea);
View Full Code Here

        dataArea = integerise(dataArea);
        if (dataArea.isEmpty()) {
            return;
        }
        createAndAddEntity((Rectangle2D) dataArea.clone(), info, null, null);
        if (info != null) {
            info.setDataArea(dataArea);
        }

        // draw the plot background and axes...
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.