/** * Sets the outline paint and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param paint the paint ({@code null} permitted). * * @see #getOutlinePaint() */ public void setOutlinePaint(Paint paint) { this.outlinePaint = paint; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the outline stroke and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param stroke the stroke ({@code null} permitted). * * @see #getOutlineStroke() */ public void setOutlineStroke(Stroke stroke) { this.outlineStroke = stroke; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label (if {@code null} no label is displayed) and sends a * {@link MarkerChangeEvent} to all registered listeners. * * @param label the label ({@code null} permitted). * * @see #getLabel() */ public void setLabel(String label) { this.label = label; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the outline stroke and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param stroke the stroke (<code>null</code> permitted). * * @see #getOutlineStroke() */ public void setOutlineStroke(Stroke stroke) { this.outlineStroke = stroke; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label (if <code>null</code> no label is displayed) and sends a * {@link MarkerChangeEvent} to all registered listeners. * * @param label the label (<code>null</code> permitted). * * @see #getLabel() */ public void setLabel(String label) { this.label = label; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the outline paint and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param paint the paint (<code>null</code> permitted). * * @see #getOutlinePaint() */ public void setOutlinePaint(Paint paint) { this.outlinePaint = paint; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label paint and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param paint the paint (<code>null</code> not permitted). * * @see #getLabelPaint() */ public void setLabelPaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.labelPaint = paint; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label anchor and sends a {@link MarkerChangeEvent} to all * registered listeners. The anchor defines the position of the label * anchor, relative to the bounds of the marker. * * @param anchor the anchor (<code>null</code> not permitted). * * @see #getLabelAnchor() */ public void setLabelAnchor(RectangleAnchor anchor) { if (anchor == null) { throw new IllegalArgumentException("Null 'anchor' argument."); } this.labelAnchor = anchor; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the stroke and sends a {@link MarkerChangeEvent} to all registered * listeners. * * @param stroke the stroke (<code>null</code> not permitted). * * @see #getStroke() */ public void setStroke(Stroke stroke) { if (stroke == null) { throw new IllegalArgumentException("Null 'stroke' argument."); } this.stroke = stroke; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label font and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param font the font (<code>null</code> not permitted). * * @see #getLabelFont() */ public void setLabelFont(Font font) { if (font == null) { throw new IllegalArgumentException("Null 'font' argument."); } this.labelFont = font; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label offset and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param offset the label offset (<code>null</code> not permitted). * * @see #getLabelOffset() */ public void setLabelOffset(RectangleInsets offset) { if (offset == null) { throw new IllegalArgumentException("Null 'offset' argument."); } this.labelOffset = offset; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label text anchor and sends a {@link MarkerChangeEvent} to * all registered listeners. * * @param anchor the label text anchor (<code>null</code> not permitted). * * @see #getLabelTextAnchor() */ public void setLabelTextAnchor(TextAnchor anchor) { if (anchor == null) { throw new IllegalArgumentException("Null 'anchor' argument."); } this.labelTextAnchor = anchor; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label offset and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param offset the label offset ({@code null} not permitted). * * @see #getLabelOffset() */ public void setLabelOffset(RectangleInsets offset) { Args.nullNotPermitted(offset, "offset"); this.labelOffset = offset; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label offset type and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param adj the type ({@code null} not permitted). * * @see #getLabelOffsetType() */ public void setLabelOffsetType(LengthAdjustmentType adj) { Args.nullNotPermitted(adj, "adj"); this.labelOffsetType = adj; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the paint and sends a {@link MarkerChangeEvent} to all registered * listeners. * * @param paint the paint ({@code null} not permitted). * * @see #getPaint() */ public void setPaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.paint = paint; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label font and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param font the font ({@code null} not permitted). * * @see #getLabelFont() */ public void setLabelFont(Font font) { Args.nullNotPermitted(font, "font"); this.labelFont = font; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the stroke and sends a {@link MarkerChangeEvent} to all registered * listeners. * * @param stroke the stroke ({@code null}not permitted). * * @see #getStroke() */ public void setStroke(Stroke stroke) { Args.nullNotPermitted(stroke, "stroke"); this.stroke = stroke; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label text anchor and sends a {@link MarkerChangeEvent} to * all registered listeners. * * @param anchor the label text anchor ({@code null} not permitted). * * @see #getLabelTextAnchor() */ public void setLabelTextAnchor(TextAnchor anchor) { Args.nullNotPermitted(anchor, "anchor"); this.labelTextAnchor = anchor; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label paint and sends a {@link MarkerChangeEvent} to all * registered listeners. * * @param paint the paint ({@code null} not permitted). * * @see #getLabelPaint() */ public void setLabelPaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.labelPaint = paint; notifyListeners(new MarkerChangeEvent(this)); }
/** * Sets the label anchor and sends a {@link MarkerChangeEvent} to all * registered listeners. The anchor defines the position of the label * anchor, relative to the bounds of the marker. * * @param anchor the anchor ({@code null} not permitted). * * @see #getLabelAnchor() */ public void setLabelAnchor(RectangleAnchor anchor) { Args.nullNotPermitted(anchor, "anchor"); this.labelAnchor = anchor; notifyListeners(new MarkerChangeEvent(this)); }