org.rosuda.ibase.toolkit
Class PPrimPolygon
java.lang.Object
org.rosuda.ibase.toolkit.PPrimBase
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,v 1.30 2006/10/25 16:40:07 urbaneks Exp $
| Fields inherited from class org.rosuda.ibase.toolkit.PPrimBase |
borderColor, borderColorSel, col, COL_OUTLINE, dragging, fillColor, fillColorDrag, fillColorSel, performAlphaBlending, queryable, ref, visible |
| 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 |
pg
public 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 Color COL_INVISIBLELINES
PPrimPolygon
public PPrimPolygon()
contains
public boolean contains(int x,
int y)
- checks whether the PlotPrimitive contains the given point.
intersects
public boolean intersects(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 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(Polygon p)