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, toArray
public XBasicStyle()
public XBasicStyle(BasicStyle fromBasicStyle, VertexStyle fromVertexStyle)
public java.awt.Color getFillColor()
getFillColor
in class BasicStyle
public 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 Style
paint
in class BasicStyle
java.lang.Exception
public XBasicStyle clone()
BasicStyle
clone
in interface Style
clone
in class BasicStyle
public java.awt.Color getFeatureColor(Feature feature)
BasicStyle
getFeatureColor
in class BasicStyle
feature
- 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)
Style
initialize
in interface Style
initialize
in class BasicStyle