Class AdjustmentNode

java.lang.Object
com.codename1.art.ArtNode
com.codename1.art.AdjustmentNode

public class AdjustmentNode extends ArtNode
An adjustment layer: changes the colors of everything painted below it in the same group, as Photoshop's levels, curves or hue/saturation layers do.
  • Constructor Details

    • AdjustmentNode

      public AdjustmentNode(Effect adjustment)

      Creates an adjustment layer.

      Parameters
      • adjustment: the color effect to apply to the backdrop
  • Method Details

    • getAdjustment

      public Effect getAdjustment()
      The adjustment.
    • setAdjustment

      public void setAdjustment(Effect adjustment)

      Replaces the adjustment.

      Parameters
      • adjustment: the new effect
    • getLocalBounds

      public double[] getLocalBounds()
      Description copied from class: ArtNode
      The bounds of this node's own content in its own space as x, y, w, h, without effects; null when it has none.
      Specified by:
      getLocalBounds in class ArtNode
    • copy

      public ArtNode copy()
      Description copied from class: ArtNode
      A deep copy.
      Specified by:
      copy in class ArtNode