org.rosuda.ibase.toolkit
Class PPrimPolygon

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

public class PPrimPolygon
extends PPrimBase

Plot primitive based on PPrimBase, using a list of IDs and implementing polygons.

Version:
$Id: PPrimPolygon.java 2659 2006-10-25 16:40:07Z urbaneks $

Field Summary
 boolean closed
           
 java.awt.Color COL_INVISIBLELINES
           
 boolean drawBorder
           
 boolean drawCorners
           
 boolean fill
           
 boolean[] invisibleLines
           
 float[] lineWidth
           
 boolean[] noDotsAt
           
 java.awt.Polygon pg
           
 boolean selectByCorners
           
 boolean showGapDots
           
 boolean showInvisibleLines
           
 boolean useSelAlpha
           
 
Fields inherited from class org.rosuda.ibase.toolkit.PPrimBase
borderColor, borderColorSel, col, COL_OUTLINE, dragging, fillColor, fillColorDrag, fillColorSel, performAlphaBlending, queryable, ref, visible
 
Constructor Summary
PPrimPolygon()
           
 
Method Summary
 boolean contains(int x, int y)
          checks whether the PlotPrimitive contains the given point.
 int getNodeSize()
           
 boolean intersects(java.awt.Rectangle rt)
          checks whether the PlotPrimitive intersects (or is contained) in the given rectangle.
 void paint(PoGraSS g, int orientation, SMarker m)
          paint the primitive
 void paintSelected(PoGraSS g, int orientation, SMarker m)
          paint the selection
 void setGapDots(boolean[] gapDots)
           
 void setNodeSize(int nodeSize)
           
 void setPolygon(java.awt.Polygon p)
           
 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, move, moveX, moveY, 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

pg

public java.awt.Polygon pg

drawBorder

public boolean drawBorder

useSelAlpha

public boolean useSelAlpha

closed

public boolean closed

fill

public boolean fill

selectByCorners

public boolean selectByCorners

drawCorners

public boolean drawCorners

lineWidth

public float[] lineWidth

invisibleLines

public boolean[] invisibleLines

showInvisibleLines

public boolean showInvisibleLines

noDotsAt

public boolean[] noDotsAt

showGapDots

public boolean showGapDots

COL_INVISIBLELINES

public java.awt.Color COL_INVISIBLELINES
Constructor Detail

PPrimPolygon

public PPrimPolygon()
Method Detail

contains

public boolean contains(int x,
                        int y)
checks whether the PlotPrimitive contains 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

getNodeSize

public int getNodeSize()

setNodeSize

public void setNodeSize(int nodeSize)

setGapDots

public void setGapDots(boolean[] gapDots)

setPolygon

public void setPolygon(java.awt.Polygon p)