de.ukn.hci.squidy.designer.util
Class ShapeUtils

java.lang.Object
  extended by de.ukn.hci.squidy.designer.util.ShapeUtils

public class ShapeUtils
extends Object

ShapeUtils.

 Date: Feb 19, 2009
 Time: 7:06:44 PM
 

Since:
1.0.0
Version:
$Id: ShapeUtils.java 30 2009-09-18 22:23:35Z nitsche $
Author:
 Roman R&aumldle
 <a href="mailto:Roman.Raedle@uni-konstanz.de">Roman.Raedle@uni-konstanz.de</a>
 Human-Computer Interaction Group
 University of Konstanz
 

Constructor Summary
ShapeUtils()
           
 
Method Summary
static ConnectionManager getConnectionManager(edu.umd.cs.piccolo.PNode node)
          Searches for a ConnectionManagable within the hierarchy of the parameter node.
static
<O> O
getObjectInHierarchy(Class<? extends O> objectType, edu.umd.cs.piccolo.PNode hierarchy)
           
static boolean isApparent(edu.umd.cs.piccolo.PNode shape)
           
static void setApparent(edu.umd.cs.piccolo.PNode shape, boolean apparent)
           
static void setOffset(edu.umd.cs.piccolo.PNode shape, double x, double y)
           
static void setRenderPrimitive(VisualShape<?> shape, boolean renderPrimitive)
           
static void setScale(edu.umd.cs.piccolo.PNode shape, double scale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeUtils

public ShapeUtils()
Method Detail

setApparent

public static final void setApparent(edu.umd.cs.piccolo.PNode shape,
                                     boolean apparent)
Parameters:
shape -
apparent -

isApparent

public static final boolean isApparent(edu.umd.cs.piccolo.PNode shape)
Parameters:
shape -
Returns:

setOffset

public static final void setOffset(edu.umd.cs.piccolo.PNode shape,
                                   double x,
                                   double y)
Parameters:
shape -
x -
y -

setScale

public static final void setScale(edu.umd.cs.piccolo.PNode shape,
                                  double scale)
Parameters:
shape -
scale -

setRenderPrimitive

public static final void setRenderPrimitive(VisualShape<?> shape,
                                            boolean renderPrimitive)
Parameters:
shape -
renderPrimitive -

getConnectionManager

public static final ConnectionManager getConnectionManager(edu.umd.cs.piccolo.PNode node)
                                                    throws SquidyException
Searches for a ConnectionManagable within the hierarchy of the parameter node. It returns the found ConnectionManager instance.

Parameters:
node - The beginner node of the hierarchical search.
Returns:
The connection manager instance.
Throws:
SquidyException - If no connection manager has been found.

getObjectInHierarchy

public static final <O> O getObjectInHierarchy(Class<? extends O> objectType,
                                               edu.umd.cs.piccolo.PNode hierarchy)
Type Parameters:
O -
Parameters:
objectType -
hierarchy -
Returns:


Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.