org.rosuda.ibase.toolkit
Class PPrimRectangle

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PPrimBase
      extended by org.rosuda.ibase.toolkit.PPrimRectangle
All Implemented Interfaces:
PlotPrimitive
Direct Known Subclasses:
PPrimMosaic

public class PPrimRectangle
extends PPrimBase


Field Summary
 boolean allowColorBrushing
          allow color brushing?
 boolean drawBorder
           
 boolean filled
          whether the rectangle should be filled
protected  int orientation
           
 java.awt.Rectangle r
           
 
Fields inherited from class org.rosuda.ibase.toolkit.PPrimBase
borderColor, borderColorSel, col, COL_OUTLINE, dragging, fillColor, fillColorDrag, fillColorSel, performAlphaBlending, queryable, ref, visible
 
Constructor Summary
PPrimRectangle()
           
PPrimRectangle(int or)
           
 
Method Summary
protected  void brushRect(PoGraSS g, SMarker m, int orientation, java.awt.Rectangle r, java.awt.Color borderColor)
           
 boolean contains(int x, int y)
          checks whether the PlotPrimitive contains (or in case of a point primitive equals to) the given point.
protected  void drawRect(PoGraSS g, int rX, int rY, int rW, int rH, java.awt.Color fillColor, java.awt.Color borderColor)
           
protected  void drawRect(PoGraSS g, java.awt.Rectangle r, java.awt.Color fillColor, java.awt.Color borderColor)
           
 int getMINHEIGHT()
           
 int getMINWIDTH()
           
 int getOrientation()
           
 boolean intersects(java.awt.Rectangle rt)
          checks whether the PlotPrimitive intersects (or is contained) in the given rectangle.
protected  boolean isBrushed(SMarker m)
           
 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
 void paintSelected(PoGraSS g, int orientation, SMarker m)
          paint the selection
 void setBounds(double x, double y, double w, double h)
           
 void setBounds(int x, int y, int w, int h)
           
 void setMINHEIGHT(int MINHEIGHT)
           
 void setMINWIDTH(int MINWIDTH)
           
 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

r

public java.awt.Rectangle r

drawBorder

public boolean drawBorder

allowColorBrushing

public boolean allowColorBrushing
allow color brushing?


filled

public boolean filled
whether the rectangle should be filled


orientation

protected int orientation
Constructor Detail

PPrimRectangle

public PPrimRectangle()

PPrimRectangle

public PPrimRectangle(int or)
Method Detail

getOrientation

public int getOrientation()

contains

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


intersects

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


paint

public void paint(PoGraSS g,
                  int orientation,
                  SMarker m)
paint the primitive


paintSelected

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


toString

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

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)

setBounds

public void setBounds(double x,
                      double y,
                      double w,
                      double h)

brushRect

protected void brushRect(PoGraSS g,
                         SMarker m,
                         int orientation,
                         java.awt.Rectangle r,
                         java.awt.Color borderColor)

drawRect

protected void drawRect(PoGraSS g,
                        java.awt.Rectangle r,
                        java.awt.Color fillColor,
                        java.awt.Color borderColor)

drawRect

protected void drawRect(PoGraSS g,
                        int rX,
                        int rY,
                        int rW,
                        int rH,
                        java.awt.Color fillColor,
                        java.awt.Color borderColor)

isBrushed

protected boolean isBrushed(SMarker m)

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

getMINHEIGHT

public int getMINHEIGHT()

setMINHEIGHT

public void setMINHEIGHT(int MINHEIGHT)

getMINWIDTH

public int getMINWIDTH()

setMINWIDTH

public void setMINWIDTH(int MINWIDTH)