TransformedStroke

Inheritance: java.lang.Object

All Implemented Interfaces: java.awt.Stroke

public class TransformedStroke implements Stroke

Un trait qui contient une transformation.

Constructeurs

ConstructeurDescription
TransformedStroke(Stroke base, AffineTransform at)Crée un TransformedStroke basé sur un autre Stroke et un AffineTransform.

Méthodes

MéthodeDescription
createStrokedShape(Shape s)Trace le Shape donné avec ce stroke, créant un contour.
equals(Object arg0)
getBaseStroke()Obtient le stroke de base.
getClass()
getTransform()Obtient une transformation.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

TransformedStroke(Stroke base, AffineTransform at)

public TransformedStroke(Stroke base, AffineTransform at)

Crée un TransformedStroke basé sur un autre Stroke et un AffineTransform.

Parameters:

ParamètreTypeDescription
basejava.awt.StrokeLe stroke de base.
àjava.awt.geom.AffineTransformLa transformation affine.

createStrokedShape(Shape s)

public Shape createStrokedShape(Shape s)

Trace le Shape donné avec ce stroke, créant un contour. Ce contour est déformé par notre AffineTransform par rapport au contour qui serait fourni par le base stroke, mais uniquement en termes d’échelle (c’est‑à‑dire l’épaisseur des lignes), car la translation et la rotation sont annulées après le traçage.

Parameters:

ParamètreTypeDescription
sjava.awt.ShapeComme shape à tracer.

Returns: java.awt.Shape - Un contour du shape.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParamètreTypeDescription
arg0java.lang.Object

Returns: boolean

getBaseStroke()

public Stroke getBaseStroke()

Obtient le stroke de base.

Returns: java.awt.Stroke - Stroke de base.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getTransform()

public AffineTransform getTransform()

Obtient une transformation.

Returns: java.awt.geom.AffineTransform - Une transformation.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int