Пример #1
0
 public LegendGraphic(Shape shape, Paint fillPaint)
 {
   LegendGraphic legendGraphic = this;
   if (shape == null)
   {
     string str = "Null 'shape' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (fillPaint == null)
   {
     string str = "Null 'fillPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.shapeVisible = true;
     this.shape = shape;
     this.shapeAnchor = RectangleAnchor.__\u003C\u003ECENTER;
     this.shapeLocation = RectangleAnchor.__\u003C\u003ECENTER;
     this.shapeFilled = true;
     this.fillPaint = fillPaint;
     this.fillPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer();
     this.setPadding(2.0, 2.0, 2.0, 2.0);
   }
 }
Пример #2
0
 public XYTitleAnnotation(double x, double y, Title title, RectangleAnchor anchor)
 {
   XYTitleAnnotation xyTitleAnnotation = this;
   if (title == null)
   {
     string str = "Null 'title' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (anchor == null)
   {
     string str = "Null 'anchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.coordinateType = XYCoordinateType.__\u003C\u003ERELATIVE;
     this.x = x;
     this.y = y;
     this.maxWidth = 0.0;
     this.maxHeight = 0.0;
     this.title = title;
     this.anchor = anchor;
   }
 }
Пример #3
0
 public XYBlockRenderer()
 {
   XYBlockRenderer xyBlockRenderer = this;
   this.blockWidth = 1.0;
   this.blockHeight = 1.0;
   this.blockAnchor = RectangleAnchor.__\u003C\u003ECENTER;
   this.updateOffsets();
   this.paintScale = (PaintScale) new LookupPaintScale();
 }
Пример #4
0
 public LabelBlock(string text, Font font, Paint paint)
 {
   LabelBlock labelBlock = this;
   this.text = text;
   this.paint = paint;
   this.label = TextUtilities.createTextBlock(text, font, this.paint);
   this.font = font;
   this.toolTipText = (string) null;
   this.urlText = (string) null;
   this.contentAlignmentPoint = TextBlockAnchor.__\u003C\u003ECENTER;
   this.textAnchor = RectangleAnchor.__\u003C\u003ECENTER;
 }
 public DialValueIndicator(int datasetIndex)
 {
   DialValueIndicator dialValueIndicator = this;
   this.datasetIndex = datasetIndex;
   this.angle = -90.0;
   this.radius = 0.3;
   this.frameAnchor = RectangleAnchor.__\u003C\u003ECENTER;
   this.templateValue = (Number) new Double(100.0);
   this.formatter = (NumberFormat) new DecimalFormat("0.0");
   this.font = new Font("Dialog", 1, 14);
   this.paint = (Paint) Color.black;
   this.backgroundPaint = (Paint) Color.white;
   this.outlineStroke = (Stroke) new BasicStroke(1f);
   this.outlinePaint = (Paint) Color.blue;
   this.insets = new RectangleInsets(4.0, 4.0, 4.0, 4.0);
   this.valueAnchor = RectangleAnchor.__\u003C\u003ERIGHT;
   this.textAnchor = TextAnchor.__\u003C\u003ECENTER_RIGHT;
 }
 public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle, CategoryLabelWidthType widthType, float widthRatio)
 {
   base.\u002Ector();
   CategoryLabelPosition categoryLabelPosition = this;
   if (categoryAnchor == null)
   {
     string str = "Null 'categoryAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (labelAnchor == null)
   {
     string str = "Null 'labelAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (rotationAnchor == null)
   {
     string str = "Null 'rotationAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (widthType == null)
   {
     string str = "Null 'widthType' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.categoryAnchor = categoryAnchor;
     this.labelAnchor = labelAnchor;
     this.rotationAnchor = rotationAnchor;
     this.angle = angle;
     this.widthType = widthType;
     this.widthRatio = widthRatio;
   }
 }
Пример #7
0
 public XYImageAnnotation(double x, double y, Image image, RectangleAnchor anchor)
 {
   XYImageAnnotation xyImageAnnotation = this;
   if (image == null)
   {
     string str = "Null 'image' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (anchor == null)
   {
     string str = "Null 'anchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.x = x;
     this.y = y;
     this.image = image;
     this.anchor = anchor;
   }
 }
Пример #8
0
 public Crosshair(double value, Paint paint, Stroke stroke)
 {
   base.\u002Ector();
   Crosshair crosshair = this;
   if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (stroke == null)
   {
     string str = "Null 'stroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.visible = true;
     this.value = value;
     this.paint = paint;
     this.stroke = stroke;
     this.labelVisible = false;
     this.labelGenerator = (CrosshairLabelGenerator) new StandardCrosshairLabelGenerator();
     this.labelAnchor = RectangleAnchor.__\u003C\u003EBOTTOM_LEFT;
     this.labelXOffset = 3.0;
     this.labelYOffset = 3.0;
     this.labelFont = new Font("Tahoma", 0, 12);
     this.labelPaint = (Paint) Color.black;
     this.labelBackgroundPaint = (Paint) new Color(0, 0, (int) byte.MaxValue, 63);
     this.labelOutlineVisible = true;
     this.labelOutlinePaint = (Paint) Color.black;
     this.labelOutlineStroke = (Stroke) new BasicStroke(0.5f);
     this.pcs = new PropertyChangeSupport((object) this);
   }
 }
 public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, CategoryLabelWidthType widthType, float widthRatio)
   : this(categoryAnchor, labelAnchor, TextAnchor.__\u003C\u003ECENTER, 0.0, widthType, widthRatio)
 {
 }
 public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor)
   : this(categoryAnchor, labelAnchor, TextAnchor.__\u003C\u003ECENTER, 0.0, CategoryLabelWidthType.__\u003C\u003ECATEGORY, 0.95f)
 {
 }
Пример #11
0
 public LegendTitle(LegendItemSource source, Arrangement hLayout, Arrangement vLayout)
 {
   LegendTitle legendTitle = this;
   LegendItemSource[] legendItemSourceArray = new LegendItemSource[1];
   int index = 0;
   LegendItemSource legendItemSource = source;
   legendItemSourceArray[index] = legendItemSource;
   this.sources = legendItemSourceArray;
   this.items = new BlockContainer(hLayout);
   this.hLayout = hLayout;
   this.vLayout = vLayout;
   this.backgroundPaint = (Paint) null;
   this.legendItemGraphicEdge = RectangleEdge.__\u003C\u003ELEFT;
   this.legendItemGraphicAnchor = RectangleAnchor.__\u003C\u003ECENTER;
   this.legendItemGraphicLocation = RectangleAnchor.__\u003C\u003ECENTER;
   this.legendItemGraphicPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
   this.itemFont = LegendTitle.__\u003C\u003EDEFAULT_ITEM_FONT;
   this.itemPaint = LegendTitle.__\u003C\u003EDEFAULT_ITEM_PAINT;
   this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
 }
Пример #12
0
 protected internal Marker(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
 {
   base.\u002Ector();
   Marker marker = this;
   this.label = (string) null;
   if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (stroke == null)
   {
     string str = "Null 'stroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if ((double) alpha < 0.0 || (double) alpha > 1.0)
   {
     string str = "The 'alpha' value must be in the range 0.0f to 1.0f";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.paint = paint;
     this.stroke = stroke;
     this.outlinePaint = outlinePaint;
     this.outlineStroke = outlineStroke;
     this.alpha = alpha;
     this.labelFont = new Font("SansSerif", 0, 9);
     this.labelPaint = (Paint) Color.black;
     this.labelAnchor = RectangleAnchor.__\u003C\u003ETOP_LEFT;
     this.labelOffset = new RectangleInsets(3.0, 3.0, 3.0, 3.0);
     this.labelOffsetType = LengthAdjustmentType.__\u003C\u003ECONTRACT;
     this.labelTextAnchor = TextAnchor.__\u003C\u003ECENTER;
     this.listenerList = new EventListenerList();
   }
 }
Пример #13
0
 public static Shape createTranslatedShape(Shape shape, RectangleAnchor anchor, double locationX, double locationY)
 {
   if (shape == null)
   {
     string str = "Null 'shape' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (anchor == null)
   {
     string str = "Null 'anchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     Point2D point2D = RectangleAnchor.coordinates(shape.getBounds2D(), anchor);
     return AffineTransform.getTranslateInstance(locationX - point2D.getX(), locationY - point2D.getY()).createTransformedShape(shape);
   }
 }