java Programming Glossary: g2.setclip
JTabbedPane: show task progress in a tab http://stackoverflow.com/questions/10055336/jtabbedpane-show-task-progress-in-a-tab x y delegateIcon.getIconWidth delegateIcon.getIconHeight g2.setClip r AffineTransform original g2.getTransform AffineTransform at..
How to export a complete JTable component in pdf at a specific coordinate http://stackoverflow.com/questions/12785264/how-to-export-a-complete-jtable-component-in-pdf-at-a-specific-coordinate oldClip g2.getClip g2.clipRect 10 0 500 500 table.print g2 g2.setClip oldClip g2.dispose cb.restoreState catch Exception e System.err.println..
Border with rounded corners & transparency http://stackoverflow.com/questions/15025092/border-with-rounded-corners-transparency new Rectangle 0 0 width height spareSpace.subtract area g2.setClip spareSpace g2.clearRect 0 0 width height g2.setClip null g2.setColor.. area g2.setClip spareSpace g2.clearRect 0 0 width height g2.setClip null g2.setColor color g2.setStroke stroke g2.draw area While.. Area borderRegion new Area rect borderRegion.subtract area g2.setClip borderRegion g2.setColor bg g2.fillRect 0 0 width height g2.setClip..
How to make a rounded corner image in Java http://stackoverflow.com/questions/7603400/how-to-make-a-rounded-corner-image-in-java what we want but it only does hard clipping i.e. aliasing g2.setClip new RoundRectangle2D ... so instead fake soft clipping by first..
Internal padding for JTextArea with background Image http://stackoverflow.com/questions/8462414/internal-padding-for-jtextarea-with-background-image new Rectangle 0 0 width height spareSpace.subtract area g2.setClip spareSpace g2.clearRect 0 0 width height g2.setClip null g2.setColor.. area g2.setClip spareSpace g2.clearRect 0 0 width height g2.setClip null g2.setColor color g2.setStroke stroke g2.draw area public..
Drawing rectangle on a JPanel http://stackoverflow.com/questions/9258890/drawing-rectangle-on-a-jpanel r new Rectangle2D.Float w 4.0f h 4.0f wi 2.0f hi 2.0f g2.setClip e System.out.println Width wi Height hi g2.setClip r System.out.println.. 2.0f g2.setClip e System.out.println Width wi Height hi g2.setClip r System.out.println g2.getClipBounds if shape.selectedcolor..
|