/** * Returns the insets. * * @return insets */ public Insets getInsets() { return (Insets)insets.clone(); }
/** * Returns the insets. * * @return insets */ public Insets getInsets() { return (Insets)insets.clone(); }
/** * Returns a copy of the insets used to paint the month string background. * * @return Insets Month string insets. */ public Insets getMonthStringInsets() { return (Insets) _monthStringInsets.clone(); }
ComponentInfo(Component cmp, MultiBorderConstraints constr) { comp = cmp; anchor = constr.anchor; fill = constr.fill; inset = (constr.insets == null) ? NULL_INSETS : (Insets) constr.insets.clone(); }
/** * Returns a copy of the insets used to paint the month string background. * * @return Insets Month string insets. */ public Insets getMonthStringInsets() { return (Insets) _monthStringInsets.clone(); }
/** * Returns a copy of the insets used to paint the month string background. * * @return Insets Month string insets. */ public Insets getMonthStringInsets() { return (Insets) _monthStringInsets.clone(); }
/******************************************************************************* * * Returns the maximum margin that can be shown around the image. * * @return the margin * ******************************************************************************/ public Insets getMargin () { return (Insets)margin.clone(); }
/** * Returns the insets of the border. * * @param c the component for which this border insets value applies * @return TODO */ public Insets getBorderInsets(Component c) { return (Insets) borderInsets.clone(); }
/** * Returns a copy of the insets used to paint the month string background. * * @return Insets Month string insets. */ public Insets getMonthStringInsets() { return (Insets) _monthStringInsets.clone(); }
/** * Returns the insets. * * @return insets */ public Insets getInsets() { return (Insets)insets.clone(); }
/** * Returns the insets. * * @return insets */ public Insets getInsets() { return (Insets)insets.clone(); }
/** * Returns the insets of the border. * @param c the component for which this border insets value applies */ @Override public Insets getBorderInsets(Component c) { return (Insets) borderInsets.clone(); }
/** * Get text insets. These insets are used to offset the text from the * border lines. * * @return Text insets. */ @NotNull public Insets getTextInsets() { return (Insets) _textInsets.clone(); }
/** * Creates a new Constraint with the specified resize behavior and insets. * * @param resizeBehavior - either JXStatusBar.Constraint.ResizeBehavior.FIXED * or JXStatusBar.Constraints.ResizeBehavior.FILL. * @param insets may be null. If null, an Insets with 0 values will be used. */ public Constraint(ResizeBehavior resizeBehavior, Insets insets) { this.resizeBehavior = resizeBehavior; this.insets = insets == null ? new Insets(0, 0, 0, 0) : (Insets)insets.clone(); }
/** * Creates a new Constraint with the specified resize behavior and insets. * * @param resizeBehavior - either JXStatusBar.Constraint.ResizeBehavior.FIXED * or JXStatusBar.Constraints.ResizeBehavior.FILL. * @param insets may be null. If null, an Insets with 0 values will be used. */ public Constraint(ResizeBehavior resizeBehavior, Insets insets) { this.resizeBehavior = resizeBehavior; this.insets = insets == null ? new Insets(0, 0, 0, 0) : (Insets)insets.clone(); }
public void setMargin(Insets margin) { Insets oldValue = this.margin; this.margin = (Insets) margin.clone(); firePropertyChange(MARGIN_PROPERTY, oldValue, margin); }
public void setMargin(Insets margin) { Insets oldValue = this.margin; this.margin = (Insets) margin.clone(); firePropertyChange(MARGIN_PROPERTY, oldValue, margin); }
public void setMargin(Insets margin) { Insets oldValue = this.margin; this.margin = (Insets) margin.clone(); firePropertyChange(MARGIN_PROPERTY, oldValue, margin); }
public void setMargin(Insets margin) { Insets oldValue = this.margin; this.margin = (Insets) margin.clone(); firePropertyChange(MARGIN_PROPERTY, oldValue, margin); }
/** * Returns the insets of the border. * * @param c * the component for which this border insets value applies * @return the insets of the border. */ public Insets getBorderInsets(Component c) { return (Insets) getUpdatedInsets(c).clone(); }