/** * Set the width of the pinstripes * @param stripeWidth a new width for the pinstripes */ public void setStripeWidth(double stripeWidth) { double oldSripeWidth = getStripeWidth(); this.stripeWidth = stripeWidth; firePropertyChange("stripeWidth",new Double(oldSripeWidth),new Double(stripeWidth)); }
/** * Set the paint to use for drawing the pinstripes * * @param p * the Paint to use. May be a Color. */ public void setPaint(Paint p) { Paint old = getPaint(); this.paint = p; firePropertyChange("paint", old, getPaint()); }
/** * Set the width of the pinstripes * * @param stripeWidth * a new width for the pinstripes */ public void setStripeWidth(double stripeWidth) { double oldSripeWidth = getStripeWidth(); this.stripeWidth = stripeWidth; firePropertyChange("stripeWidth", oldSripeWidth, getStripeWidth()); }
/** * Sets the spacing between pinstripes * * @param spacing * spacing between pinstripes */ public void setSpacing(double spacing) { double old = getSpacing(); this.spacing = spacing; firePropertyChange("spacing", old, getSpacing()); }
/** * Set the width of the pinstripes * * @param stripeWidth * a new width for the pinstripes */ public void setStripeWidth(double stripeWidth) { double oldSripeWidth = getStripeWidth(); this.stripeWidth = stripeWidth; firePropertyChange("stripeWidth", oldSripeWidth, getStripeWidth()); }
/** * Sets the spacing between pinstripes * * @param spacing * spacing between pinstripes */ public void setSpacing(double spacing) { double old = getSpacing(); this.spacing = spacing; firePropertyChange("spacing", old, getSpacing()); }
/** * Sets the spacing between pinstripes * * @param spacing * spacing between pinstripes */ public void setSpacing(double spacing) { double old = getSpacing(); this.spacing = spacing; firePropertyChange("spacing", old, getSpacing()); }
/** * Set the paint to use for drawing the pinstripes * * @param p * the Paint to use. May be a Color. */ public void setPaint(Paint p) { Paint old = getPaint(); this.paint = p; firePropertyChange("paint", old, getPaint()); }
/** * Set the paint to use for drawing the pinstripes * * @param p * the Paint to use. May be a Color. */ public void setPaint(Paint p) { Paint old = getPaint(); this.paint = p; firePropertyChange("paint", old, getPaint()); }
/** * Set the width of the pinstripes * * @param stripeWidth * a new width for the pinstripes */ public void setStripeWidth(double stripeWidth) { double oldSripeWidth = getStripeWidth(); this.stripeWidth = stripeWidth; firePropertyChange("stripeWidth", oldSripeWidth, getStripeWidth()); }
/** * Set the paint to use for drawing the pinstripes * * @param p the Paint to use. May be a Color. */ public void setPaint(Paint p) { Paint old = getPaint(); this.paint = p; firePropertyChange("paint", old, getPaint()); }
/** * Sets the spacing between pinstripes * * @param spacing spacing between pinstripes */ public void setSpacing(double spacing) { double old = getSpacing(); this.spacing = spacing; firePropertyChange("spacing", old, getSpacing()); }
/** * Sets the angle, in degrees, at which to paint the pinstripes. If the given angle is < 0 or > * 360, it will be appropriately constrained. For example, if a value of 365 is given, it will * result in 5 degrees. The conversion is not perfect, but "a man on a galloping horse won't be * able to tell the difference". * * @param angle * the Angle in degrees at which to paint the pinstripes */ public void setAngle(double angle) { if (angle > 360) { angle = angle % 360; } if (angle < 0) { angle = 360 - ((angle * -1) % 360); } double old = getAngle(); this.angle = angle; firePropertyChange("angle", old, getAngle()); }
/** * Sets the angle, in degrees, at which to paint the pinstripes. If the * given angle is < 0 or > 360, it will be appropriately constrained. For * example, if a value of 365 is given, it will result in 5 degrees. The * conversion is not perfect, but "a man on a galloping horse won't be * able to tell the difference". * * @param angle the Angle in degrees at which to paint the pinstripes */ public void setAngle(double angle) { if (angle > 360) { angle = angle % 360; } if (angle < 0) { angle = 360 - ((angle * -1) % 360); } double old = getAngle(); this.angle = angle; firePropertyChange("angle", old, getAngle()); }
/** * Sets the angle, in degrees, at which to paint the pinstripes. If the given angle is < 0 or > * 360, it will be appropriately constrained. For example, if a value of 365 is given, it will * result in 5 degrees. The conversion is not perfect, but "a man on a galloping horse won't be * able to tell the difference". * * @param angle * the Angle in degrees at which to paint the pinstripes */ public void setAngle(double angle) { if (angle > 360) { angle = angle % 360; } if (angle < 0) { angle = 360 - ((angle * -1) % 360); } double old = getAngle(); this.angle = angle; firePropertyChange("angle", old, getAngle()); }
/** * Sets the angle, in degrees, at which to paint the pinstripes. If the given angle is < 0 or > * 360, it will be appropriately constrained. For example, if a value of 365 is given, it will * result in 5 degrees. The conversion is not perfect, but "a man on a galloping horse won't be * able to tell the difference". * * @param angle * the Angle in degrees at which to paint the pinstripes */ public void setAngle(double angle) { if (angle > 360) { angle = angle % 360; } if (angle < 0) { angle = 360 - ((angle * -1) % 360); } double old = getAngle(); this.angle = angle; firePropertyChange("angle", old, getAngle()); }