modeller.draw
Class StaticDrawing

java.lang.Object
  extended by modeller.draw.StaticDrawing

public class StaticDrawing
extends java.lang.Object


Field Summary
static java.awt.BasicStroke BASICSTROKE
           
static java.awt.BasicStroke DASHED_STROKE
           
static int EXTRUDING_X
           
static int EXTRUDING_Y
           
static int EXTRUDING_Z
           
static java.awt.BasicStroke FINE_DOTTED_STROKE
           
static int GEOMETRY_2D_CIRCLE
           
static int GEOMETRY_2D_CLOSED_POLYGON
           
static int GEOMETRY_2D_ELLIPSE
           
static int GEOMETRY_2D_LINE
           
static int GEOMETRY_2D_POLYGON
           
static int GEOMETRY_2D_SHAPE
           
static int GEOMETRY_2D_TRIANGLE
           
static int GEOMETRY_3D_BOX
           
static int GEOMETRY_3D_CONE
           
static int GEOMETRY_3D_CUBE
           
static int GEOMETRY_3D_CYLINDER
           
static int GEOMETRY_3D_SPHERE
           
private static java.awt.Shape shape
           
 
Constructor Summary
StaticDrawing()
           
 
Method Summary
static java.awt.BasicStroke buildStroke(float scale)
          Return a a simple BasicStroke
static java.awt.Shape drawCross(double x, double y, double z, int panelID, int width, int height)
          Drawing the cursor-cross
static java.awt.Shape drawMarkingBox(java.awt.Shape shape)
          Returning a Shape for a (maybe dashed) box, as a frame around of the object-shape
static java.awt.Shape drawMarkingSpot(double x, double y, double z, double scale, int size, int panelID)
           
static java.awt.Shape drawMarkingSpot(double x, double y, double scale, int size)
          Returning a Shape with a single marking-spot
static java.awt.Shape drawMarkingSpots(java.awt.Shape shape, double scale, int size)
          Returning a Shape, for drawing marking-spots on the coner of the object-shape
static java.awt.Shape drawPaintLine(int x1, int y1, int z1, int x2, int y2, int z2, int panelID, int width, int height)
          Drawing the help-line
static java.awt.BasicStroke GET_BASICSTROKE(double scale)
           
static java.awt.BasicStroke GET_DASHED_STROKE(double scale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASICSTROKE

public static final java.awt.BasicStroke BASICSTROKE

FINE_DOTTED_STROKE

public static final java.awt.BasicStroke FINE_DOTTED_STROKE

DASHED_STROKE

public static final java.awt.BasicStroke DASHED_STROKE

EXTRUDING_X

public static final int EXTRUDING_X
See Also:
Constant Field Values

EXTRUDING_Y

public static final int EXTRUDING_Y
See Also:
Constant Field Values

EXTRUDING_Z

public static final int EXTRUDING_Z
See Also:
Constant Field Values

GEOMETRY_2D_LINE

public static final int GEOMETRY_2D_LINE
See Also:
Constant Field Values

GEOMETRY_2D_POLYGON

public static final int GEOMETRY_2D_POLYGON
See Also:
Constant Field Values

GEOMETRY_2D_CLOSED_POLYGON

public static final int GEOMETRY_2D_CLOSED_POLYGON
See Also:
Constant Field Values

GEOMETRY_2D_CIRCLE

public static final int GEOMETRY_2D_CIRCLE
See Also:
Constant Field Values

GEOMETRY_2D_ELLIPSE

public static final int GEOMETRY_2D_ELLIPSE
See Also:
Constant Field Values

GEOMETRY_2D_TRIANGLE

public static final int GEOMETRY_2D_TRIANGLE
See Also:
Constant Field Values

GEOMETRY_2D_SHAPE

public static final int GEOMETRY_2D_SHAPE
See Also:
Constant Field Values

GEOMETRY_3D_SPHERE

public static final int GEOMETRY_3D_SPHERE
See Also:
Constant Field Values

GEOMETRY_3D_CUBE

public static final int GEOMETRY_3D_CUBE
See Also:
Constant Field Values

GEOMETRY_3D_BOX

public static final int GEOMETRY_3D_BOX
See Also:
Constant Field Values

GEOMETRY_3D_CYLINDER

public static final int GEOMETRY_3D_CYLINDER
See Also:
Constant Field Values

GEOMETRY_3D_CONE

public static final int GEOMETRY_3D_CONE
See Also:
Constant Field Values

shape

private static java.awt.Shape shape
Constructor Detail

StaticDrawing

public StaticDrawing()
Method Detail

GET_DASHED_STROKE

public static java.awt.BasicStroke GET_DASHED_STROKE(double scale)

GET_BASICSTROKE

public static java.awt.BasicStroke GET_BASICSTROKE(double scale)

drawCross

public static java.awt.Shape drawCross(double x,
                                       double y,
                                       double z,
                                       int panelID,
                                       int width,
                                       int height)
Drawing the cursor-cross

Parameters:
x -
y -
width -
height -
scale -
Returns:

drawPaintLine

public static java.awt.Shape drawPaintLine(int x1,
                                           int y1,
                                           int z1,
                                           int x2,
                                           int y2,
                                           int z2,
                                           int panelID,
                                           int width,
                                           int height)
Drawing the help-line

Parameters:
x1 -
y1 -
z1 -
x2 -
y2 -
z2 -
panelID -
width -
height -
scale -
Returns:

drawMarkingBox

public static java.awt.Shape drawMarkingBox(java.awt.Shape shape)
Returning a Shape for a (maybe dashed) box, as a frame around of the object-shape

Parameters:
shape -
Returns:

buildStroke

public static java.awt.BasicStroke buildStroke(float scale)
Return a a simple BasicStroke

Parameters:
scale -
Returns:

drawMarkingSpot

public static java.awt.Shape drawMarkingSpot(double x,
                                             double y,
                                             double scale,
                                             int size)
Returning a Shape with a single marking-spot

Parameters:
x -
y -
scale -
size -
Returns:

drawMarkingSpots

public static java.awt.Shape drawMarkingSpots(java.awt.Shape shape,
                                              double scale,
                                              int size)
Returning a Shape, for drawing marking-spots on the coner of the object-shape

Parameters:
shape -
scale -
size -
Returns:

drawMarkingSpot

public static java.awt.Shape drawMarkingSpot(double x,
                                             double y,
                                             double z,
                                             double scale,
                                             int size,
                                             int panelID)