org.openbp.cockpit.modeler
Class ModelerGraphics

java.lang.Object
  extended by org.openbp.cockpit.modeler.ModelerGraphics

public class ModelerGraphics
extends java.lang.Object

Simple drawing objects like strokes and cursors used by the modeler.

Author:
Heiko Erhardt

Field Summary
static java.awt.Cursor createControlLinkCursor
          Create control link cursor
static java.awt.Cursor createDataLinkCursor
          Create data link cursor
static java.awt.Stroke debuggerStroke
          Stroke for current debugger position markation
static int DEFAULT_NODE_SIZE
          Default node size
static java.awt.Cursor defaultCursor
          Default cursor for empty process space
static java.awt.Cursor handClickAddCursor
          Hand click cursor (add to selection)
static java.awt.Cursor handClickCursor
          Hand click cursor
static java.awt.Cursor handScrollCursor
          Hand scroll cursor
static java.awt.Stroke hoveredStroke
          Stroke for figures hovered with the mouse
static java.awt.Stroke labelHandleStroke
          Stroke for the label handle line of control and data links and process variables
static java.awt.Cursor moveHLineCursor
          Move horizontal line cursor
static java.awt.Cursor moveNodeCursor
          Move node cursor
static java.awt.Cursor moveParamCursor
          Parameter reorder cursor
static java.awt.Cursor moveSocketCursor
          Socket rotation cursor
static java.awt.Cursor moveSplineHandleCursor
          Move spline handle cursor
static java.awt.Cursor moveSplinePointCursor
          Move spline point cursor
static java.awt.Cursor moveTextCursor
          Move text element cursor
static java.awt.Cursor moveVLineCursor
          Move vertical line cursor
static java.awt.Cursor resizeNodeCursor
          Move node cursor
static java.awt.Stroke selectionStroke
          Stroke for selected objects
static java.awt.Cursor standardAddCursor
          Standard cursor (add to selection)
static java.awt.Cursor standardCursor
          Standard cursor
static java.awt.Cursor zoomCursor
          Hand scroll cursor
 
Method Summary
static java.awt.FontMetrics getDefaultFontMetrics()
          Gets the metrics for default dialog font.
static java.lang.String getMsg(java.lang.String key)
          Gets the specified message string from the modeler graphics resource.
static java.awt.Font getStandardTextFont()
          Gets the text font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NODE_SIZE

public static final int DEFAULT_NODE_SIZE
Default node size

See Also:
Constant Field Values

defaultCursor

public static final java.awt.Cursor defaultCursor
Default cursor for empty process space


standardCursor

public static final java.awt.Cursor standardCursor
Standard cursor


standardAddCursor

public static final java.awt.Cursor standardAddCursor
Standard cursor (add to selection)


handClickCursor

public static final java.awt.Cursor handClickCursor
Hand click cursor


handClickAddCursor

public static final java.awt.Cursor handClickAddCursor
Hand click cursor (add to selection)


handScrollCursor

public static final java.awt.Cursor handScrollCursor
Hand scroll cursor


zoomCursor

public static final java.awt.Cursor zoomCursor
Hand scroll cursor


moveNodeCursor

public static final java.awt.Cursor moveNodeCursor
Move node cursor


resizeNodeCursor

public static final java.awt.Cursor resizeNodeCursor
Move node cursor


moveSocketCursor

public static final java.awt.Cursor moveSocketCursor
Socket rotation cursor


moveParamCursor

public static final java.awt.Cursor moveParamCursor
Parameter reorder cursor


moveTextCursor

public static final java.awt.Cursor moveTextCursor
Move text element cursor


moveHLineCursor

public static final java.awt.Cursor moveHLineCursor
Move horizontal line cursor


moveVLineCursor

public static final java.awt.Cursor moveVLineCursor
Move vertical line cursor


createControlLinkCursor

public static final java.awt.Cursor createControlLinkCursor
Create control link cursor


createDataLinkCursor

public static final java.awt.Cursor createDataLinkCursor
Create data link cursor


moveSplinePointCursor

public static final java.awt.Cursor moveSplinePointCursor
Move spline point cursor


moveSplineHandleCursor

public static final java.awt.Cursor moveSplineHandleCursor
Move spline handle cursor


selectionStroke

public static final java.awt.Stroke selectionStroke
Stroke for selected objects


hoveredStroke

public static final java.awt.Stroke hoveredStroke
Stroke for figures hovered with the mouse


debuggerStroke

public static final java.awt.Stroke debuggerStroke
Stroke for current debugger position markation


labelHandleStroke

public static final java.awt.Stroke labelHandleStroke
Stroke for the label handle line of control and data links and process variables

Method Detail

getMsg

public static java.lang.String getMsg(java.lang.String key)
Gets the specified message string from the modeler graphics resource.

Parameters:
key - Resource key
Returns:
The message or null if not found

getStandardTextFont

public static java.awt.Font getStandardTextFont()
Gets the text font.


getDefaultFontMetrics

public static java.awt.FontMetrics getDefaultFontMetrics()
Gets the metrics for default dialog font.



Copyright © 2011. All Rights Reserved.