D
- The drawable type for which this is the DrawingInfopublic class DrawingInfoShape<D extends Drawable> extends Object implements DrawingInfo
Constructor and Description |
---|
DrawingInfoShape()
Create an empty DrawingInfo object for a shape.
|
DrawingInfoShape(Color fillColor)
Create a DrawingInfo object for a shape that is filled, without a contour line.
|
DrawingInfoShape(Colorer<D> fillColorer)
Create a DrawingInfo object for a shape that is filled, without a contour line.
|
DrawingInfoShape(Colorer<D> lineColorer,
float lineWidth)
Create a DrawingInfo object for a shape that is not filled.
|
DrawingInfoShape(Colorer<D> lineColorer,
float lineWidth,
Colorer<D> fillColorer)
Create a DrawingInfo object for a shape that is filled, with a contour line.
|
DrawingInfoShape(Color lineColor,
float lineWidth)
Create a DrawingInfo object for a shape that is not filled.
|
DrawingInfoShape(Color lineColor,
float lineWidth,
Color fillColor)
Create a DrawingInfo object for a shape that is filled, with a contour line.
|
Modifier and Type | Method and Description |
---|---|
Color |
getFillColor(D drawable)
The returned color could be dependent on the state of the object for the fill color used.
|
Color |
getLineColor(D drawable)
The returned color could be dependent on the state of the object representing the line.
|
float |
getLineWidth() |
boolean |
isFilled() |
boolean |
isStroked() |
void |
setFillColor(Color fillColor)
Set the fill color using a FixedColorer.
|
void |
setFillColorer(Colorer<D> fillColorer)
Set the fill colorer.
|
void |
setFilled(boolean filled) |
void |
setLineColor(Color lineColor)
Set the line color using a FixedColorer.
|
void |
setLineColorer(Colorer<D> lineColorer)
Set the line colorer.
|
void |
setLineWidth(float lineWidth) |
void |
setStroked(boolean stroked) |
public DrawingInfoShape()
public DrawingInfoShape(Color lineColor, float lineWidth)
lineColor
- Color; the line colorlineWidth
- float; the line width, which could be relative and is open for interpretation by the visualization or
animation classpublic DrawingInfoShape(Color lineColor, float lineWidth, Color fillColor)
lineColor
- Color; the line colorlineWidth
- float; the line width, which could be relative and is open for interpretation by the visualization or
animation classfillColor
- Color; the fill colorpublic DrawingInfoShape(Color fillColor)
fillColor
- Color; the fill colorpublic DrawingInfoShape(Colorer<D> lineColorer, float lineWidth)
lineColorer
- Colorer<D>; the line colorerlineWidth
- float; the line width, which could be relative and is open for interpretation by the visualization or
animation classpublic DrawingInfoShape(Colorer<D> lineColorer, float lineWidth, Colorer<D> fillColorer)
lineColorer
- Colorer<D>; the line colorerlineWidth
- float; the line width, which could be relative and is open for interpretation by the visualization or
animation classfillColorer
- Colorer<D>; the fill colorerpublic final Color getFillColor(D drawable)
drawable
- D; the object that could influence the fill colorpublic final void setFillColor(Color fillColor)
fillColor
- Color; fillColor to setpublic final void setFillColorer(Colorer<D> fillColorer)
fillColorer
- Colorer<D>; fillColorer to setpublic final Color getLineColor(D drawable)
drawable
- D; the object that could influence the color of the linepublic final void setLineColor(Color lineColor)
lineColor
- Color; lineColor to setpublic final void setLineColorer(Colorer<D> lineColorer)
lineColorer
- Colorer<D>; lineColorer to setpublic final float getLineWidth()
public final void setLineWidth(float lineWidth)
lineWidth
- float; set lineWidthpublic final boolean isFilled()
public final void setFilled(boolean filled)
filled
- boolean; set filledpublic final boolean isStroked()
public final void setStroked(boolean stroked)
stroked
- boolean; set strokedCopyright © 2014–2019 Delft University of Technology. All rights reserved.