public class ImageOptions extends Object
defaultColor()
or defaultBlackAndWhite()
and then modify.
Most of the numeric fields will scale with the width and the height, and do not need
to be independently modified.Modifier and Type | Field and Description |
---|---|
Color |
background
The color of the background to the rectangle, outside the picture
|
double |
border
The width of the border in which line labels are shown.
|
Color |
fill
The color of the faces inside the picture
|
double |
fontSizeRatio
Any scaling that should be applied to the font size.
|
Color |
foreground
The foregound color that is used for text, vertices, and the origin.
|
int |
height
The width and height of the intended image.
|
int |
labelBorder
An additional border around labels.
|
double |
labelPosition
The position of the labels within the border.
|
float |
lineWidth
The width of lines in the diagram.
|
int |
originArrowLength
The length of the arrow used to show the origin.
|
int |
originArrowSize
The size of the arrowhead used to show the origin.
|
boolean |
showOrigin
Whether to show the origin or not.
|
boolean |
showVertices
Whether to high light vertices with a circle around them
|
int |
vertexSize
The size of the vertex circle if shown.
|
int |
width
The width and height of the intended image.
|
Modifier and Type | Method and Description |
---|---|
static ImageOptions |
defaultBlackAndWhite()
Get image options that generate a black and white image.
|
static ImageOptions |
defaultColor()
Get image options that generate a color image.
|
void |
setColor(Label lbl,
Color c)
Provides the color for a line.
|
void |
setColorOfInfinity(Color c)
Provides the color for the line at infinity, if null then
the color is chosen like any other line.
|
void |
setShowLabels(boolean val)
Either show labels or not.
|
void |
setStroke(Label lbl,
float... dashes)
Provides the dash array for a line.
|
void |
setStrokeOfInfinity(float... dashes)
Provides the dashes for the line at infinity, if null then
the dashes are chosen like any other line.
|
public boolean showOrigin
public boolean showVertices
public int height
public int width
public double border
setShowLabels(boolean)
public double labelPosition
border
public double fontSizeRatio
public int vertexSize
public Color background
public Color fill
public Color foreground
public int originArrowLength
public int originArrowSize
public int labelBorder
public float lineWidth
public void setColorOfInfinity(Color c)
c
- The color or null.public void setStrokeOfInfinity(float... dashes)
dashes
- The dashes or null.BasicStroke.getDashArray()
public void setColor(Label lbl, Color c)
lbl
- The line labelc
- A color, non-null.public void setStroke(Label lbl, float... dashes)
lbl
- The line labeldashes
- The dash array, non-null.BasicStroke.getDashArray()
public static ImageOptions defaultBlackAndWhite()
public static ImageOptions defaultColor()
public void setShowLabels(boolean val)
val
- true for showing labels,