Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JEuclid Core Source Code Files
JEuclid Source Code Files are provided
the
JEuclid GitHub Website.
You can browse JEuclid Source Code files below:
✍: FYIcenter
⏎ net/sourceforge/jeuclid/layout/Path2DShapeObject.java
package net.sourceforge.jeuclid.layout;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Path2D;
public class Path2DShapeObject implements GraphicsObject
{
private final Path2D path2D;
private final float width;
private final Color col;
private final boolean dash;
private final EdgeStyle edgeStyle;
public enum EdgeStyle
{
Miter, Round
}
public Path2DShapeObject(Path2D path2D, float width, Color col, boolean dash,
EdgeStyle edgeStyle)
{
this.path2D = path2D;
this.width = width;
this.col = col;
this.dash = dash;
this.edgeStyle = edgeStyle;
}
@Override
public void paint(float x, float y, Graphics2D g)
{
g.setColor(this.col);
final Stroke oldStroke = g.getStroke();
int cap = BasicStroke.CAP_SQUARE;
int join = BasicStroke.JOIN_MITER;
switch (edgeStyle)
{
case Round:
cap = BasicStroke.CAP_ROUND;
join = BasicStroke.JOIN_ROUND;
break;
case Miter:
default:
break;
}
if (this.dash)
{
final float dashWidth = 3.0f * this.width;
g.setStroke(new BasicStroke(this.width, cap, join, this.width,
new float[] { dashWidth, dashWidth, }, 0));
}
else
{
g.setStroke(new BasicStroke(this.width, cap, join));
}
AffineTransform transform = g.getTransform();
g.translate(x, y);
g.draw(this.path2D);
g.setTransform(transform);
g.setStroke(oldStroke);
}
}
⏎ net/sourceforge/jeuclid/layout/Path2DShapeObject.java
Or download all of them as a single archive file:
File name: jeuclid-core-3.1.14-fyi.zip File size: 325716 bytes Release date: 2019-02-24 Download
⇒ Using JEuclid 3.1.9 on macOS
⇐ Download and Install jeuclid-core-3.1.14.jar
2025-08-15, ≈28🔥, 0💬
Popular Posts:
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...
JDK 17 java.security.jgss.jmod is the JMOD file for JDK 17 Security JGSS (Java Generic Security Serv...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...