public class ImageRelation extends ImageArrow
ImageRelation
class provides a relation in a data base diagram.
title: SystemCoreLib
description: SystemCoreLib
copyright: (c) 2013 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Modifier and Type | Field and Description |
---|---|
static int |
M_N |
static int |
N_NULL |
static int |
N_ONE |
static int |
NULL_N |
static int |
NULL_ONE |
static int |
ONE_N |
static int |
ONE_NULL |
static int |
ONE_ONE |
SHORTEN_BOTH, SHORTEN_FROM, SHORTEN_NO, SHORTEN_TO
Constructor and Description |
---|
ImageRelation(double factor,
int arr_model,
int dec_model,
double parrow_width,
double px1,
double py1,
double pz1,
double px2,
double py2,
double pz2,
boolean precalc)
The constructor
ImageRelation creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
draw2D(GraphicParameter gp,
boolean convert_coordinates)
The method
draw2D draw 2 dimensional lines with arrows. |
void |
drawArrow(GraphicParameter gp,
double px,
double py,
double angle)
The method
drawArrow draw 2 dimensional arrow. |
draw2D, draw3D, getFactor, getModel, getRecalc, getX1_old, getX1, getX2_old, getX2, getY1_old, getY1, getY2_old, getY2, getZ1_old, getZ1, getZ2_old, getZ2, setFactor, setModel, setRecalc, setX1, setX2, setY1, setY2, setZ1, setZ2
calc3DCoords, getColor, setColor
public static final int ONE_NULL
public static final int NULL_ONE
public static final int N_NULL
public static final int NULL_N
public static final int ONE_ONE
public static final int ONE_N
public static final int N_ONE
public static final int M_N
public ImageRelation(double factor, int arr_model, int dec_model, double parrow_width, double px1, double py1, double pz1, double px2, double py2, double pz2, boolean precalc)
ImageRelation
creates a new instance(object) of the class.factor
- decrement of the linear equation.arr_model
- the arrow model.dec_model
- the model of decrementation.parrow_width
- the width of an arrow.px1
- coordinate.px2
- coordinate.py1
- coordinate.py2
- coordinate.pz1
- coordinate.pz2
- coordinate.precalc
- .public void drawArrow(GraphicParameter gp, double px, double py, double angle) throws java.lang.Exception
drawArrow
draw 2 dimensional arrow.gp
- the graphics parameter.px
- the x coordinate.py
- the y coordinate.angle
- the angle of the arrow.java.lang.Exception
- if errorpublic void draw2D(GraphicParameter gp, boolean convert_coordinates) throws java.lang.Exception
draw2D
draw 2 dimensional lines with arrows.draw2D
in class ImageArrow
gp
- the graphic parameters.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if error