java.lang.Object
net.mcreator.ui.views.editor.image.layer.Layer

public class Layer extends Object
  • Constructor Details

    • Layer

      public Layer(int width, int height, String name)
    • Layer

      public Layer(int width, int height, int x, int y, String name)
    • Layer

      public Layer(int width, int height, int x, int y, String name, Color color)
    • Layer

      public Layer(int width, int height, int x, int y, String name, Image image)
    • Layer

      public Layer(String name, Image image)
  • Method Details

    • getX

      public int getX()
    • setX

      public void setX(int x)
    • getY

      public int getY()
    • setY

      public void setY(int y)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCanvas

      public Canvas getCanvas()
    • setCanvas

      public void setCanvas(Canvas canvas)
    • toLayer

      public static Layer toLayer(Image image, String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isVisible

      public boolean isVisible()
    • setVisible

      public void setVisible(boolean visible)
    • isPasted

      public boolean isPasted()
    • setPasted

      public void setPasted(boolean isPasted)
    • in

      public boolean in(int x, int y)
    • createOverlay

      public void createOverlay()
    • resetOverlay

      public void resetOverlay()
    • mergeOnTop

      public void mergeOnTop(Layer topLayer)
    • clear

      public void clear()
    • clearSelection

      public void clearSelection()
    • getRaster

      public BufferedImage getRaster()
    • setRaster

      public void setRaster(BufferedImage raster)
    • getType

      public int getType()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • createGraphics

      public Graphics2D createGraphics()
    • mergeOverlay

      public BufferedImage mergeOverlay(boolean apply)
    • mergeOverlay

      public void mergeOverlay()
    • getRenderingMode

      public boolean getRenderingMode()
    • setRenderingMode

      public void setRenderingMode(boolean eraser)
    • getOverlay

      public BufferedImage getOverlay()
    • getOverlayOpacity

      public double getOverlayOpacity()
    • setOverlayOpacity

      public void setOverlayOpacity(double overlayOpacity)
    • getRGB

      public int getRGB(int x, int y)
    • copy

      public Layer copy()
    • sizeOf

      public int sizeOf()
    • copyImage

      public BufferedImage copyImage()
    • replaceImage

      public void replaceImage(BufferedImage image)
    • resize

      public void resize(int width, int height, boolean antialiasing)
    • deleteSelection

      public void deleteSelection()