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 2659 2006-10-25 16:40:07Z urbaneks $
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
PPrimPolygon
public PPrimPolygon()
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)