public Outlier(double xCoord, double yCoord, double radius) { base.\u002Ector(); Outlier outlier = this; this.point = (Point2D) new Point2D.Double(xCoord - radius, yCoord - radius); this.radius = radius; }
public static java.awt.geom.Point2D getGeoPointForRasterPoint(double[] gt, int x, int y) { java.awt.geom.Point2D geoPoint = null; if (null != gt && gt.length == 6) { double easting = gt[GDAL.GT_0_ORIGIN_LON] + gt[GDAL.GT_1_PIXEL_WIDTH] * (double)x + gt[GDAL.GT_2_ROTATION_X] * (double)y; double northing = gt[GDAL.GT_3_ORIGIN_LAT] + gt[GDAL.GT_4_ROTATION_Y] * (double)x + gt[GDAL.GT_5_PIXEL_HEIGHT] * (double)y; geoPoint = new java.awt.geom.Point2D.Double(easting, northing); } return(geoPoint); }
public static java.awt.geom.Point2D[] computeCornersFromGeotransform(double[] gt, int width, int height) { if (null == gt || gt.length != GDAL.GT_SIZE) { return(null); } if (gt[GDAL.GT_5_PIXEL_HEIGHT] > 0) { gt[GDAL.GT_5_PIXEL_HEIGHT] = -gt[GDAL.GT_5_PIXEL_HEIGHT]; } java.awt.geom.Point2D[] corners = new java.awt.geom.Point2D[] { getGeoPointForRasterPoint(gt, 0, height), getGeoPointForRasterPoint(gt, width, height), getGeoPointForRasterPoint(gt, width, 0), getGeoPointForRasterPoint(gt, 0, 0) }; return(corners); }
public override void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source) { this.zoomRangeAxes(factor, info, source, false); }
public virtual XYPlot findSubplot(PlotRenderingInfo info, Point2D source) { if (info == null) { string str = "Null 'info' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (source == null) { string str = "Null 'source' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { XYPlot xyPlot = (XYPlot) null; int subplotIndex = info.getSubplotIndex(source); if (subplotIndex >= 0) xyPlot = (XYPlot) this.subplots.get(subplotIndex); return xyPlot; } }
bool awt.Shape.contains(geom.Point2D arg_0) { return(Shape.contains(arg_0)); }
public static void writePoint2D(Point2D p, ObjectOutputStream stream) { if (stream == null) { string str = "Null 'stream' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (p != null) { stream.writeBoolean(false); stream.writeDouble(p.getX()); stream.writeDouble(p.getY()); } else stream.writeBoolean(true); }
public virtual void setLabelPosition(Point2D position) { this.labelPosition = position; }
/// <summary> /// Tests if a specified <A HREF="../../java/awt/geom/Point2D.html" title="class in java.awt.geom"><CODE>Point2D</CODE></A> is inside the boundary of this /// <code>Polygon</code>. /// </summary> public bool contains(Point2D @p) { return default(bool); }
public override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { Shape clip1 = ((Graphics) g2).getClip(); ((Graphics) g2).setClip((Shape) area); Rectangle2D rectangle2D = this.viewToFrame(area); if (this.background != null && this.background.isVisible()) { if (this.background.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); this.background.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else this.background.draw(g2, this, rectangle2D, area); } Iterator iterator1 = this.layers.iterator(); while (iterator1.hasNext()) { DialLayer dialLayer = (DialLayer) iterator1.next(); if (dialLayer.isVisible()) { if (dialLayer.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); dialLayer.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else dialLayer.draw(g2, this, rectangle2D, area); } } Iterator iterator2 = this.pointers.iterator(); while (iterator2.hasNext()) { DialPointer dialPointer = (DialPointer) iterator2.next(); if (dialPointer.isVisible()) { if (dialPointer.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); dialPointer.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else dialPointer.draw(g2, this, rectangle2D, area); } } if (this.cap != null && this.cap.isVisible()) { if (this.cap.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); this.cap.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else this.cap.draw(g2, this, rectangle2D, area); } if (this.dialFrame.isVisible()) this.dialFrame.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip1); }
public ChartPanel(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, bool useBuffer, bool properties, bool copy, bool save, bool print, bool zoom, bool tooltips) { int num1 = useBuffer ? 1 : 0; int num2 = properties ? 1 : 0; int num3 = copy ? 1 : 0; int num4 = save ? 1 : 0; int num5 = print ? 1 : 0; int num6 = zoom ? 1 : 0; int num7 = tooltips ? 1 : 0; base.\u002Ector(); ChartPanel chartPanel = this; this.orientation = PlotOrientation.__\u003C\u003EVERTICAL; this.domainZoomable = false; this.rangeZoomable = false; this.zoomPoint = (Point2D) null; this.zoomRectangle = (Rectangle2D) null; this.fillZoomRectangle = true; this.horizontalAxisTrace = false; this.verticalAxisTrace = false; this.zoomInFactor = 0.5; this.zoomOutFactor = 2.0; this.panMask = 2; this.setChart(chart); this.chartMouseListeners = new EventListenerList(); this.info = new ChartRenderingInfo(); ((JComponent) this).setPreferredSize(new Dimension(width, height)); this.useBuffer = num1 != 0; this.refreshBuffer = false; this.minimumDrawWidth = minimumDrawWidth; this.minimumDrawHeight = minimumDrawHeight; this.maximumDrawWidth = maximumDrawWidth; this.maximumDrawHeight = maximumDrawHeight; this.zoomTriggerDistance = 10; this.popup = (JPopupMenu) null; if (num2 != 0 || num3 != 0 || (num4 != 0 || num5 != 0) || num6 != 0) this.popup = this.createPopupMenu(num2 != 0, num3 != 0, num4 != 0, num5 != 0, num6 != 0); ((Component) this).enableEvents(16L); ((Component) this).enableEvents(32L); this.setDisplayToolTips(num7 != 0); ((Component) this).addMouseListener((MouseListener) this); ((Component) this).addMouseMotionListener((MouseMotionListener) this); this.defaultDirectoryForSaveAs = (File) null; this.enforceFileExtensions = true; ToolTipManager toolTipManager = ToolTipManager.sharedInstance(); this.ownToolTipInitialDelay = toolTipManager.getInitialDelay(); this.ownToolTipDismissDelay = toolTipManager.getDismissDelay(); this.ownToolTipReshowDelay = toolTipManager.getReshowDelay(); this.zoomAroundAnchor = false; this.zoomOutlinePaint = (Paint) Color.blue; this.zoomFillPaint = (Paint) new Color(0, 0, (int) byte.MaxValue, 63); this.panMask = 2; if (String.instancehelper_startsWith(String.instancehelper_toLowerCase(System.getProperty("os.name")), "mac os x")) this.panMask = 8; this.overlays = (List) new ArrayList(); }
public virtual void setPoint(Point2D point) { this.point = point; }
/// <summary> /// Returns the square of the distance from this /// <code>Point2D</code> to a specified <code>Point2D</code>. /// </summary> public double distanceSq(Point2D @pt) { return default(double); }
/// <summary> /// Sets the location of this <code>Point2D</code> to the same /// coordinates as the specified <code>Point2D</code> object. /// </summary> public void setLocation(Point2D @p) { }
public bool contains(Point2D p) { return contains (p.getX (), p.getY ()); }
/// <summary> /// Transforms the specified <code>ptSrc</code> and stores the result /// in <code>ptDst</code>. /// </summary> public Point2D transform(Point2D @ptSrc, Point2D @ptDst) { return default(Point2D); }
/// <summary> /// Returns the distance from a <code>Point2D</code> to this line. /// </summary> public double ptLineDist(Point2D @pt) { return default(double); }
/// <summary> /// Returns the square of the distance from a <code>Point2D</code> to /// this line segment. /// </summary> public double ptSegDistSq(Point2D @pt) { return default(double); }
/// <summary> /// Returns an indicator of where the specified <code>Point2D</code> /// lies with respect to this line segment. /// </summary> public int relativeCCW(Point2D @p) { return default(int); }
public override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { if (info != null) info.setPlotArea(area); RectangleInsets insets = this.getInsets(); area.setRect(((RectangularShape) area).getX() + insets.getLeft(), ((RectangularShape) area).getY() + insets.getTop(), ((RectangularShape) area).getWidth() - insets.getLeft() - insets.getRight(), ((RectangularShape) area).getHeight() - insets.getTop() - insets.getBottom()); this.setFixedRangeAxisSpaceForSubplots((AxisSpace) null); AxisSpace space = this.calculateAxisSpace(g2, area); Rectangle2D rectangle2D = space.shrink(area, (Rectangle2D) null); this.setFixedRangeAxisSpaceForSubplots(space); CategoryAxis domainAxis = this.getDomainAxis(); RectangleEdge domainAxisEdge = this.getDomainAxisEdge(); double cursor = RectangleEdge.coordinate(rectangle2D, domainAxisEdge); AxisState axisState = domainAxis.draw(g2, cursor, area, rectangle2D, domainAxisEdge, info); if (parentState == null) parentState = new PlotState(); parentState.getSharedAxisStates().put((object) domainAxis, (object) axisState); for (int index = 0; index < this.subplots.size(); ++index) { CategoryPlot categoryPlot = (CategoryPlot) this.subplots.get(index); PlotRenderingInfo plotRenderingInfo = (PlotRenderingInfo) null; if (info != null) { plotRenderingInfo = new PlotRenderingInfo(info.getOwner()); info.addSubplotInfo(plotRenderingInfo); } Point2D anchor1 = (Point2D) null; if (anchor != null && ((RectangularShape) this.subplotAreas[index]).contains(anchor)) anchor1 = anchor; categoryPlot.draw(g2, this.subplotAreas[index], anchor1, parentState, plotRenderingInfo); } if (info == null) return; info.setDataArea(rectangle2D); }
/// <summary> /// Sets the location of the endpoints of this <code>Line2D</code> to /// the specified <code>Point2D</code> coordinates. /// </summary> public void setLine(Point2D @p1, Point2D @p2) { }
public virtual void setAnchor(Point2D anchor) { this.anchor = anchor; }
/// <summary> /// Sets the location and size of the framing rectangle of this /// <code>Shape</code> to the specified <A HREF="../../../java/awt/geom/Point2D.html" title="class in java.awt.geom"><CODE>Point2D</CODE></A> and /// <A HREF="../../../java/awt/geom/Dimension2D.html" title="class in java.awt.geom"><CODE>Dimension2D</CODE></A>, respectively. /// </summary> public void setFrame(Point2D @loc, Dimension2D @size) { }
public XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer) { XYPlot xyPlot = this; this.quadrantOrigin = (Point2D) new Point2D.Double(0.0, 0.0); Paint[] paintArray = new Paint[4]; int index1 = 0; // ISSUE: variable of the null type __Null local1 = null; paintArray[index1] = (Paint) local1; int index2 = 1; // ISSUE: variable of the null type __Null local2 = null; paintArray[index2] = (Paint) local2; int index3 = 2; // ISSUE: variable of the null type __Null local3 = null; paintArray[index3] = (Paint) local3; int index4 = 3; // ISSUE: variable of the null type __Null local4 = null; paintArray[index4] = (Paint) local4; this.quadrantPaint = paintArray; this.domainCrosshairLockedOnData = true; this.rangeCrosshairLockedOnData = true; this.datasetRenderingOrder = DatasetRenderingOrder.__\u003C\u003EREVERSE; this.seriesRenderingOrder = SeriesRenderingOrder.__\u003C\u003EREVERSE; this.orientation = PlotOrientation.__\u003C\u003EVERTICAL; this.weight = 1; this.axisOffset = RectangleInsets.__\u003C\u003EZERO_INSETS; this.domainAxes = new ObjectList(); this.domainAxisLocations = new ObjectList(); this.foregroundDomainMarkers = (Map) new HashMap(); this.backgroundDomainMarkers = (Map) new HashMap(); this.rangeAxes = new ObjectList(); this.rangeAxisLocations = new ObjectList(); this.foregroundRangeMarkers = (Map) new HashMap(); this.backgroundRangeMarkers = (Map) new HashMap(); this.datasets = new ObjectList(); this.renderers = new ObjectList(); this.datasetToDomainAxesMap = (Map) new TreeMap(); this.datasetToRangeAxesMap = (Map) new TreeMap(); this.annotations = (List) new ArrayList(); this.datasets.set(0, (object) dataset); if (dataset != null) dataset.addChangeListener((DatasetChangeListener) this); this.renderers.set(0, (object) renderer); if (renderer != null) { renderer.setPlot(this); renderer.addChangeListener((RendererChangeListener) this); } this.domainAxes.set(0, (object) domainAxis); this.mapDatasetToDomainAxis(0, 0); if (domainAxis != null) { domainAxis.setPlot((Plot) this); domainAxis.addChangeListener((AxisChangeListener) this); } this.domainAxisLocations.set(0, (object) AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT); this.rangeAxes.set(0, (object) rangeAxis); this.mapDatasetToRangeAxis(0, 0); if (rangeAxis != null) { rangeAxis.setPlot((Plot) this); rangeAxis.addChangeListener((AxisChangeListener) this); } this.rangeAxisLocations.set(0, (object) AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT); this.configureDomainAxes(); this.configureRangeAxes(); this.domainGridlinesVisible = true; this.domainGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE; this.domainGridlinePaint = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_PAINT; this.domainMinorGridlinesVisible = false; this.domainMinorGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE; this.domainMinorGridlinePaint = (Paint) Color.white; this.domainZeroBaselineVisible = false; this.domainZeroBaselinePaint = (Paint) Color.black; this.domainZeroBaselineStroke = (Stroke) new BasicStroke(0.5f); this.rangeGridlinesVisible = true; this.rangeGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE; this.rangeGridlinePaint = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_PAINT; this.rangeMinorGridlinesVisible = false; this.rangeMinorGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE; this.rangeMinorGridlinePaint = (Paint) Color.white; this.rangeZeroBaselineVisible = false; this.rangeZeroBaselinePaint = (Paint) Color.black; this.rangeZeroBaselineStroke = (Stroke) new BasicStroke(0.5f); this.domainCrosshairVisible = false; this.domainCrosshairValue = 0.0; this.domainCrosshairStroke = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_STROKE; this.domainCrosshairPaint = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_PAINT; this.rangeCrosshairVisible = false; this.rangeCrosshairValue = 0.0; this.rangeCrosshairStroke = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_STROKE; this.rangeCrosshairPaint = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_PAINT; }
/// <summary> /// Sets the framing rectangle of this <code>Shape</code> based on a /// specified center <code>Point2D</code> and corner /// <code>Point2D</code>. /// </summary> public void setFrameFromCenter(Point2D @center, Point2D @corner) { }
public override void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source, bool useAnchor) { int num = useAnchor ? 1 : 0; XYPlot subplot = this.findSubplot(state, source); if (subplot != null) { subplot.zoomRangeAxes(factor, state, source, num != 0); } else { Iterator iterator = this.getSubplots().iterator(); while (iterator.hasNext()) ((XYPlot) iterator.next()).zoomRangeAxes(factor, state, source, num != 0); } }
/// <summary> /// Sets the diagonal of the framing rectangle of this <code>Shape</code> /// based on two specified <code>Point2D</code> objects. /// </summary> public void setFrameFromDiagonal(Point2D @p1, Point2D @p2) { }
public override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { if (info != null) info.setPlotArea(area); this.getInsets().trim(area); this.setFixedRangeAxisSpaceForSubplots((AxisSpace) null); AxisSpace space = this.calculateAxisSpace(g2, area); Rectangle2D rectangle2D = space.shrink(area, (Rectangle2D) null); this.setFixedRangeAxisSpaceForSubplots(space); ValueAxis domainAxis = this.getDomainAxis(); RectangleEdge domainAxisEdge = this.getDomainAxisEdge(); double d = RectangleEdge.coordinate(rectangle2D, domainAxisEdge); AxisState axisState = domainAxis.draw(g2, d, area, rectangle2D, domainAxisEdge, info); if (parentState == null) parentState = new PlotState(); parentState.getSharedAxisStates().put((object) domainAxis, (object) axisState); for (int index = 0; index < this.subplots.size(); ++index) { XYPlot xyPlot = (XYPlot) this.subplots.get(index); PlotRenderingInfo info1 = (PlotRenderingInfo) null; if (info != null) { info1 = new PlotRenderingInfo(info.getOwner()); info.addSubplotInfo(info1); } xyPlot.draw(g2, this.subplotAreas[index], anchor, parentState, info1); } if (info == null) return; info.setDataArea(rectangle2D); }
/// <summary> /// Determines where the specified <A HREF="../../../java/awt/geom/Point2D.html" title="class in java.awt.geom"><CODE>Point2D</CODE></A> lies with /// respect to this <code>Rectangle2D</code>. /// </summary> public int outcode(Point2D @p) { return default(int); }
public override void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { XYPlot subplot = this.findSubplot(info, source); if (subplot != null) { subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source); } else { Iterator iterator = this.getSubplots().iterator(); while (iterator.hasNext()) ((XYPlot) iterator.next()).zoomRangeAxes(lowerPercent, upperPercent, info, source); } }
/// <summary> /// Adds the <code>Point2D</code> object <code>pt</code> to this /// <code>Rectangle2D</code>. /// </summary> public void add(Point2D @pt) { }
/// <summary> /// Sets the position of the specified glyph within this /// <code>GlyphVector</code>. /// </summary> abstract public void setGlyphPosition(int @glyphIndex, Point2D @newPos);
/// <summary> /// Transforms an array of point objects by this transform. /// </summary> public void transform(Point2D[] @ptSrc, int @srcOff, Point2D[] @ptDst, int @dstOff, int @numPts) { }