public class ConstantSolidFillLegend extends SolidFillLegend implements ConstantSolidFill
Legend that represents a SolidFill where the color is a
Literal instance.| Constructor and Description |
|---|
ConstantSolidFillLegend(SolidFill sf)
Builds a new
ConstantSolidFillLegend} instance using the given SolidFill. |
ConstantSolidFillLegend(SolidFill fill,
ColorLiteralLegend colorLegend,
RealLiteralLegend opacity)
Build a new
ConstantSolidFillLegend using the SolidFill
and ColorLiteralLegend given in parameter. |
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Get the
Color used to paint the inner SolidFill. |
double |
getOpacity()
Get the
Color used to paint the inner SolidFill. |
void |
setColor(Color col)
Set the
Color used to paint the inner SolidFill. |
void |
setOpacity(double d)
Set the
Color used to paint the inner SolidFill. |
getFill, getFillColorLegend, getFillOpacityLegendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFillpublic ConstantSolidFillLegend(SolidFill sf)
ConstantSolidFillLegend} instance using the given SolidFill. Use at your own risks :
you must be sure that the given fill is valid for this legend.sf - ClassCastException - if the color or legend can't be identified as literal.public ConstantSolidFillLegend(SolidFill fill, ColorLiteralLegend colorLegend, RealLiteralLegend opacity)
ConstantSolidFillLegend using the SolidFill
and ColorLiteralLegend given in parameter.fill - colorLegend - public Color getColor()
ConstantSolidFillColor used to paint the inner SolidFill.getColor in interface ConstantSolidFillpublic void setColor(Color col)
ConstantSolidFillColor used to paint the inner SolidFill.setColor in interface ConstantSolidFillpublic double getOpacity()
ConstantSolidFillColor used to paint the inner SolidFill.getOpacity in interface ConstantSolidFillpublic void setOpacity(double d)
ConstantSolidFillColor used to paint the inner SolidFill.setOpacity in interface ConstantSolidFillCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.