JIDE 3.5.15

com.jidesoft.gauge
Class NeedleStyle

java.lang.Object
  extended by com.jidesoft.gauge.NeedleStyle

public class NeedleStyle
extends Object

Contains information about the presentation of the needle


Constructor Summary
NeedleStyle()
           
 
Method Summary
 double getBaseWidth()
          Returns the width of the base of the needle, as a proportion of the radius
 Paint getFillPaint()
           
 double getHeadLength()
          Returns the length of the head of the needle
 NeedleEndShape getHeadShape()
          Returns the shape of the head of the needle
 double getHeadWidth()
          Returns the width of the head of the needle
 Color getOutlineColor()
           
 BasicStroke getOutlineStroke()
           
 double getTailLength()
          Returns the length of the tail of the needle
 NeedleEndShape getTailShape()
          Returns the shape of the tail of the needle
 double getTailWidth()
          Returns the width of the tail of the needle
 boolean isVisible()
          Returns a boolean to indicate whether the needle is visible.
 void setBaseWidth(double baseWidth)
          Specify the width of the base of the needle
 void setFillPaint(Paint paint)
           
 void setHeadLength(double headLength)
          Specify the length of the head of the needle, as a proportion of the radius
 void setHeadShape(NeedleEndShape headShape)
          Specify the shape of the head of the needle
 void setHeadWidth(double headWidth)
          Specify the width of the head of the needle, as a proportion of the radius
 void setOutlineColor(Color outlineColor)
           
 void setOutlineStroke(BasicStroke outlineStroke)
           
 void setTailLength(double tailLength)
          Specify the length of the tail of the needle, as a proportion of the radius
 void setTailShape(NeedleEndShape tailShape)
          Specify the shape of the tail of the needle
 void setTailWidth(double tailWidth)
          Specify the width of the tail of the needle
 void setVisible(boolean visible)
          Specify whether the needle should be visible; true by default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeedleStyle

public NeedleStyle()
Method Detail

getOutlineColor

public Color getOutlineColor()

setOutlineColor

public void setOutlineColor(Color outlineColor)

getOutlineStroke

public BasicStroke getOutlineStroke()

setOutlineStroke

public void setOutlineStroke(BasicStroke outlineStroke)

setFillPaint

public void setFillPaint(Paint paint)

getFillPaint

public Paint getFillPaint()

getHeadLength

public double getHeadLength()
Returns the length of the head of the needle

Returns:
the length of the head of the needle

setHeadLength

public void setHeadLength(double headLength)
Specify the length of the head of the needle, as a proportion of the radius

Parameters:
headLength - the length of the head of the needle

getHeadWidth

public double getHeadWidth()
Returns the width of the head of the needle

Returns:
the width of the head of the needle

setHeadWidth

public void setHeadWidth(double headWidth)
Specify the width of the head of the needle, as a proportion of the radius

Parameters:
headWidth - the width of the head of the needle

getTailLength

public double getTailLength()
Returns the length of the tail of the needle

Returns:
the length of the tail of the needle

setTailLength

public void setTailLength(double tailLength)
Specify the length of the tail of the needle, as a proportion of the radius

Parameters:
tailLength - the length of the tail of the needle

getTailWidth

public double getTailWidth()
Returns the width of the tail of the needle

Returns:
the width of the tail of the needle

setTailWidth

public void setTailWidth(double tailWidth)
Specify the width of the tail of the needle

Parameters:
tailWidth - the width of the tail of the needle

getBaseWidth

public double getBaseWidth()
Returns the width of the base of the needle, as a proportion of the radius

Returns:
the width of the base of the needle

setBaseWidth

public void setBaseWidth(double baseWidth)
Specify the width of the base of the needle

Parameters:
baseWidth - the width of the base of the needle

getHeadShape

public NeedleEndShape getHeadShape()
Returns the shape of the head of the needle

Returns:
the shape of the head of the needle

setHeadShape

public void setHeadShape(NeedleEndShape headShape)
Specify the shape of the head of the needle

Parameters:
headShape - the shape of the head of the needle

getTailShape

public NeedleEndShape getTailShape()
Returns the shape of the tail of the needle

Returns:
the shape of the tail of the needle

setTailShape

public void setTailShape(NeedleEndShape tailShape)
Specify the shape of the tail of the needle

Parameters:
tailShape - the shape of the tail of the needle

isVisible

public boolean isVisible()
Returns a boolean to indicate whether the needle is visible.


setVisible

public void setVisible(boolean visible)
Specify whether the needle should be visible; true by default. This is useful because you can make a needle temporarily invisible without removing it from the dial.

Parameters:
visible - whether the needle should be visible

JIDE 3.5.15