|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.util.FigureUtil
public class FigureUtil
Figure utility methods.
| Method Summary | |
|---|---|
static java.awt.Image |
combineImages(java.awt.Image base,
java.awt.Image overlay,
int x,
int y,
int overlayWidth,
int overlayHeight)
Combines two images into a single one by overlaying the base image with the overlay image. |
static java.awt.Image |
copyImage(java.awt.Image image)
Copies an image. |
static XFigure |
createShadowFigure(XFigure presentationFigure)
Creates a shadow figure by cloning the given presentation figure. |
static Skin |
determineProcessSkin(ProcessItem process)
Gets the skin to use for the given process. |
static CH.ifa.draw.framework.Figure |
getChildFigureByPoint(CH.ifa.draw.framework.Figure figure,
int x,
int y,
java.lang.Class figureClass)
Finds a (direct) child figure within the given figure. |
static CH.ifa.draw.framework.Figure |
getFigureByPoint(CH.ifa.draw.framework.Figure figure,
int x,
int y,
java.lang.Class figureClass)
Finds the figure that contains the given point within the given figure. |
static SymbolDescriptor |
getSymbolDescriptorForModelObject(Skin skin,
ModelObject o)
Gets the symbol descriptor from the given skin that can be used to display the given model object. |
static java.util.List |
getTypedFigureList(CH.ifa.draw.framework.Figure parentFigure,
java.lang.Class figureClass)
Creates a list of figures that match the given type. |
static boolean |
isVerticalRelationship(CH.ifa.draw.framework.Figure f1,
CH.ifa.draw.framework.Figure f2)
Checks if two figures relate rather vertical or horizontal. |
static java.lang.String |
printInt(double d)
Prints a double value as an integer. |
static boolean |
synchronizeText(TitleFigure figure)
Synchronizes a title figure with the text of its associated content object. |
static void |
updateItemGeometry(Skin skin,
Item item)
Updates the geometry string of an item according to the number of sockets that are connected to the item. |
static void |
updateSkin(CH.ifa.draw.framework.Figure figure)
Updates the figure according to the currently selected skin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CH.ifa.draw.framework.Figure getFigureByPoint(CH.ifa.draw.framework.Figure figure,
int x,
int y,
java.lang.Class figureClass)
figure - Parent figurex - X coordinate of the pointy - Y coordinate of the pointfigureClass - Figure class if a child figure of a particular type should be retrieved
or null for any type of child figure
public static CH.ifa.draw.framework.Figure getChildFigureByPoint(CH.ifa.draw.framework.Figure figure,
int x,
int y,
java.lang.Class figureClass)
figure - Parent figurex - X coordinate of the pointy - Y coordinate of the pointfigureClass - Figure class if a child figure of a particular type should be retrieved
or null for any type of child figure
public static java.util.List getTypedFigureList(CH.ifa.draw.framework.Figure parentFigure,
java.lang.Class figureClass)
parentFigure - Parent figure to enumeratefigureClass - Class of the figures to return
public static XFigure createShadowFigure(XFigure presentationFigure)
presentationFigure - Presentation figure to clone
public static boolean isVerticalRelationship(CH.ifa.draw.framework.Figure f1,
CH.ifa.draw.framework.Figure f2)
f1 - Eventf2 - Event
public static boolean synchronizeText(TitleFigure figure)
figure - Figure to updateFigure
public static java.awt.Image combineImages(java.awt.Image base,
java.awt.Image overlay,
int x,
int y,
int overlayWidth,
int overlayHeight)
base - Base imageoverlay - Overlay imagex - X position of overlay imagey - Y position of overlay imageoverlayWidth - Width of the overlay image; 0 for its regular sizeoverlayHeight - height of the overlay image; 0 for its regular size
public static java.awt.Image copyImage(java.awt.Image image)
image - Image to copy
public static Skin determineProcessSkin(ProcessItem process)
process - Process
public static void updateSkin(CH.ifa.draw.framework.Figure figure)
figure - Figure to update
public static SymbolDescriptor getSymbolDescriptorForModelObject(Skin skin,
ModelObject o)
skin - Process skino - Object to display
public static void updateItemGeometry(Skin skin,
Item item)
skin - Process skin used for display or null for the default skinitem - Item to updatepublic static java.lang.String printInt(double d)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||