public class XBasicStyle extends BasicStyle
DEFAULT_FILL_COLOR, DEFAULT_FILL_STROKE, DEFAULT_LINE_COLOR, RGB_ATTRIBUTE_NAME| Constructor and Description |
|---|
XBasicStyle() |
XBasicStyle(BasicStyle fromBasicStyle,
VertexStyle fromVertexStyle) |
| Modifier and Type | Method and Description |
|---|---|
XBasicStyle |
clone()
Uses Object.clone() method which performs a shallow copy of this object,
creating a new instance of the same class and copying attribute values
of this object to the clone.
|
java.awt.Color |
getFeatureColor(Feature feature)
- Giuseppe Aruta 11-June - 2012 - added code from SkyJUMP to enable color chooser plugIn -
- Original comments from SkyJUMP developers -
Looks for an Attriubte field that contains the RGB color code and returns
it or null if the RGB hex string is empty or ill-formed.
|
java.awt.Color |
getFillColor() |
VertexStyle |
getVertexStyle() |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
void |
setVertexStyle(VertexStyle vertexStyle) |
getAlpha, getFillPattern, getLineColor, getLinePattern, getLineStroke, getLineWidth, getRenderingVertices, isEnabled, isRenderingFill, isRenderingFillPattern, isRenderingLine, isRenderingLinePattern, setAlpha, setEnabled, setFillColor, setFillPattern, setFractionalLineWidth, setLineColor, setLinePattern, setLineWidth, setRenderingFill, setRenderingFillPattern, setRenderingLine, setRenderingLinePattern, setRenderingVertices, toArraypublic XBasicStyle()
public XBasicStyle(BasicStyle fromBasicStyle, VertexStyle fromVertexStyle)
public java.awt.Color getFillColor()
getFillColor in class BasicStylepublic VertexStyle getVertexStyle()
public void setVertexStyle(VertexStyle vertexStyle)
public void paint(Feature f, java.awt.Graphics2D g, Viewport viewport) throws java.lang.Exception
paint in interface Stylepaint in class BasicStylejava.lang.Exceptionpublic XBasicStyle clone()
BasicStyleclone in interface Styleclone in class BasicStylepublic java.awt.Color getFeatureColor(Feature feature)
BasicStylegetFeatureColor in class BasicStylefeature - the Feature containing the RGB
Attribute to be parsed.Color represented by the R_B_G hex value with
the current Alpha value inserted.
Warning: returns null in many "normal" cases.public void initialize(Layer layer)
Styleinitialize in interface Styleinitialize in class BasicStyle