@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } TextCacheKey that = (TextCacheKey) o; return ((this.text == null) ? (that.text == null) : this.text.equals(that.text)) && ((this.textColor == null) ? (that.textColor == null) : this.textColor.equals(that.textColor)) && this.textSize == that.textSize && ((this.typeface == null) ? (that.typeface == null) : this.typeface.equals(that.typeface)) && this.enableOutline == that.enableOutline && ((this.outlineColor == null) ? (that.outlineColor == null) : this.outlineColor.equals(that.outlineColor)) && this.outlineWidth == that.outlineWidth; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } TextAttributes that = (TextAttributes) o; return this.textColor.equals(that.textColor) && this.textOffset.equals(that.textOffset) && this.textSize == that.textSize && ((this.typeface == null) ? (that.typeface == null) : this.typeface.equals(that.typeface)) && this.enableOutline == that.enableOutline && this.outlineColor.equals(that.outlineColor) && this.enableDepthTest == that.enableDepthTest && this.outlineWidth == that.outlineWidth; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } ShapeAttributes that = (ShapeAttributes) o; return this.drawInterior == that.drawInterior && this.drawOutline == that.drawOutline && this.drawVerticals == that.drawVerticals && this.depthTest == that.depthTest && this.enableLighting == that.enableLighting && this.interiorColor.equals(that.interiorColor) && this.outlineColor.equals(that.outlineColor) && this.outlineWidth == that.outlineWidth && ((this.interiorImageSource == null) ? (that.interiorImageSource == null) : this.interiorImageSource.equals(that.interiorImageSource)) && ((this.outlineImageSource == null) ? (that.outlineImageSource == null) : this.outlineImageSource.equals(that.outlineImageSource)); }
public void loadColor(Color color) { if (!this.color.equals(color)) { // suppress unnecessary writes to GLSL uniform variables this.color.set(color); float a = color.alpha; GLES20.glUniform4f(this.colorId, color.red * a, color.green * a, color.blue * a, a); } } }
public void loadColor(Color color) { if (!this.color.equals(color)) { this.color.set(color); float alpha = color.alpha; GLES20.glUniform4f(this.colorId, color.red * alpha, color.green * alpha, color.blue * alpha, alpha); } } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } PlacemarkAttributes that = (PlacemarkAttributes) o; return ((this.imageSource == null) ? (that.imageSource == null) : this.imageSource.equals(that.imageSource)) && this.imageColor.equals(that.imageColor) && this.imageOffset.equals(that.imageOffset) && this.imageScale == that.imageScale && this.minimumImageScale == that.minimumImageScale && this.drawLeader == that.drawLeader && this.depthTest == that.depthTest && ((this.labelAttributes == null) ? (that.labelAttributes == null) : this.labelAttributes.equals(that.labelAttributes)) && ((this.leaderAttributes == null) ? (that.leaderAttributes == null) : this.leaderAttributes.equals(that.leaderAttributes)); }