public class ImageStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DIR_SOURCE |
static int |
DIR_TARGET |
Constructor and Description |
---|
ImageStore() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
add(ProcessModel currentModel,
ProcessNode currentNode,
java.awt.image.BufferedImage img)
Derive a new ID for the changed image of the given node
|
static java.lang.String |
addEdgeShapeImage(ProcessEdge edge,
int direction) |
static java.awt.image.BufferedImage |
getDummyNodeImage(java.lang.String className,
boolean preview) |
static java.awt.image.BufferedImage |
getEdgeShapeImage(java.lang.String key) |
static java.awt.image.BufferedImage |
getImage(java.lang.String nodeId,
ProcessModel model)
Get an image for the a single node in a given model.
|
static void |
removeAllRelatedImages(java.lang.String id) |
public static final int DIR_SOURCE
public static final int DIR_TARGET
public static java.lang.String add(ProcessModel currentModel, ProcessNode currentNode, java.awt.image.BufferedImage img)
currentModel
- the current modelcurrentNode
- the current nodeimg
- the node's imagepublic static java.awt.image.BufferedImage getImage(java.lang.String nodeId, ProcessModel model) throws java.lang.Exception
nodeId
- ID of the requested nodecurrentModel
- the current modeljava.lang.Exception
public static java.awt.image.BufferedImage getDummyNodeImage(java.lang.String className, boolean preview) throws java.lang.Exception
java.lang.Exception
public static java.awt.image.BufferedImage getEdgeShapeImage(java.lang.String key)
public static java.lang.String addEdgeShapeImage(ProcessEdge edge, int direction)
public static void removeAllRelatedImages(java.lang.String id)