public class Tool4Image2 extends Tool4Image
Tool4Image2
class has functions for image painting.
title: SystemCoreLib
description: functions for image painting
copyright: (c) 2011 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
COORDSYS_CARTESIAN, COORDSYS_DIM2, COORDSYS_DIM3, COORDSYS_POLAR, COORDSYS_XISY, COORDSYS_XNOTY, x_fac_add, x_fac_mult, y_fac_add, y_fac_mult, z_fac_add, z_fac_mult
Constructor and Description |
---|
Tool4Image2(java.awt.Graphics graph,
int coordinate_system,
int coordinate_dimension,
int width,
int height,
boolean make_pic)
The constructor
Tool4Image2 creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
adjustData(java.util.ArrayList graphic_data)
The method
adjustData adjust the graphic data never be lower as null. |
void |
calcFactors(int type)
The method
calcFactors calculation of the factors to write the lines to the picture formats. |
void |
draw3DFigure(java.util.ArrayList data_points,
java.util.ArrayList graphic_data,
double center_x,
double center_y,
java.awt.Color color)
The method
draw3DFigure draws a 3D figure. |
void |
drawAddons2D(boolean candelete,
boolean convert_coordinates)
The method
drawAddons2D draw all add ons. |
void |
drawAllElements2D(boolean candelete,
boolean convert_coordinates)
The method
drawElements2D draw all elements
of the line list as 2 dimensional objects. |
void |
drawAllElements2D(boolean candelete,
boolean convert_coordinates,
boolean mirror)
The method
drawElements2D draw all elements
of the line list as 2 dimensional objects. |
void |
drawAllElements3D(boolean candelete,
boolean convert_coordinates)
The method
drawElements3D draw all elements
of the line list as 3 dimensional objects. |
void |
drawArrows2D(boolean candelete,
boolean convert_coordinates)
The method
drawArrows2D draw all arrows of the line list
as 2 dimensional objects. |
void |
drawLines2D(boolean candelete,
boolean convert_coordinates)
The method
drawLines2D draw all lines of the line list
as 2 dimensional objects. |
void |
drawLines3D(boolean candelete,
boolean convert_coordinates)
The method
drawLines3D draw all lines of the line list
as 3 dimensional objects. |
void |
drawPoints2D(boolean candelete,
boolean convert_coordinates)
The method
drawPoints2D draw all points of the line list
as 2 dimensional objects. |
void |
drawPoints3D(boolean candelete,
boolean convert_coordinates)
The method
drawPoints3D draw all points of the line list
as 3 dimensional objects. |
void |
drawRectangle2D(boolean candelete,
boolean convert_coordinates)
The method
drawRectangle2D draw all rectangles of the line list
as 2 dimensional objects. |
void |
drawText2D(boolean candelete,
boolean convert_coordinates)
The method
drawText2D draw all text of the line list
as 2 dimensional objects. |
void |
setElements(java.util.ArrayList input)
set field: contens objects of the class ImageLine: x1 , y1 , x2 , y2.
|
calc3DCoords, calcCartesianCoords, calcFactors, calcXaxisValue, calcYaxisValue, calcZaxisValue, deleteAddons, disposeImage, doInitialize, drawBorder, drawGraphicName, drawGridLines, drawGridValues, drawGridValues, drawGridXValues, drawGridYValues, drawGridYValues, drawLegend, drawLines, drawPoints, drawText, getGraph, getGraphicBorder, getGraphicParameters, getHeight, getImage, getImageHeight, getImageWidth, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getMousePoint, getWidht, resizeImage, saveImage, saveImage, set3DParameter, setAxisMaxValues, setAxisMaxValues, setAxisNames, setAxisNames, setBackgroundColor, setBackgroundColor, setGraphicBorder, setGraphicName, setGraphicParameters, setGraphicParameters, setGridWidth, setKoordSystem2D, setKoordSystem2D, setKoordSystem3D, setLine, setLines, setMinMaxAdjustment, setPaintColor, setPaintColor, setPoint, setPointSize, setXaxisName, setYaxisName, setZaxisName
public Tool4Image2(java.awt.Graphics graph, int coordinate_system, int coordinate_dimension, int width, int height, boolean make_pic)
Tool4Image2
creates a new instance(object) of the class.graph
- the graphic object.coordinate_system
- the type of coordinate system.coordinate_dimension
- the dimension of the coordinates.width
- the graphics width.height
- the graphics height.make_pic
- if true: generates a picture (BufferedImage).public void setElements(java.util.ArrayList input)
input
- points and lines as list.public void calcFactors(int type) throws java.lang.Exception
calcFactors
calculation of the factors to write the lines to the picture formats.calcFactors
in class Tool4Image
type
- x=y, x!=yjava.lang.Exception
- if error if errorpublic void drawLines2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawLines2D
draw all lines of the line list
as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawLines3D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawLines3D
draw all lines of the line list
as 3 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawArrows2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawArrows2D
draw all arrows of the line list
as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawPoints3D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawPoints3D
draw all points of the line list
as 3 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawPoints2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawPoints2D
draw all points of the line list
as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawText2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawText2D
draw all text of the line list
as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawRectangle2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawRectangle2D
draw all rectangles of the line list
as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawAllElements2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawElements2D
draw all elements
of the line list as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawAllElements2D(boolean candelete, boolean convert_coordinates, boolean mirror) throws java.lang.Exception
drawElements2D
draw all elements
of the line list as 2 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.mirror
- mirrors the points at the y axis.java.lang.Exception
- if errorpublic void drawAllElements3D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawElements3D
draw all elements
of the line list as 3 dimensional objects.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void drawAddons2D(boolean candelete, boolean convert_coordinates) throws java.lang.Exception
drawAddons2D
draw all add ons.candelete
- true = delete the line list.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void draw3DFigure(java.util.ArrayList data_points, java.util.ArrayList graphic_data, double center_x, double center_y, java.awt.Color color)
draw3DFigure
draws a 3D figure.data_points
- the data points.graphic_data
- the list of graphical elements.center_x
- the center of the figure.center_y
- the center of the figure.color
- the color object.public void adjustData(java.util.ArrayList graphic_data)
adjustData
adjust the graphic data never be lower as null.graphic_data
- the graphic data.