com.tensegrity.gui.swt
Class SwtAnchorRenderer
java.lang.Object
com.tensegrity.gui.swt.SwtAnchorRenderer
- public class SwtAnchorRenderer
- extends java.lang.Object
This class provides static methods for drawing anchor object to a given
graphic context.
- Version:
- $Id: SwtAnchorRenderer.java,v 1.2 2005/10/05 14:23:55 ArndHouben Exp $
- Author:
- ArndHouben
- See Also:
{@}
|
Method Summary |
static void |
draw(Anchor anchor,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle cArea,
boolean enabled,
boolean icon)
This class draws an arrow to the specified graphic context which
describes the direction of the given Anchor object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwtAnchorRenderer
public SwtAnchorRenderer()
- Empty default constructor
draw
public static void draw(Anchor anchor,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle cArea,
boolean enabled,
boolean icon)
- This class draws an arrow to the specified graphic context which
describes the direction of the given
Anchor object.
- Parameters:
anchor - determines the direction of the arrowgc - the graphic context to draw oncArea - the area to use for drawingenabled - signals if this direction is enabled or not. results in a
different fill color.icon - signals if we render on an icon, so a special mode is used
for nicer draw results. (NOTE: this param is temporarily and
will be removed in near future...)
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.