JIDE 3.5.15

com.jidesoft.gauge
Class DialIntervalMarker

java.lang.Object
  extended by com.jidesoft.gauge.DialIntervalMarker
All Implemented Interfaces:
Drawable, ZOrder

public class DialIntervalMarker
extends Object
implements Drawable, ZOrder

A Drawable class that paints a region to indicate an interval on the Dial's primary axis


Constructor Summary
DialIntervalMarker(Dial dial, double fromValue, double toValue, double innerRadius, double outerRadius, Paint fill)
          Create a DialIntervalMarker for the supplied dial, between the values fromValue and toValue on the primaryAxis, between the supplied innerRadius and outerRadius and filled with the supplied paint fill.
DialIntervalMarker(Dial dial, double fromValue, double toValue, Paint fill)
          Create a DialIntervalMarker for the supplied dial, between the values fromValue and toValue on the primaryAxis and filled with the supplied paint fill.
 
Method Summary
 GeneralPath createSegment(double fromAngle, double toAngle, double innerRadius, double outerRadius)
           
 void draw(Graphics g)
          Draw the object implementing this interface onto the supplied Graphics context
 Color getBorderColor()
           
 BasicStroke getBorderStroke()
           
 Paint getFill()
           
 double getFrom()
           
 double getInnerRadius()
           
 double getOuterRadius()
           
 double getTo()
           
 int getZOrder()
           
 void setBorderColor(Color borderColor)
           
 void setBorderStroke(BasicStroke borderStroke)
           
 void setFill(Paint fill)
           
 void setFrom(double from)
           
 void setInnerRadius(double innerRadius)
           
 void setOuterRadius(double outerRadius)
           
 void setTo(double to)
           
 void setZOrder(int zOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialIntervalMarker

public DialIntervalMarker(Dial dial,
                          double fromValue,
                          double toValue,
                          Paint fill)
Create a DialIntervalMarker for the supplied dial, between the values fromValue and toValue on the primaryAxis and filled with the supplied paint fill.

Parameters:
dial - the Dial to which the Marker will be added as a Drawable
fromValue - the start value for the marker on the primary axis of the dial
toValue - the end value for the marker on the primary axis of the dial
fill - the paint fill

DialIntervalMarker

public DialIntervalMarker(Dial dial,
                          double fromValue,
                          double toValue,
                          double innerRadius,
                          double outerRadius,
                          Paint fill)
Create a DialIntervalMarker for the supplied dial, between the values fromValue and toValue on the primaryAxis, between the supplied innerRadius and outerRadius and filled with the supplied paint fill.

Parameters:
dial - the Dial to which the Marker will be added as a Drawable
fromValue - the start value for the marker on the primary axis of the dial
toValue - the end value for the marker on the primary axis of the dial
innerRadius - the inner radius of the marker segment, supplied as a proportion of the dial radius
outerRadius - the outer radius of the marker segment, supplied as a proportion of the dial radius
fill - the paint fill
Method Detail

getFill

public Paint getFill()

setFill

public void setFill(Paint fill)

getFrom

public double getFrom()

setFrom

public void setFrom(double from)

getInnerRadius

public double getInnerRadius()

setInnerRadius

public void setInnerRadius(double innerRadius)

getOuterRadius

public double getOuterRadius()

setOuterRadius

public void setOuterRadius(double outerRadius)

getTo

public double getTo()

setTo

public void setTo(double to)

getBorderColor

public Color getBorderColor()

setBorderColor

public void setBorderColor(Color borderColor)

getBorderStroke

public BasicStroke getBorderStroke()

setBorderStroke

public void setBorderStroke(BasicStroke borderStroke)

getZOrder

public int getZOrder()
Specified by:
getZOrder in interface ZOrder

setZOrder

public void setZOrder(int zOrder)
Specified by:
setZOrder in interface ZOrder

draw

public void draw(Graphics g)
Description copied from interface: Drawable
Draw the object implementing this interface onto the supplied Graphics context

Specified by:
draw in interface Drawable
Parameters:
g - the Graphics context

createSegment

public GeneralPath createSegment(double fromAngle,
                                 double toAngle,
                                 double innerRadius,
                                 double outerRadius)

JIDE 3.5.15