Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.jboogie.util

Class JBoogieUtils

com.gentleware.jboogie.util.JBoogieUtils

public class JBoogieUtils


Created: 31.01.2003 12:14:20


 Inner Classifier Summary
private static   JBoogieUtils.MetricsRunInfo
Class to represent an integer run and the font in that run  
arrow_up
 

 Attribute Summary
public static int  DIAGRAM_EXPORT_BORDER
 
public static double  HEIGHT_LIMIT_DISPLAY_FEATURES_AS_LINE_WHEN_DRAGGING
while dragging, want to replace text by a line even if the font is not so tiny, so if the pixelheight drops below this, paint lines instead. 
public static double  HEIGHT_LIMIT_DISPLAY_TEXT_AS_LINE
If the pixel-height of text drops below this value, then display it by a single line  
public static double  HEIGHT_LIMIT_HIDE_TEXT_COMPLETELY
If the pixel-height of text drops below this value, then don't bother to display text at all (not even as line), it is completely unreadable anyway  
public static String  IS_DRAGGING
 
public static String  IS_EXPORTING
 
public static String  IS_FLYING
 
public static String  IS_SCROLLING
 
arrow_up
 

 Association Summary
private FontRenderContext  SWING_FRC
 
private Component  metricSrc
 
arrow_up
 

 Constructor Summary
private   JBoogieUtils()
 
arrow_up
 

 Method Summary
public static void   assertDiClazz(Class diClazz)
 
public static void   assertSmClazz(Class smClazz)
 
public static File   checkFolderExistanceOrCreateOnDemand(String absolutePath, Component parentComponent, String errorMessage, String errorTitle)
 
public static void   clearExportCanvas(PCanvas canvas)
 
private static List   createBreakedString(String text, Font font)
Taken from PStyledText.syncWithDocument  
public static void   dumpDi(DiagramElement diagramElement, Project project)
 
public static void   dumpDi(DiagramElement diagramElement, int left, Project project)
 
private static void   dumpInputMap(String title, InputMap inputMap)
 
public static void   dumpKeyBindings(JComponent component)
 
public static void   dumpPiccolo(PNode pNode)
 
public static void   dumpPiccolo(PNode pNode, int left)
 
public static final String   extractClassName(Object model)
Extract Classname from package.classname and cut '$Impl' if necessary, e.g. 
public static final String   extractClassName(String fullClassName)
Extract Classname from the string "package.classname" and cut $Impl if necessary, e.g. 
public static List   getAllDependentEdgesAndAdornments(LayoutableElement layoutableElement, Set ignoreElements)
 
public static List   getDependentEdges(LayoutableElement layoutableElement)
 
public static PCanvas   getExportCanvas(Diagram diagram, Project project, int diagramBorderWidth)
Creates a new PCanvas which can be exported for a diagram. 
public static LockChecker   getLockChecker(Project project)
 
public static String   getShortInstanceId(Object instance)
 
public static PBounds   getTextBounds(String text, Font font, float wrappingWidth)
 
public static void   main(String[] args)
 
public static void   setDialogTextProgressDialog(ProgressDialog progress, String dialogText)
 
public static int   showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
 
public static int   showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
 
public static int   showConfirmDialog(Component parentComponent, Object message, String title, int optionType)
 
public static void   showMessageDialog(Component parent, Object message, String title, int messageType)
 
public static void   showMessageDialog(Component parent, Object message)
 
public static void   showMessageFrame(Frame parent, String text, ResourceId titleResourceId, boolean isModal)
 
public static int   showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
 
public static final String   stripInnerClassNameExtensions(String className)
 
public static SPoint2DDouble[]   transform(java.awt.geom.Point2D.Double[] points)
 
public static java.awt.geom.Point2D.Double[]   transformBack(SPoint2DDouble[] point2DDoubles)
 
public static void   updateProgressDialog(ProgressDialog progress, String dialogText)
 
public static void   updateProgressDialog(ProgressDialog progress)
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 61
gentleware-imported-package-statement-line-number 5
 

 Inner Classifier Detail

JBoogieUtils.MetricsRunInfo

private static  JBoogieUtils.MetricsRunInfo

Class to represent an integer run and the font in that run  
arrow_up
 Attribute Detail

DIAGRAM_EXPORT_BORDER

public static int DIAGRAM_EXPORT_BORDER

arrow_up


HEIGHT_LIMIT_DISPLAY_FEATURES_AS_LINE_WHEN_DRAGGING

public static double HEIGHT_LIMIT_DISPLAY_FEATURES_AS_LINE_WHEN_DRAGGING

while dragging, want to replace text by a line even if the font is not so tiny, so if the pixelheight drops below this, paint lines instead.  
arrow_up


HEIGHT_LIMIT_DISPLAY_TEXT_AS_LINE

public static double HEIGHT_LIMIT_DISPLAY_TEXT_AS_LINE

If the pixel-height of text drops below this value, then display it by a single line  
arrow_up


HEIGHT_LIMIT_HIDE_TEXT_COMPLETELY

public static double HEIGHT_LIMIT_HIDE_TEXT_COMPLETELY

If the pixel-height of text drops below this value, then don't bother to display text at all (not even as line), it is completely unreadable anyway  
arrow_up


IS_DRAGGING

public static String IS_DRAGGING

arrow_up


IS_EXPORTING

public static String IS_EXPORTING

arrow_up


IS_FLYING

public static String IS_FLYING

arrow_up


IS_SCROLLING

public static String IS_SCROLLING

arrow_up
 Association Detail

SWING_FRC

private FontRenderContext SWING_FRC

arrow_up


metricSrc

private Component metricSrc

arrow_up
 Constructor Detail

JBoogieUtils

private com.gentleware.jboogie.util.JBoogieUtils JBoogieUtils()

Returns:
arrow_up
 Method Detail

assertDiClazz

public static void assertDiClazz(Class diClazz)

Parameters:
diClazz -
arrow_up


assertSmClazz

public static void assertSmClazz(Class smClazz)

Parameters:
smClazz -
arrow_up


checkFolderExistanceOrCreateOnDemand

public static File checkFolderExistanceOrCreateOnDemand(String absolutePath, Component parentComponent, String errorMessage, String errorTitle)

Parameters:
absolutePath -
parentComponent -
errorMessage -
errorTitle -
Returns:
arrow_up


clearExportCanvas

public static void clearExportCanvas(PCanvas canvas)

Parameters:
canvas -
arrow_up


createBreakedString

private static List createBreakedString(String text, Font font)


Taken from PStyledText.syncWithDocument  
Parameters:
text -
font -
Returns:
arrow_up


dumpDi

public static void dumpDi(DiagramElement diagramElement, Project project)

Parameters:
diagramElement -
project -
arrow_up


dumpDi

public static void dumpDi(DiagramElement diagramElement, int left, Project project)

Parameters:
diagramElement -
left -
project -
arrow_up


dumpInputMap

private static void dumpInputMap(String title, InputMap inputMap)

Parameters:
title -
inputMap -
arrow_up


dumpKeyBindings

public static void dumpKeyBindings(JComponent component)

Parameters:
component -
arrow_up


dumpPiccolo

public static void dumpPiccolo(PNode pNode)

Parameters:
pNode -
arrow_up


dumpPiccolo

public static void dumpPiccolo(PNode pNode, int left)

Parameters:
pNode -
left -
arrow_up


extractClassName

public static final String extractClassName(Object model)


Extract Classname from package.classname and cut '$Impl' if necessary, e.g. if MDR is used @param model: Object 
Parameters:
model -
Returns:
Name of the Class
arrow_up


extractClassName

public static final String extractClassName(String fullClassName)


Extract Classname from the string "package.classname" and cut $Impl if necessary, e.g. if MDR is used.  
Parameters:
fullClassName - String representing the package and classname.
Returns:
The classname without package info and unnecessary postfixes.
arrow_up


getAllDependentEdgesAndAdornments

public static List getAllDependentEdgesAndAdornments(LayoutableElement layoutableElement, Set ignoreElements)

Parameters:
layoutableElement -
ignoreElements -
Returns:
all edges (and recursively their edges) that are dependent (and might need to be re-layouted...)
arrow_up


getDependentEdges

public static List getDependentEdges(LayoutableElement layoutableElement)

Parameters:
layoutableElement -
Returns:
all edges (and recursively their edges) that are dependent (and might need to be re-layouted...)
arrow_up


getExportCanvas

public static PCanvas getExportCanvas(Diagram diagram, Project project, int diagramBorderWidth)


Creates a new PCanvas which can be exported for a diagram.  
Parameters:
diagram - Diagram which should be exported
project - current project
diagramBorderWidth -
Returns:
new canvas with camera containing all properties set for exporting, zoom = 1, correctly sized with diagram starting at (0, 0)
arrow_up


getLockChecker

public static LockChecker getLockChecker(Project project)

Parameters:
project -
Returns:
arrow_up


getShortInstanceId

public static String getShortInstanceId(Object instance)

Parameters:
instance -
Returns:
the unqualified classname of the instance and its hash code, e.g. "BezierPoint@0aef" or "" if instance is null
arrow_up


getTextBounds

public static PBounds getTextBounds(String text, Font font, float wrappingWidth)

Parameters:
text -
font -
wrappingWidth -
Returns:
arrow_up


main

public static void main(String[] args)

Parameters:
args -
arrow_up


setDialogTextProgressDialog

public static void setDialogTextProgressDialog(ProgressDialog progress, String dialogText)

Parameters:
progress -
dialogText -
arrow_up


showConfirmDialog

public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)

Parameters:
parentComponent -
message -
title -
optionType -
messageType -
icon -
Returns:
arrow_up


showConfirmDialog

public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)

Parameters:
parentComponent -
message -
title -
optionType -
messageType -
Returns:
arrow_up


showConfirmDialog

public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType)

Parameters:
parentComponent -
message -
title -
optionType -
Returns:
arrow_up


showMessageDialog

public static void showMessageDialog(Component parent, Object message, String title, int messageType)

Parameters:
parent -
message -
title -
messageType -
arrow_up


showMessageDialog

public static void showMessageDialog(Component parent, Object message)

Parameters:
parent -
message -
arrow_up


showMessageFrame

public static void showMessageFrame(Frame parent, String text, ResourceId titleResourceId, boolean isModal)

Parameters:
parent -
text -
titleResourceId -
isModal -
arrow_up


showOptionDialog

public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)

Parameters:
parentComponent -
message -
title -
optionType -
messageType -
icon -
options -
initialValue -
Returns:
arrow_up


stripInnerClassNameExtensions

public static final String stripInnerClassNameExtensions(String className)

Parameters:
className -
Returns:
arrow_up


transform

public static SPoint2DDouble[] transform(java.awt.geom.Point2D.Double[] points)

Parameters:
points -
Returns:
arrow_up


transformBack

public static java.awt.geom.Point2D.Double[] transformBack(SPoint2DDouble[] point2DDoubles)

Parameters:
point2DDoubles -
Returns:
arrow_up


updateProgressDialog

public static void updateProgressDialog(ProgressDialog progress, String dialogText)

Parameters:
progress -
dialogText -
arrow_up


updateProgressDialog

public static void updateProgressDialog(ProgressDialog progress)

Parameters:
progress -
arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.