Class FillMode
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.FillMode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIcon(int[] data, Color color, Stroke stroke, int pad) Returns an icon representing this fill mode.booleanReturns a short description for this mode.floatReturns the alpha value for filling the area.floatReturns the alpha value for drawing a line.getName()Returns the name for this mode.booleanhasFill()Indicates whether the area is filled.inthashCode()booleanhasLine()Indicates whether a line is drawn.booleanisOpaque()Indicates whether this mode represents opaque drawing.toString()
-
Field Details
-
SOLID
Solid fill area, no boundary. -
LINE
-
SEMI
Solid boundary, fill area coloured in with transparency.
-
-
Constructor Details
-
FillMode
-
-
Method Details
-
getName
-
getDescription
Returns a short description for this mode.- Returns:
- plain text description
-
getLineAlpha
public float getLineAlpha()Returns the alpha value for drawing a line.- Returns:
- line alpha in range 0..1, zero for no line
-
getFillAlpha
public float getFillAlpha()Returns the alpha value for filling the area.- Returns:
- fill alpha in range 0..1, zero for no fill
-
hasLine
public boolean hasLine()Indicates whether a line is drawn.- Returns:
- lineAlpha>0
-
hasFill
public boolean hasFill()Indicates whether the area is filled.- Returns:
- fillAlpha>0
-
isOpaque
public boolean isOpaque()Indicates whether this mode represents opaque drawing.- Returns:
- true only if no transparency is applied
-
createIcon
-
hashCode
-
equals
-
toString
-