org.rosuda.ibase.toolkit
Class PPrimCircle

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PPrimBase
      extended by org.rosuda.ibase.toolkit.PPrimCircle
All Implemented Interfaces:
PlotPrimitive

public class PPrimCircle
extends PPrimBase

Author:
Tobias Wichtrey

Field Summary
 boolean allowColorBrushing
          allow color brushing?
 boolean brushClockwise
          color brush the circle clockwise?
 int diam
          diameter
 boolean drawBorder
          whether a border should be drawn
 boolean filled
          whether the circle should be filled
 boolean intersectionByArea
          whether intersects(java.awt.Rectangle) and contains(int, int) check for intersection with the whole circle area (if true) or just with the center point (if false)
 int startArc
          the angle to start brushing
 int x
          x coordinate
 int y
          y coordinate
 
Fields inherited from class org.rosuda.ibase.toolkit.PPrimBase
borderColor, borderColorSel, col, COL_OUTLINE, dragging, fillColor, fillColorDrag, fillColorSel, performAlphaBlending, queryable, ref, visible
 
Constructor Summary
PPrimCircle()
           
 
Method Summary
 boolean contains(int x, int y)
          checks whether the PlotPrimitive contains (or in case of a point primitive equals to) the given point.
 boolean intersects(java.awt.Rectangle rt)
          checks whether the PlotPrimitive intersects (or is contained) in the given rectangle.
 void move(int x, int y)
           
 void moveX(int x)
           
 void moveY(int y)
           
 void paint(PoGraSS g, int orientation, SMarker m)
          paint the primitive (w/o selection)
 void paintSelected(PoGraSS g, int orientation, SMarker m)
          paint the selection
 void setDiam(int d)
           
 java.lang.String toString()
           
 
Methods inherited from class org.rosuda.ibase.toolkit.PPrimBase
cases, getCaseIDs, getColor, getMarkedProportion, getMarkedProportion, getPrimaryCase, getPropSize, getRelativeMarkedProportion, hilitcontains, isDragging, isPerformingAlphaBlending, isQueryable, isVisible, representsCase, setCaseIDs, setCaseIDs, setDragging, setMark, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
x coordinate


y

public int y
y coordinate


diam

public int diam
diameter


filled

public boolean filled
whether the circle should be filled


drawBorder

public boolean drawBorder
whether a border should be drawn


allowColorBrushing

public boolean allowColorBrushing
allow color brushing?


brushClockwise

public boolean brushClockwise
color brush the circle clockwise?


startArc

public int startArc
the angle to start brushing


intersectionByArea

public boolean intersectionByArea
whether intersects(java.awt.Rectangle) and contains(int, int) check for intersection with the whole circle area (if true) or just with the center point (if false)

Constructor Detail

PPrimCircle

public PPrimCircle()
Method Detail

intersects

public boolean intersects(java.awt.Rectangle rt)
Description copied from interface: PlotPrimitive
checks whether the PlotPrimitive intersects (or is contained) in the given rectangle.


paint

public void paint(PoGraSS g,
                  int orientation,
                  SMarker m)
Description copied from interface: PlotPrimitive
paint the primitive (w/o selection)


paintSelected

public void paintSelected(PoGraSS g,
                          int orientation,
                          SMarker m)
Description copied from interface: PlotPrimitive
paint the selection


contains

public boolean contains(int x,
                        int y)
Description copied from interface: PlotPrimitive
checks whether the PlotPrimitive contains (or in case of a point primitive equals to) the given point.


toString

public java.lang.String toString()
Overrides:
toString in class PPrimBase

move

public void move(int x,
                 int y)
Overrides:
move in class PPrimBase

moveX

public void moveX(int x)
Overrides:
moveX in class PPrimBase

moveY

public void moveY(int y)
Overrides:
moveY in class PPrimBase

setDiam

public void setDiam(int d)