com.panayotis.gnuplot.style
Class FillStyle

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by com.panayotis.gnuplot.PropertiesHolder
              extended by com.panayotis.gnuplot.style.FillStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>

public class FillStyle
extends PropertiesHolder

This object carries information on how to fill a specific graph

See Also:
Serialized Form

Nested Class Summary
static class FillStyle.Fill
          Define the fill styles
 
Field Summary
 
Fields inherited from class com.panayotis.gnuplot.PropertiesHolder
NL
 
Constructor Summary
FillStyle()
          Create a new fill style object with default style
FillStyle(FillStyle.Fill style)
          Create a new fill style object with a specific fill style
 
Method Summary
 void appendProperties(java.lang.StringBuffer buf)
          Retrieve information for this style.
 void removeBorder()
          Remove the border of this graph
 void setBorder(int type)
          Set the border type
 void setDensity(float density)
          Set the density of this fill style
 void setPattern(int pattern)
          Set the fill pattern
 void setStyle(FillStyle.Fill style)
          Set the fill style
 
Methods inherited from class com.panayotis.gnuplot.PropertiesHolder
set, set, unset
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

FillStyle

public FillStyle()
Create a new fill style object with default style


FillStyle

public FillStyle(FillStyle.Fill style)
Create a new fill style object with a specific fill style

Parameters:
style - The style to use If it is null, then this graph will not be filled.
Method Detail

setBorder

public void setBorder(int type)
Set the border type

Parameters:
type - An integer describing how the border will look like. This parameter is terminal specific

removeBorder

public void removeBorder()
Remove the border of this graph


setDensity

public void setDensity(float density)
Set the density of this fill style

Parameters:
density - A number between 0 and 1

setPattern

public void setPattern(int pattern)
Set the fill pattern

Parameters:
pattern - An integer describing the fill pattern. This parameter is terminal specific

setStyle

public void setStyle(FillStyle.Fill style)
Set the fill style

Parameters:
style - The style to use. If it is null, then this graph will not be filled.

appendProperties

public void appendProperties(java.lang.StringBuffer buf)
Retrieve information for this style. This method is used internally by JavaPlot

Overrides:
appendProperties in class PropertiesHolder
Parameters:
buf - The String buffer to store information about this style