public class IDARECustomImageLayer extends Object implements org.cytoscape.view.presentation.customgraphics.ImageCustomGraphicLayer
ImageCustomGraphicLayer
for imagenode DisplayConstructor and Description |
---|
IDARECustomImageLayer(BufferedImage bufferedImage,
int x,
int y,
int width,
int height)
Standard constructor with position and width/height information
|
Modifier and Type | Method and Description |
---|---|
void |
convertBufferedImageToRectangle()
Set the rectangle that contains the
BufferedImage - or should contain it, according to x,y, width and height |
Rectangle2D |
getBounds2D() |
BufferedImage |
getBufferedImage()
Get the
BufferedImage used in this GraphicLayer |
TexturePaint |
getPaint(Rectangle2D rectangle2D) |
void |
setBufferedImage(BufferedImage bufferedImage)
Set the
BufferedImage used |
org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer |
transform(AffineTransform affineTransform) |
public IDARECustomImageLayer(BufferedImage bufferedImage, int x, int y, int width, int height)
bufferedImage
- - the BufferedImage
to usex
- - the x position to paint the image aty
- - the y position to paint the image atwidth
- - The width of the imageheight
- - the height of the imagepublic BufferedImage getBufferedImage()
BufferedImage
used in this GraphicLayerBufferedImage
usedpublic void setBufferedImage(BufferedImage bufferedImage)
BufferedImage
usedbufferedImage
- - the BufferedImage
that should be displayed in this graphics Layerpublic void convertBufferedImageToRectangle()
BufferedImage
- or should contain it, according to x,y, width and heightpublic Rectangle2D getBounds2D()
getBounds2D
in interface org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer
public TexturePaint getPaint(Rectangle2D rectangle2D)
getPaint
in interface org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer
getPaint
in interface org.cytoscape.view.presentation.customgraphics.ImageCustomGraphicLayer
public org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer transform(AffineTransform affineTransform)
transform
in interface org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer
Copyright © 2018. All rights reserved.