org.openbp.cockpit.modeler.util
Class FigureResources

java.lang.Object
  extended by org.openbp.cockpit.modeler.util.FigureResources

public class FigureResources
extends java.lang.Object

Standard figure resources.

Author:
Heiko Erhardt

Field Summary
static java.awt.Stroke standardStroke1
          1 pixel stroke
static java.awt.Stroke standardStroke2
          2 pixel stroke
static java.awt.Stroke standardStroke3
          3 pixel stroke
 
Method Summary
static CH.ifa.draw.framework.Figure getAcceptOverlay(java.lang.Object owner)
          This methods is used by decorators that wish to overlay a presentation figure with a semi-transparent green color to indicate acceptable locations for object dragging.
static CH.ifa.draw.framework.Figure getBreakpointOverlay(java.lang.Object owner)
           
static CH.ifa.draw.framework.Figure getExpressionOverlay(java.lang.Object owner)
          This methods is used by decorators that wish to overlay a presentation figure with a semi-transparent blue color to indicate an expression inside the figure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardStroke1

public static final java.awt.Stroke standardStroke1
1 pixel stroke


standardStroke2

public static final java.awt.Stroke standardStroke2
2 pixel stroke


standardStroke3

public static final java.awt.Stroke standardStroke3
3 pixel stroke

Method Detail

getAcceptOverlay

public static CH.ifa.draw.framework.Figure getAcceptOverlay(java.lang.Object owner)
This methods is used by decorators that wish to overlay a presentation figure with a semi-transparent green color to indicate acceptable locations for object dragging.

Parameters:
owner - Owner object to be decorated (i. e. a node, a socket, a parameter etc.)
Returns:
An overlay figure that matches the size and shape of the presentation figure of the supplied owner object, provided that
- the owner is a VisualElement which has a VisualElement.getPresentationFigure() or
- the owner is a Figure itself
and
- the presentation figure is supported by this method
or null otherwise.

getExpressionOverlay

public static CH.ifa.draw.framework.Figure getExpressionOverlay(java.lang.Object owner)
This methods is used by decorators that wish to overlay a presentation figure with a semi-transparent blue color to indicate an expression inside the figure.

Parameters:
owner - Owner object to be decorated (i. e. a node, a socket, a parameter etc.)
Returns:
An overlay figure that matches the size and shape of the presentation figure of the supplied owner object, provided that
- the owner is a VisualElement which has a VisualElement.getPresentationFigure() or
- the owner is a Figure itself
and
- the presentation figure is supported by this method
or null otherwise.

getBreakpointOverlay

public static CH.ifa.draw.framework.Figure getBreakpointOverlay(java.lang.Object owner)


Copyright © 2011. All Rights Reserved.