public class Ilt1DPalette extends Object implements IltPalette
It consists of:
IltLineStyle.Solid
.
null
; in this case
the line style will be transparent.
IltGraphicUtil
Constructor and Description |
---|
Ilt1DPalette(Color colour)
Creates a new mono-color 1D palette.
|
Ilt1DPalette(IlLineStyle linestyle,
Color foreground,
Color background)
Creates a new 1D palette.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares two objects.
|
Color |
getBackground()
Returns the background color.
|
Ilt1DPalette |
getCurrentPalette() |
Color |
getForeground()
Returns the foreground color.
|
IlLineStyle |
getLineStyle()
Returns the line style.
|
Stroke |
getStroke(int cap,
int join,
double width)
Returns the stroke properties according to this palette configuration.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isLineStyleSolid()
Returns if the palette has a solid line style.
|
static Ilt1DPalette |
New1DPalette(float[] dashes,
Color foreground,
Color background)
Creates a new 1D palette.
|
static Ilt1DPalette |
New1DPalette(IlLineStyle linestyle,
Color foreground,
Color background)
Creates a new 1D palette.
|
static Ilt1DPalette |
NewSimple1DPalette(Color colour)
Creates a new mono-color 1D palette.
|
String |
toString()
Converts the object into a human-readable format.
|
public Ilt1DPalette(Color colour)
colour
- Foreground colorpublic Ilt1DPalette(IlLineStyle linestyle, Color foreground, Color background)
linestyle
- Line style used to draw the shape borderforeground
- Foreground colorbackground
- Background colorpublic Stroke getStroke(int cap, int join, double width)
public boolean isLineStyleSolid()
public IlLineStyle getLineStyle()
public Color getForeground()
public Color getBackground()
public Ilt1DPalette getCurrentPalette()
public String toString()
public boolean equals(Object o)
public int hashCode()
public static Ilt1DPalette New1DPalette(IlLineStyle linestyle, Color foreground, Color background)
public static Ilt1DPalette New1DPalette(float[] dashes, Color foreground, Color background)
dashes
- Line style used to draw the shape borderforeground
- Foreground colorbackground
- Background colorpublic static Ilt1DPalette NewSimple1DPalette(Color colour)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.