public class IDARECustomGraphics extends Object implements org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>
| Constructor and Description |
|---|
IDARECustomGraphics(BufferedImage image,
int width,
int height)
Default constructor with an Image and initial Heights and width
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object icg) |
String |
getDisplayName() |
float |
getFitRatio() |
int |
getHeight() |
Long |
getIdentifier() |
List<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer> |
getLayers(org.cytoscape.view.model.CyNetworkView networkView,
org.cytoscape.view.model.View view) |
BufferedImage |
getRenderedImage() |
int |
getWidth() |
void |
setDisplayName(String displayName) |
void |
setFitRatio(float ratio) |
void |
setHeight(int height) |
void |
setIdentifier(Long id) |
void |
setWidth(int width) |
String |
toSerializableString() |
public IDARECustomGraphics(BufferedImage image, int width, int height)
image - - A BufferedImage contained in this CustomGraphicswidth - - The initial width of the graphicheight - - The initial height of the graphicpublic Long getIdentifier()
getIdentifier in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public void setIdentifier(Long id)
setIdentifier in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public String getDisplayName()
getDisplayName in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public void setDisplayName(String displayName)
setDisplayName in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public String toSerializableString()
toSerializableString in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public List<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer> getLayers(org.cytoscape.view.model.CyNetworkView networkView, org.cytoscape.view.model.View view)
getLayers in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public int getWidth()
getWidth in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public int getHeight()
getHeight in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public void setWidth(int width)
setWidth in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public void setHeight(int height)
setHeight in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public float getFitRatio()
getFitRatio in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public void setFitRatio(float ratio)
setFitRatio in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>public BufferedImage getRenderedImage()
getRenderedImage in interface org.cytoscape.view.presentation.customgraphics.CyCustomGraphics<org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer>Copyright © 2018. All rights reserved.